Hello
Im not sure what you might be able to do about this from CVI, since its pretty much up to the OS how and where the dll is loaded in memory. I would think that when the code is run in debug mode, the CVI enviornment is making sure that the memory locations are valid. Perhaps what might be happening is that there is already a process loaded at the image address of the dll, and thats why the OS moves it elsewhere to an available location. Which is why perhaps
rebasing the main dll to an un-used memory location might help.
Or perhaps you could delay the process of loading the dll address table until after most of the initialization has occured.
I hope thi
s helps
Bilal Durrani
NI
Bilal Durrani
NI