using ppGIF in DLL
Hello
I'm using loading reports in my DLL in D6 update 2.
I'm using unloading DLL by myself as shown below:
finalization
if ReportDll > HINSTANCE_ERROR then FreeLibrary(ReportDll);
end.
My program hungs (CPU utilization is about 100%) when adding a module that
uses ppGIF and it doesn't when adding a module that uses ppJPEG.
WBR Sergey Kovalev svk@siamed.ru
I'm using loading reports in my DLL in D6 update 2.
I'm using unloading DLL by myself as shown below:
finalization
if ReportDll > HINSTANCE_ERROR then FreeLibrary(ReportDll);
end.
My program hungs (CPU utilization is about 100%) when adding a module that
uses ppGIF and it doesn't when adding a module that uses ppJPEG.
WBR Sergey Kovalev svk@siamed.ru
This discussion has been closed.
Comments
adding ppGIF in your sample module:
$(DELPHI)\RBuilder\Demos\7. DLL\FormDLL.pas
"Chris Ueberall [TeamDM]" ???????/???????? ?
I wasn't able to reproduce the issue with unit 'ppGIF', but I included it only by the uses clause without accessing any code from it.
I used RB7 & D7.
regards,
Chris Ueberall;
with thread safe version of this unit? May I give patch from You?
"Chris Ueberall [TeamDM]" ???????/???????? ?
I used the wrong unit to include 'ppGIF', now I was able to reproduce the problem.
The app is waiting for something (MsgWaitForMultipleObjectsEx). Probably isn't the unit thread safe.
regards,
Chris Ueberall;
Sorry but I have no patch, I'm a user of RB like you!
regards,
Chris Ueberall;
I just sent you a patch that I think will fix this issue.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thank you Nard.
Please send the patch at sergey_kovalev@inbox.ru once again.