Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2006

Tip: Looking for answers? Try searching our database.

Release mode causes crash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
keith.halligan@gmail.com - 02 Mar 2006 15:53 GMT
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
Oleg Starodumov - 03 Mar 2006 11:56 GMT
> I've tried converting the current project I'm working on into Release
> Mode. It keeps crashing on the vftable() throwing an memory exception.
[quoted text clipped - 4 lines]
> 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/]

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.