473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1252
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ss | last post by:
Hi I built an exe in console debug mode & Release mode . The console debug mode -exe works fine ...but the release mode EXE starts well but fails mid way . The exe is being started as a...
4
by: | last post by:
Hi, does anyone know what would be the (most common) reasons to get difference answers in VC++.net between running in release and debug ? Thanks, JC
10
by: babak | last post by:
Hi everybody I'm working with a project in embedded Visual Studio 4 and I have a general problem which I hope that somebody can help me with. My problem is the following: My project works fine in...
0
by: Lonewolf | last post by:
Hi I'm faced with a very pesky problem. I have a managed assembly done in C++/CLI which interface to native C++ codes, and a C# app which consumes this assembly. I realize that when both the app...
3
by: Johnny | last post by:
Hi guys, I created a user-defined SEH by following Crash Course SEH article by Matt Pietrek. When building the app in Debug mode, it has no problem catching exception and entering the user...
2
by: Epetruk | last post by:
Hello, I have a problem where an application I am working on throws an OutOfMemoryException when I run it in Release mode, whereas it doesn't do this when I am running in Debug. The...
6
by: bjornms | last post by:
The application i build in C#.net is crashing once a month. I can't reproduce the crash. Is there a way to track down where the program crashes, without putting logging everywhere in the code?...
3
by: Bob Johnson | last post by:
It is my understanding - and please correct me if I'm wrong - that when building a project in debug mode, I can deploy the .pdb file along with the ..exe and thereby have access to the specific...
2
by: Dave Johansen | last post by:
I just converted a solution from Visual Studio 2003 to Visual Studio 2005 and the Debug mode seems to be running just fine, but the Release mode crashes on the following code: std::ifstream...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.