470,867 Members | 1,805 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,867 developers. It's quick & easy.

Release mode causes crash

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

Mar 2 '06 #1
1 1125
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/ea...gstackoverflow
(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/paper...debugging.html

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



Mar 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by ss | last post: by
10 posts views Thread by babak | last post: by
reply views Thread by Lonewolf | last post: by
3 posts views Thread by Johnny | last post: by
6 posts views Thread by bjornms | last post: by
3 posts views Thread by Bob Johnson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.