Solved

Visuall C++ Disassembly Window

Posted on 2000-04-28
3
582 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now