0

DLL crashes with release EXE. I have a client application which tries to load a dll when I bring up it. But it crashes the exe now. With debug exe it loads without any problem.

Has anyone faced this kind of issues(release exe crash while dll load)?

Anyone has any clue on this??

Thanks
Sanoj

2
Contributors
4
Replies
6
Views
8 Years
Discussion Span
Last Post by SanojMathew
0

compile both for debug and use your compiler's debugger to find out the problem. Does your program use LoadLibrary() to load the dll into memory? Then GetProcAddress() to get pointer to a function? Make sure that function pointer is not NULL.

0

The problem is that, the issue is not reproducible with debug build..I tried building both dll and exe in debug mode.But then the dll is not crashing the exe during load.

Yes I do use LoadLibrary() GetProcAddress()

Thanks
Sanoj

0

Buffer overruns might cause that behavior because the compiler (at least Microsoft compilers) adds extra bytes to memory allocations when compiled for debug.

0

Seems like memory corruption is happening(may be bcoz of buffer overruns).
What can be the best way to look for buffer overruns?

I tried Rational Purify to chk for memory errors , but it hasn't given any valuable info.

Any suggestion will be appreciated.

Thanks
Sanoj

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.