Hello,

I have developed a program which has a function name 'cargarDLL' that inside it load a DLL made by an external developer (I mean, I have no control over dll source code).

My program and the DLL has been running OK until I upgrade compiler versión from 4.5.2 to 4.7.0. Now the first-called exported dll function runs ok, but when I return from my funcion (cargarDLL), in the 'return' keyword it crashes.

My question are:

* Does a DLL run in the data space of the called process? I ask this to know if a bug in the dll can corrupt my program. If not I am sure it is a bug in my code.

* If it is a bug in my code, how can I catch it? Because in the 'return' keyword I not see anything special to make me suspect of a bug.

Any ideas how can I solve this?
Thanks.