Release mode causes crash

  • Thread starter Thread starter keith.halligan
  • Start date Start date
K

keith.halligan

Hi,

I've tried converting the current project I'm working on into Release
Mode. It keeps crashing on the vftable() throwing an memory exception.

The function stack looks like:
App!ClassName::`vftable'() 0x1

I have the application in a multi-threaded DLL and optimizations have
been turned off.

I would greatly appreciate any help anyone is willing to give for this
problem.

Regards,
Keith
 
I've tried converting the current project I'm working on into Release
Mode. It keeps crashing on the vftable() throwing an memory exception.

The function stack looks like:
App!ClassName::`vftable'() 0x1

I have the application in a multi-threaded DLL and optimizations have
been turned off.

First of all, do Rebuild All and see if the problem is reproducible after that.

If the problem does not go away, test the application under PageHeap,
since heap corruption can cause similar effects:
http://www.debuginfo.com/tips/userbpntdll.html

If it does not help, try to get the call stack with WinDbg or CDB
(VS debugger had a bug that could prevent it from displaying good
call stack in this situation). For example, you can use the approach
described here:
http://www.debuginfo.com/articles/easywindbg.html#debugstackoverflow
(the article talks about stack overflow at that place, but the approach
can be used to get the call stack after any exception)

See also these articles for additional information about converting application
into release mode:
http://www.flounder.com/debug_release.htm
http://www.cygnus-software.com/papers/release_debugging.html

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]
 
Back
Top