473,780 Members | 2,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable disassembly window in VC++ 2005?

Hello!

I have already started C++ programming with VC++ 2005 Express Edition.
Unfortunately during debugging one of my first programs I had to
unintentionally enable some debugger configuration feature which turns
on Disassembly Window at the end of every my program (basic example below).

int main()
{
//some instructions;
// ............... .
> return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed
}
Could you tell me how to disable this feature because low-level
debugging isn't necessary yet in my situation at all.
Jun 21 '07 #1
11 4418
In article <f5**********@n ews.onet.pl>,
Herhor <he************ **@onet.euwrote :
return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed
I have exactly the same problem, and it drives me nuts that a bug
like this could ship. *EVERY* *BLOODY* *TIME* I hit F10, it goes into
the disassembly, if I've ever once looked at the disassembly. Doesn't
matter if I've gone back to the source; it says "here's more
disassembly." Do you have focus-follows-mouse turned on via the MS
Powertoys? I have that on, and although DevStudio (except for VC++ 6,
the only version to get it right) is stupid about autoraise (I usually
mutter "down, boy" -- DevStudio's autoraise is like a dog trying to
hump your leg).

The only way I've found around the "F10 means step in disassembly"
bug is Tools -Options... -Debugging -General, and uncheck [x]
Enable address-level debugging. That'll prevent the disassembly view
from appearing. And, any memory windows too, unfortunately. What I
usually have to do is turn off address-level debugging. If I re-enable
it later, F10 doesn't go back to the assembly single-stepping. Until I
need to look at the disassembly.

Nathan Mates

--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Jun 21 '07 #2
Nathan Mates pisze:
In article <f5**********@n ews.onet.pl>,
Herhor <he************ **@onet.euwrote :
>>> return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed

I have exactly the same problem, and it drives me nuts that a bug
like this could ship. *EVERY* *BLOODY* *TIME* I hit F10, it goes into
the disassembly, if I've ever once looked at the disassembly. Doesn't
matter if I've gone back to the source; it says "here's more
disassembly."
Shit! I don't know what is going on because VC++ is a decade long MS
product line, so it should be such silly bug free...
Do you have focus-follows-mouse turned on via the MS
Powertoys? I have that on, and although DevStudio (except for VC++ 6,
the only version to get it right) is stupid about autoraise (I usually
mutter "down, boy" -- DevStudio's autoraise is like a dog trying to
hump your leg).
No, I probably don't. But what do you mean "MS Powertoys" ?
The only way I've found around the "F10 means step in disassembly"
bug is Tools -Options... -Debugging -General, and uncheck [x]
Enable address-level debugging. That'll prevent the disassembly view
from appearing. And, any memory windows too, unfortunately. What I
usually have to do is turn off address-level debugging. If I re-enable
it later, F10 doesn't go back to the assembly single-stepping. Until I
need to look at the disassembly.
I also discovered and unchecked this option but instead of Disassembly
Window some stupid VC++ warning "There is no source code available for
the current location" emerges when F10 pressed. So there is no better
anymore.
Besides I think this behavior must be connected "Debug Information
Format" settings because if I change it, Disassembly Window appears more
or less often. You could examine this yourself if you wish...
Jun 21 '07 #3
I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005 _Express
Edition_ doesn't have the CRT source code. What you should do is just
press F5 there to finish it off there.
Jun 21 '07 #4
I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005
_Express__Editi on_ doesn't have the CRT source code. What you should do
is just press F5 there to finish it off there.
Jun 21 '07 #5
In article <f5**********@n ews.onet.pl>,
Herhor <he************ **@onet.euwrote :
> I have exactly the same problem, and it drives me nuts that a bug
like this could ship. *EVERY* *BLOODY* *TIME* I hit F10, it goes into
the disassembly, if I've ever once looked at the disassembly. Doesn't
matter if I've gone back to the source; it says "here's more
disassembly. "
>Shit! I don't know what is going on because VC++ is a decade long MS
product line, so it should be such silly bug free...
This bug is new with 2005. Never had it in VC6, 2002, or 2003.
It's still REALLY annoying when it happens. Here's a hint, MS: if
disassembly view is off, and I have no breakpoints placed in the
disassembly before the next line (or in the current function, for that
matter), then I don't want to see the disassembly.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Jun 21 '07 #6

"Herhor" <he************ **@onet.euwrote in message
news:f5******** **@news.onet.pl ...
>I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005 _Express
Edition_ doesn't have the CRT source code. What you should do is just
press F5 there to finish it off there.
Well, what do you expect to happen when you step off the end of 'main'? It
is the end of your code, after all.

Jun 21 '07 #7
Ben Voigt [C++ MVP] pisze:
>
"Herhor" <he************ **@onet.euwrote in message
news:f5******** **@news.onet.pl ...
>I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005
_Express Edition_ doesn't have the CRT source code. What you should do
is just press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of 'main'?
It is the end of your code, after all.
I simply expected debugging end without opening any Disassembly Widow.
Jun 21 '07 #8

"Herhor" <he************ **@onet.euwrote in message
news:f5******** **@news.onet.pl ...
Ben Voigt [C++ MVP] pisze:
>>
"Herhor" <he************ **@onet.euwrote in message
news:f5******* ***@news.onet.p l...
>>I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005 _Express
Edition_ doesn't have the CRT source code. What you should do is just
press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of 'main'?
It is the end of your code, after all.

I simply expected debugging end without opening any Disassembly Widow.
Ok, well, you aren't quite at the end of the program yet. There is still
some cleanup to be done, so you are allowed to see it. But stepping off the
end of main is pretty pointless unless you want to look at the library
cleanup, so the advice you got to hit F5 and let the program run to exit was
good.

Jun 21 '07 #9
Ben Voigt [C++ MVP] pisze:
>
"Herhor" <he************ **@onet.euwrote in message
news:f5******** **@news.onet.pl ...
>Ben Voigt [C++ MVP] pisze:
>>>
"Herhor" <he************ **@onet.euwrote in message
news:f5****** ****@news.onet. pl...
I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005
_Express Edition_ doesn't have the CRT source code. What you should
do is just press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of
'main'? It is the end of your code, after all.

I simply expected debugging end without opening any Disassembly Widow.

Ok, well, you aren't quite at the end of the program yet. There is
still some cleanup to be done, so you are allowed to see it. But
stepping off the end of main is pretty pointless unless you want to look
at the library cleanup, so the advice you got to hit F5 and let the
program run to exit was good.
OK. I am simply too accustomed to Borland's and GDB's debuggers because
both of them automatically end main() function without calling assembler
window to show user low level memory clean-up.
It seems I must get used to doing programs with MS VC++ IDE closer! :)
Jun 21 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5922
by: Greg | last post by:
I am developing an application where I need to secure a workstation for periods of time. I can use BlockInput to stop users from task switching or messing with the keyboard, but I would like to disable Ctrl-Alt-Delete. It seems there seems to be only one real way I know about: Write a replacement Gina Driver to eat the keyboard events I dont want. Does anyone have a good template for this in Visual Basic .Net?
4
4181
by: Steve | last post by:
I have the MDI MFC application ported to .NET. Now this application include mixed managed/unmanaged code. The application displays progress dialog with the cancel button during lenghtly operation. This progress dialog implemented as modeless to allow user to cancel the lenghtly operation if he wishes. At the same time I disable mainframe window to prevent user from clicking on the menu bar. Here is the segment of the code:
1
1553
by: Stephen Corey | last post by:
Why doesn't the Intellisense feature work in the Immediate/Command window in VC++ .NET 2003? In VB.NET 2003, it works fine. For example, typing: ?this. in VB.NET would bring up the intellisense window showing all the members. If I type this in VC++ .NET:
2
11818
by: kjon | last post by:
When I try to run any project, sometimes I will encounter this tab window in the IDE which has the following message: "Disassembly cannot be displayed in run mode". I mean it'll show sometimes, and sometimes don't. Just wonder what is the meaning of this? Do I need to concern of any wrong doing in my program or codes? Thanks in advance.
4
13438
by: Matthew | last post by:
I had an error in a program I was working on. A dialog box came up saying "do you want to view Disassembly?" I clicked OK just for the fun of it, and now every time I run the program it opens a new tab in VB.NET titled Disassembly. My guess is I checked an option to view the disassembly every time. However, I really don't want this to happen! Does anybody know how to turn this off again?
16
6270
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
1683
by: cj | last post by:
Recently for no apparent reason VB 2003 has been opening a Disassembly tab along with Form1.Vb, Start Page, etc. The Disassembly tab has in it Address and a text box followed by (Enter an address to view disassembly.) Where is this coming from? What is making it appear? I'm working on just a standard windows application. No web stuff.
1
4127
by: Nathan Mates | last post by:
I'm using VS.NET 2005SP1 (C++ Express, though I've also seen this on 2005 Standard SP1). One bit of behavior that's been bugging me a lot, and seems to have gotten worse with SP1, is that if it ever once goes to disassembly view, it will ALWAYS change to disassembly view when I step thru code until I quit VS.NET and restart. (2005 original needed a restart; SP1 sometimes even seems to want to show disassembly while stepping thru code after...
3
2231
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, I use vb 2005 to create window app, and try to disable close button/item on the top right coner of window, can anyone can help this out? Thanks for yuor time, Martin
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10075
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9931
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.