S
skyman
I package a DLL by EVC++, and write a simple testing program to test it.
I simulate the target program to call the API by timer.
All the test passed, but once I integrate the API, calling the unmanaged
dll, into the target program,
it often caused native exception while the program execute the segment,
calling the unmanaged code.
It didn't happen always, just often.
But while I remove some declaration, it was caused less times.
The declaration is something about forms.
Is this problem possible caused by thread or some unsafe UI control ?
In the unmanaged dll, I used MFC, thread, and call another unmanaged dll.
I simulate the target program to call the API by timer.
All the test passed, but once I integrate the API, calling the unmanaged
dll, into the target program,
it often caused native exception while the program execute the segment,
calling the unmanaged code.
It didn't happen always, just often.
But while I remove some declaration, it was caused less times.
The declaration is something about forms.
Is this problem possible caused by thread or some unsafe UI control ?
In the unmanaged dll, I used MFC, thread, and call another unmanaged dll.