LB Booster
« DLLs requiring special treatment »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:52am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: DLLs requiring special treatment  (Read 781 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx DLLs requiring special treatment
« Thread started on: Mar 28th, 2014, 6:50pm »

A significant difference between LB and LBB is that LBB runs two threads - one for the interpreter and one for the GUI. This can significantly improve performance on PCs with at least two CPU cores, because one can be interpreting BASIC statements whilst the other is drawing graphics to the screen, for example.

However there is an undesirable side-effect when it comes to using third-party DLLs with LBB. A small number of DLL functions must be run in the context of the GUI thread rather than the interpreter thread; typically calling the function from the wrong thread will cause a crash or a deadlock.

To workaround this issue LBB contains a list of such functions, but of course that list cannot be 'complete' because I don't know what DLLs might be used. So if you find that a DLL doesn't work please let me know; it is quite likely that the problem can be fixed simply by me adding to that list.

Richard.
User IP Logged

Hans
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 31
xx Re: DLLs requiring special treatment
« Reply #1 on: Jun 10th, 2015, 10:56am »

Richard,
I have two dll files (see below) that do not work in LBB. Can these be added to the list somehow, so I can use them with LBB?

Regards, Hans

pbimage.dll
pct_dll.dll
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: DLLs requiring special treatment
« Reply #2 on: Jun 10th, 2015, 12:59pm »

on Jun 10th, 2015, 10:56am, Hans wrote:
Can these be added to the list somehow, so I can use them with LBB?

Probably, but I would like to know what advantages these DLLs have over other image loading/saving libraries which are already supported by LBB, such as image323.dll and jpeg.dll.

Can you link to descriptions of the functions they contain, and a download site, so I can see what might be involved and test any resulting changes to LBB?

Richard.
User IP Logged

Hans
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 31
xx Re: DLLs requiring special treatment
« Reply #3 on: Jun 17th, 2015, 07:39am »

The program in which I use these dll's is very old, but I use it often. I can't recall why I use these particular dll's. I've made a test program with image323.dll and it can do everything I need. I will now implement my findings in the program wich therafter can run in LBB. Thanks!

Hans
User IP Logged

Hans
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 31
xx Re: DLLs requiring special treatment
« Reply #4 on: Jun 17th, 2015, 09:56am »

Now I know again why I used pct_dll. Image323 and pbimage store the file as an uncompressed file, so a large file. pct_dll converts the file to a real jpg. So I still need pct_dll or something else that does the same. pct_dll can be found at http://www.tek-tips.com/faqs.cfm?fid=4824
User IP Logged

Hans
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 31
xx Re: DLLs requiring special treatment
« Reply #5 on: Jun 17th, 2015, 11:22am »

Everything is solved now. pct_dll works with LBB, pbimage not, but that isn't needed nomore.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls