🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages Started by Dmitry Konnov Thu, 01 Jun 2006 10:48
trapping all exeptions
#3579
Author: Dmitry Konnov
Date: Thu, 01 Jun 2006 10:48
11 lines
1290 bytes
Hello,

I have a lot of memory allocation in application.
Ofcourse somewhere i made mistakes with releasing memory, but application
seems to work OK for now.
When I closing application i get too many consecutive errors and exceptions
are thrown inside of Windows.
I would like to trap all exeptions and hide them from user to keep
application look nice.

Please help.
Re: trapping all exeptions
#3580
Author: Andrue Cope [TeamB]
Date: Thu, 01 Jun 2006 11:20
19 lines
1652 bytes
Dmitry Konnov wrote:

> Ofcourse somewhere i made mistakes with releasing memory, but
> application seems to work OK for now.

That is a very questionable attitude. Unless the program is unimportant
and has a very short life span you really shouldn't take that view. The
exceptions are occuring because your code is doing something so wrong
that it threatens the stability of the computer it is running on. You
should be very concerned and unhappy about that state of affairs.

The best analogy I can think of here is the low oil warning light on a
car's dashboard. If the light kept blinking on would you really just
remove the bulb to stop it?

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Re: trapping all exeptions
#3581
Author: Thorsten Kettner
Date: Fri, 02 Jun 2006 06:51
16 lines
1452 bytes
"Dmitry Konnov" <dmitry@weblinedesign.biz> wrote:
>I have a lot of memory allocation in application.
>Of course somewhere i made mistakes with releasing memory, but 
>application seems to work OK for now.
>When I closing application i get too many consecutive errors and exceptions
>are thrown inside of Windows.
>I would like to trap all exeptions and hide them from user to keep
>application look nice.
>
>Please help.

Wow, here comes the next aspirant for http://thedailywtf.com.

Dmitry, seriously, go to project options, check Code Guard and 
see if its error messages help you to spot your code flaws.
Re: trapping all exeptions
#3486
Author: Dmitry Konnov
Date: Sat, 03 Jun 2006 07:49
7 lines
1018 bytes
Hey guys,

what about

SetUnhandledExceptionFilter ?

Dmitry
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads