473,799 Members | 3,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable debugger-related warnings!?!

Does anyone debugger-related warnings like this one?

warning C4786:
'std::_Tree<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch a
r>
,std::pair<std ::basic_string< char,std::char_ traits<char>,st d::allocator<ch a r> > const
,int>,std::map< std::basic_stri ng<char,std::ch ar_traits<char> ,std::al
locator<char>,int,std::less <std::basic_str ing<char,std::c har_traits<char >,std::allocato r <char> > >,std::allocato r<int>::_Kfn,std::le ss<std::basic_s tring<char,std: :char_traits<ch ar>,std::alloca t

or<char> > >,std::allocato r<int> >' : identifier was
truncated to '255' characters in the debug information

How do I disable it without littering my code with #pragma directives? I am
using VC++ 6.0. Thanks.
Jul 22 '05 #1
3 1717

"Jason Heyes" <ge******@optus net.com.au> wrote in message
news:3f******** **************@ news.optusnet.c om.au...
Does anyone debugger-related warnings like this one?

warning C4786: [SNIP]> How do I disable it without littering my code with #pragma directives? I am using VC++ 6.0. Thanks.


This is a compiler specific question and has nothing to do with standard
C++. Anyway, checking out the help on #pragma you will find something like
this:

#pragma warning( disable : 4507 34; once : 4385; error : 164 )
which I think is self-explanatory.

Regards
Chris
Jul 22 '05 #2
"Jason Heyes" <ge******@optus net.com.au> wrote in message news:<3f******* *************** @news.optusnet. com.au>...
[parsnips]
How do I disable it without littering my code with #pragma directives? I am
using VC++ 6.0. Thanks.


We don't speak that around here. You will need to ask about compiler
specific stuff in a news group related to it.

You could try the microsoft.publi c.vc.* news groups, available
at www.google.com. Or you could try one of the news groups with
windows or dos in the name. And if you do a search on the topic
at google, I'm pretty sure you'll find the answer.
Socks
Jul 22 '05 #3
On Tue, 9 Dec 2003 18:33:33 +1100, "Jason Heyes"
<ge******@optus net.com.au> wrote:
Does anyone debugger-related warnings like this one?

warning C4786: [snipped compiler blah blah] truncated to '255' characters in the debug information

How do I disable it without littering my code with #pragma directives? I am
using VC++ 6.0. Thanks.


Just use one at the beginning. I use:
#pragma warning(disable :4786)
// Suppress warning about lengthy name generated.

I do not think that there is a Standard way of disabling such
messages. It would seem to be very implementation-defined.

Sincerely,

Gene Wirchenko

Jul 22 '05 #4

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

Similar topics

0
1194
by: AP | last post by:
When running an application through the debugger any edits to the source file will take VC7 about 5 min before it gives back control. It's trying to check dependencies or something like that. Is there a way to completely disable it I've tried all the Tools->Options->Debugging->Edit and Continue settings VC6 had the same issue and the only way to completely disable it was to tweak some registry settings. I couldn't find that in VC7 ...
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?
0
1112
by: Shea | last post by:
Is there anyway to disable user controls being alive at design time? I have a user control which is throwing an exception in the constructor, and as such prevents me from loading my solution anymore (everytime I load the solution, the control gets instantiated, and I get the option of choosing a debugger... after debugging, I get kicked out of Visual Studio...)
2
3929
by: Jon Paal | last post by:
how can I turn off / disable JIT debugger ?
2
5290
by: Yansky | last post by:
Hi, I was just wondering if it is possible to disable script debugging in IE from within a script. I know I can disable it manually through the IE tools menu, but is it possible to disable it from within a script? e.g. debug = false; or something? I've googled, but all the results show the manual way through the tools menu.
0
10470
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...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
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
10023
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...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
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
5459
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...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2935
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.