473,404 Members | 2,187 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,404 software developers and data experts.

'Exception Object Address: 0x995ADA' Process stopped

Hi
I want to know why my pc deal with the exception is:
the following informations:
Project Project 1.exe raised exception class int with message 'Exception Object Address: 0x995ADA' Process stopped. Use Step or Run to continue.
I do not why, the code is as following:
Expand|Select|Wrap|Line Numbers
  1.  
  2. #include <iostream>
  3. using namespace std;
  4. void main ()
  5. {
  6. int a = 0;
  7. int b;
  8.   try
  9.   {
  10.   while(a != 4)
  11.   {
  12.   cout<<"Please input a number!! "<<endl;
  13.   cin>>a;
  14.   }
  15.   if(a == 4)
  16.   throw a;
  17.   }
  18.   catch (int a)
  19.   {
  20.     cout << "An exception occurred. Exception Nr. " << endl;
  21.   }
  22.  
  23. }
  24.  
Feb 5 '07 #1
5 3007
horace1
1,510 Expert 1GB
cannot see any problem with you code - if I run it I can enter numbers until I enter 4 when I get "An exception occurred. Exception Nr. " as expected
what compiler/operating system are you using?
Feb 5 '07 #2
cannot see any problem with you code - if I run it I can enter numbers until I enter 4 when I get "An exception occurred. Exception Nr. " as expected
what compiler/operating system are you using?
I use C++ Builder 6.0
I do not know why?
Feb 6 '07 #3
AdrianH
1,251 Expert 1GB
I use C++ Builder 6.0
I do not know why?
Ummm, you may want to turn exception handling on. I haven't use C++ Builder before, but I know some compilers turn it off by default as stack unwinding has a bunch of overhead that in some cases people do not want. Why wouldn't they want it? Because, if you don't use exceptions then the compiler is generating the overhead for nothing.

Hope this helps.


Adrian
Feb 6 '07 #4
Ummm, you may want to turn exception handling on. I haven't use C++ Builder before, but I know some compilers turn it off by default as stack unwinding has a bunch of overhead that in some cases people do not want. Why wouldn't they want it? Because, if you don't use exceptions then the compiler is generating the overhead for nothing.

Hope this helps.


Adrian
hi,
Adrian
Thank you so much, what you said is totally right.
Thanks again.
Feb 6 '07 #5
AdrianH
1,251 Expert 1GB
hi,
Adrian
Thank you so much, what you said is totally right.
Thanks again.
No prob, glad to help.


Adrian
Feb 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Saravanan | last post by:
Hello, Im running Python Application as a Windows Service (using windows extensions). But, sporadically the application crashes (crash in Python23.dll) and this stops the service. This problem...
26
by: Alan Silver | last post by:
Hello, I have a server running Windows Server 2003, on which two of the web sites use the MegaBBS ASP forum software. Both sites suddenly developed the same error, which seems to be connected to...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
4
by: robinsand | last post by:
Header File: car.h #if !defined CAR_H #define CAR_H enum TCarType { ctEconomy = 1, ctCompact, ctStandard, ctFullSize, ctMiniVan, ctSUV }; class Car { public: Car();
2
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web...
0
by: mike.varley1 | last post by:
Hi All We are getting the warning messages below several times a day in the app event logs on our Win2k3 server. Can anyone shed any light on the meaning\cause of the DC issue, especially: "This...
12
by: Angus | last post by:
Hello I have a class I am using which raises an exception in its constructor if certain things aren't in place. I can easily create the situation where an exception is raised. If I use the...
4
by: Dilip | last post by:
Hi I am using the following WMI code to watch for the termination of a particular process. This code is running under Windows Vista. public void WaitForDeath() { using (AutoResetEvent...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...
0
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,...

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.