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

Error diagnosis

Hello All

We have an app that was written a few years ago in which the developers

wrote an entire exception handling system.
I have a problem with the following line if code:
OutStream << L" (+ " << std::dec <<
static_cast<DWORD>(Disp64) << L" bytes), ";
This is throwing the following exception:
Run-Time Check Failure #2 - Stack around the variable 'stIHM' was
corrupted.
I was wondering if anyone could interpret what the line of code is
actually doing and what the error means - a Google search has proved
fruitless
Thanks
Steve

Nov 27 '06 #1
3 1357
"SteveB" <st*********@callcredit.plc.ukwrote:
We have an app that was written a few years ago in which the
developers

wrote an entire exception handling system.

I have a problem with the following line if code:

OutStream << L" (+ " << std::dec <<
static_cast<DWORD>(Disp64) << L" bytes), ";
This is throwing the following exception:

Run-Time Check Failure #2 - Stack around the variable 'stIHM' was
corrupted.

I was wondering if anyone could interpret what the line of code is
actually doing and what the error means - a Google search has proved
fruitless
What the line of code is actually doing depends on what type OutStream
is and how the op<<'s have been defined.

Based on the wording, I assume the error means that some piece of code
is clobbering your stack (i.e., writing to memory it doesn't have rights
to.) To find the real meaning, you will have to investigate your code
and or ask in a newsgroup that discusses your runtime system.

--
To send me email, put "sheltie" in the subject.
Nov 27 '06 #2
SteveB wrote:
Hello All

We have an app that was written a few years ago in which the developers

wrote an entire exception handling system.
I have a problem with the following line if code:
OutStream << L" (+ " << std::dec <<
static_cast<DWORD>(Disp64) << L" bytes), ";
This is throwing the following exception:
Run-Time Check Failure #2 - Stack around the variable 'stIHM' was
corrupted.
I was wondering if anyone could interpret what the line of code is
actually doing and what the error means - a Google search has proved
fruitless
My bet is that you overwrite memory somewhere else and here
only the error is discovered.

<OT>You might want to use a tool such as electricfence or valgrind
to find the exact spot.
</OT>

HTH,
- J.
Nov 27 '06 #3

Jacek Dziedzic wrote:
SteveB wrote:
Hello All

We have an app that was written a few years ago in which the developers

wrote an entire exception handling system.
I have a problem with the following line if code:
OutStream << L" (+ " << std::dec <<
static_cast<DWORD>(Disp64) << L" bytes), ";
This is throwing the following exception:
Run-Time Check Failure #2 - Stack around the variable 'stIHM' was
corrupted.
I was wondering if anyone could interpret what the line of code is
actually doing and what the error means - a Google search has proved
fruitless

My bet is that you overwrite memory somewhere else and here
only the error is discovered.

<OT>You might want to use a tool such as electricfence or valgrind
to find the exact spot.
</OT>

HTH,
- J.
I'll look into these apps, thanks

Steve

Nov 28 '06 #4

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

Similar topics

0
by: Ringo | last post by:
Medical Diagnosis: Possession Trance Physicians Diagnosis Manual: DSM IV, section 300.14, pp 486-487, and i quote, "the diagnosis of dissociative identity disorder takes precedence over...
12
by: Simon | last post by:
Hi, I'm having a problem with templates and specialisation. I'm using it to overload the same function so it can return different things. I can't see what I'm doing wrong, although my compiler...
1
by: Andrew V. Romero | last post by:
I have a script that I am working on for an intranet tool and in this script I have a form, which when submitted the onSubmit command calls calculate(). In this calculate function, I have it do...
0
by: Hats | last post by:
Medical Diagnosis: Possession Trance Physicians Diagnosis Manual: DSM IV, section 300.14, pp 486-487, and i quote, "the diagnosis of dissociative identity disorder takes precedence over...
2
by: Khurram | last post by:
Hi, Get the following error when trying to create a method that returns a one-dimentional array. You must implement a default accessor on System.Array because it inherits from ICollection. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.