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

Uncaught exception

Hello everyone,
Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.

1. If there is uncaught exception, destructor is not ensured to be
called for active object;

2. All the resources (handles, memory, etc.) for current process will
be released when uncaught exception causing process to terminate.
thanks in advance,
George
Jan 28 '08 #1
3 2514
George2 wrote:
Hello everyone,
Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.
Then why ask here?

--
Ian Collins.
Jan 28 '08 #2

"George2" <ge*************@yahoo.comwrote in message
news:c0**********************************@e6g2000p rf.googlegroups.com...
Hello everyone,
Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.

1. If there is uncaught exception, destructor is not ensured to be
called for active object;
What's an "active" object?
2. All the resources (handles, memory, etc.) for current process will
be released when uncaught exception causing process to terminate.
Best asked in one of the microsoft.public newsgroups. Or better yet, looked
up on MSDN.
Jan 28 '08 #3
On Jan 28, 12:01 am, George2 <george4acade...@yahoo.comwrote:
Hello everyone,

Just want to check whether my understanding is correct,

Both (1) and (2) only covers Windows C++ platform.

1. If there is uncaught exception, destructor is not ensured to be
called for active object;
On any caught or uncaught exception, destructors for objects aren't
guaranteed to be called.
2. All the resources (handles, memory, etc.) for current process will
be released when uncaught exception causing process to terminate.
On any caught or uncaught exceptions all Resources aren't guaranteed
to be released.
thanks in advance,
George
Use RAII.

Jan 28 '08 #4

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

Similar topics

4
by: nrhayyal | last post by:
hi all, i am facing a problem in catching an exception which is uncaught in any of the catch block. not doing so will gives me coredump. I tried by rewriting set_unexpected() and set_terminate()...
7
by: meaneyedcat | last post by:
When I call addField(), my table appears to be populated correctly with a new row in the table with all the required fields. However, when I call delete row on any new rows that have been created,...
3
by: c.prerovsky | last post by:
Hi there, I started messing around with JavaScript OOP a few days ago and still can't get this one to work. There are many things wich keep confusing me, eg. the various ways to define a class...
5
by: -Lost | last post by:
Error: uncaught exception: " nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///D:/sites/_test/js/iterate_document.htm :: <TOP_LEVEL:: line 15" data: no] Line 15...
2
Plater
by: Plater | last post by:
I am using the XMLHttpRequest to send a request every 5ish seconds or so. Everything works fine until I take the server down that the object is trying to retrieve data from. Then the firefox...
9
by: xhunter | last post by:
Hi, I have written my code to load some content through ajax, which works perfectly, then I thought of adding a timeout to retry the action in case it has failed or something. here is the code...
2
by: josephx | last post by:
Hello, I got some of these errors listed below after executing an HTTP Post MIDlet on CLDC/MIDP platform, "Nokia S40 DP 2.0 SDK 1.1" and "S40 5th Edition SDK Feature Pack 1" and even for S60's...
3
by: friend | last post by:
Error: uncaught exception: " nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://manimekalai/VulnMgmt/scanfi/crs_source/vulnupdate/latest.php?vulnerability=2451 ::...
15
by: danielo | last post by:
class Error { Error(string err) { cout << err; } } void main() { try { throw string("exception"); } catch(Error Err) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
0
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...
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,...
0
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...

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.