473,323 Members | 1,560 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,323 software developers and data experts.

Cannot set breakpoint. Decorated name length exceeded?

Hi all,

I once had a function in which I could not set a breakpoint. VS VC++ .net
2003 7.1 (native c++) would crash. This particular function had about five
arguments. Each argument was an STL container of some sort. The "expanded"
name of the function (with all templates written out) was extrememly large
and I believe this was the cause of the crash. I worked around the problem
by creating a "dummy" struct to hold the five arguments.

I previously thought these warnings could be ignored:

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(152) :
warning C4503: 'std::allocator<_Ty>::rebind<_Other>' : decorated name length
exceeded, name was truncated

However, my experience with this crash is leading me to rethink this
approach.

What should I do about C4503? The GCC build of my project has a "no
warnings tolerated" policy, but the MSVC 7.1 .net 2003 build has the
"luxury" of C4503 warnings. Can I safely ignore them?

Thanks for your input,
Chris


Dec 22 '05 #1
3 3076
"Chris Stankevitz" <ch******@stankevitz.nospamplease.com> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
I once had a function in which I could not set a breakpoint. VS VC++ .net
2003 7.1 (native c++) would crash. This particular function had about
five
arguments. Each argument was an STL container of some sort. The
"expanded"
name of the function (with all templates written out) was extrememly large
and I believe this was the cause of the crash. I worked around the
problem
by creating a "dummy" struct to hold the five arguments.

I previously thought these warnings could be ignored:

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(152)
:
warning C4503: 'std::allocator<_Ty>::rebind<_Other>' : decorated name
length
exceeded, name was truncated

However, my experience with this crash is leading me to rethink this
approach.

What should I do about C4503? The GCC build of my project has a "no
warnings tolerated" policy, but the MSVC 7.1 .net 2003 build has the
"luxury" of C4503 warnings. Can I safely ignore them?


At this link

http://msdn2.microsoft.com/library/074af4b6.aspx

there is this:

<quote>
The correctness of the program, however, is unaffected by the truncated name
</quote>

so unless we get contrary information from a higher power here, I'd ignore
it. :-)

And by the way, if you need a breakpoint and don't mind an extra
edit/compile/link cycle just add a call to DebugBreak() where you need it.

Regards,
Will
Dec 22 '05 #2

"William DePalo [MVP VC++]" wrote:

http://msdn2.microsoft.com/library/074af4b6.aspx
Thanks for the link! It's unfrotunately that C4503 does indeed affect
debugging (which I have seen in practice and is confirmed at your link).
add a call to DebugBreak()


Which #include has the function "DebugBreak()"?

Thanks,

Chris
Jan 4 '06 #3
"Chris Stankevitz" <ch******@stankevitz.nospamplease.com> wrote in message
news:ue***************@TK2MSFTNGP14.phx.gbl...

"William DePalo [MVP VC++]" wrote:

http://msdn2.microsoft.com/library/074af4b6.aspx
Thanks for the link!


You are welcome.
Which #include has the function "DebugBreak()"?


You should include <windows.h> although it is defined in <winbase.h>

Regards,
Will
Jan 4 '06 #4

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

Similar topics

7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
3
by: frey | last post by:
i have two parts of code here this is a javascript: function addThirdTierCategory(){ var length = document.form.selectedCategory.options.length var maxNum=10; if(length >= maxNum){...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
0
by: Frans Bouma | last post by:
Hello, It seems VS.NET 2003 locks up itself and the complete shell (mouse locks also) when entering a breakpoint in a special situation. Below is the code to reproduce this behavior. It...
0
by: John Mason | last post by:
Hi, I have developed an asp.net application that uses forms authentication. I have a local install and a remotely hosted install of the application. Intermittently the remote application falls...
0
by: Prodip Saha | last post by:
Sorry about the cross-posting but I need to get attention from the ADO.Net and Web Service Gurus! I really need to use the System.Data.OleDb.OleDbParameter Class but I am getting following error...
0
by: noleander | last post by:
Hi. Ive been using Visual C++ for two years on an application. The application is one solution, containing 10 projects. 9 of the projects build libraries (*.lib). I've been debugging the...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
1
by: sunshine19992 | last post by:
Not sure if others have come acrossed this bit I have a program for a C# class I am taking and during my troubleshooting I have found that if I turn on a breakpoint and then press F5 to continue...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.