473,698 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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<DWO RD>(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 1367
"SteveB" <st*********@ca llcredit.plc.uk wrote:
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<DWO RD>(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<DWO RD>(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<DWO RD>(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
1860
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 dissociative amnesia, dissociative fugue, and depersonalization disorder. individuals with dissociative identity disorder can be distinguished from those with trance and possession trance symptoms that would be diagnosed as dissociative disorder not...
12
5250
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 promises me I am! Here follows an example of my code, and i've included the error VC is giving me if that helps. Can anyone point me in the right direction? Cheers, Simon ;o) --
1
2352
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 some calculations and write out a new document using document.write(). One of the lines it writes is (the whole script is at the bottom of this email). pageData = PageData+"<b>Patient Data</b><br>Wt: "+weight+" "+weightUnits+" &nbsp&nbsp Ht:...
0
2282
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 dissociative amnesia, dissociative fugue, and depersonalization disorder. individuals with dissociative identity disorder can be distinguished from those with trance and possession trance symptoms that would be diagnosed as dissociative disorder not...
2
1806
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. Below is how I am writing the method. public Array Diagnosis(DataSet assessmentData)
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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
9031
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
8901
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
8871
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
6528
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
4371
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
3052
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
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.