<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><span style="font-family: monospace;">Hi,<br>i have a dll compiled with fpc which i load it from my another dll compiled with vc++ using loadlibrary function.<br>So far there was no problem,but with winmo 6.1 using loadlibrary will cause crashes and return NULL.so it doesnt load it at all!<br><br>I was wondering how can i pinpoint the problem.<br>my dll,uses units with initialization sections,could if any crash happen there causes library not to load?<br><br>because i guess loading library doesnt do anything but just moving it into memory space?(or does those initialization sectiors end up in dllmain,attach_process?)<br><br>So?<br><br>Regards,<br>Roozbeh GHolizadeh<br></span></td></tr></table><br>