[omniORB-dev] Reloading DLLs

Andrew Wilde ajw@it-innovation.soton.ac.uk
Wed, 23 Apr 2003 10:41:16 +0100


Hi,

We have observed seems problem reloading DLLs when using Omniorb4.0.0. To boil
the problem down I wrote some test code based on the echo example that comes 
with OmniORB. 

Basically, the test code loads and unloads a DLL twice . The DLL implements the 
echo object so is linked with the echo stub object file (echoSK.obj). The test 
works fine until I also link the test code against the echo stub.  When I run
the example I get the following error message at the point it attempts to load 
the DLL for the second time:

998 - Invalid access to memory location (ERROR_NOACCESS)

The problem seems related to the loading of the static OmniORB libraries and happens
with both release and debug versions. We are not sure if this is a specific problem
with OmniORB or is some more generic windows problem, so if anyone can shed some light
on this we would greatly appreciate it. 

Thanks,

-------------------------
Andrew Wilde
IT Innovation Centre
2 Venture Road
Chilworth Science Park
Southampton, SO16 7NP, UK