Author |
Topic: DLLs requiring special treatment (Read 782 times) |
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
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.
|
|
Logged
|
|
|
|
Hans
New Member
member is offline
Gender:
Posts: 31
|
|
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
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
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.
|
|
Logged
|
|
|
|
Hans
New Member
member is offline
Gender:
Posts: 31
|
|
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
|
|
Logged
|
|
|
|
Hans
New Member
member is offline
Gender:
Posts: 31
|
|
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
|
|
Logged
|
|
|
|
Hans
New Member
member is offline
Gender:
Posts: 31
|
|
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.
|
|
Logged
|
|
|
|
|