Solved

Visuall C++ Disassembly Window

Posted on 2000-04-28
3
586 Views
Last Modified: 2012-08-14
Hi.

Everytime my application causes an access violation, the dissassembly window pops up. Or when I erroneously press the f11 key instead of f10. Is there a way I can turn this off ? I don't want to see the dissasembly code. I just want to see the offending function.
Please Help
0
Comment
Question by:Walluce
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 2758963
This happens when there is no symbolic debug information for the code that is causing the error.  Like if the error occurs in a DLL compiled without debug symbols or if it occurs in the OS code and you haven't installed the debug version of the OS.    

There really isn't much you can do about it.   using programs and DLLs that have been compiled with debug information and Installing the debug version of the OS, available from MSDN, will help, but there is always some code somewhere that isn't going to have the debug symbols.
0
 

Author Comment

by:Walluce
ID: 2759009
I accept that, but can't I tell it NOT to bring up the disassembly window ? I am not going to change the windows code in assembly language anyway. I would like it to just show me the function in my program that caused the error. I really get frustrated when the assembly window comes up when I have not asked for it. It's a useful function, but bothersome. I have tried looking on the MS website, but I can't find anything. Is there anywhere on the site where I can ask a simple question like this, without being charged money ?

If you can, please answer these questions. I am, however accepting your answer, that I can not turn it off.
0
 
LVL 22

Expert Comment

by:nietod
ID: 2759048
>>  can't I tell it NOT to bring up the disassembly window ?
I've never seen a way.   I guess they can't image a progrmmer not wanting to know _something_ about where the error is.  (even if it is next to nothing.)

You can dock the assembly window and make it small, so when it pops up it wil not take up much space.   Actually I guess you coudl just make it small.

>> I would like it to just show me the
>> function in my program
>> that caused the error.
Its not that smart.  it only knows where the function occured, now whose fault it was.  (Like if you passed a bad parameter to the function.)

You might already know this, but when this happens, you can use the call-stack at the top of the variables window to move back up the call stack to get to the function in your program that called the functions that failed.   this is not done automatically, but it is easy enough to do manually, I know I do it a lot!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question