Lee Jenkins wrote:
>> Are you really sure, if problem is not in your added code? Are you
>> syure if you have compiled with correct Synapse sources? (some
>> similar bug has been corrected long time ago!)
>
> Thanks for the help guys, I fixed it.  It's a good thing I never say
> "its not my code"!.  I have to run out the door, but I will post back
> what the problem was when I return.  Just don't want anyone wasting
> time answering my post in the meantime.

First, I need to ascertain that I'm *not* attempting to provide any sort
of solution to the problem at hand (especially so since you say you
already found it) but rather, I wish to post my guess at what the
problem might've been. Generally speaking, this is of course metatalk
not directly connected to Synapse in particular, but can possibly help
others to prevent it from happening to them. Once you know about it,
you're able to look out for it.

Ok... I personally very often face problems in threads where an
exception is raised. Either I fail to handle it properly or - while
handling it - I manage to raise another exception that escapes the
supposed exception handling. Since it eventually bubbles to the
operating system, it (more often than not) takes the thread with it
(with an unclean exit, of course).

Many times this happens is when I use try...finally -blocks. For some
reason, I never remember the fact that "finally" does *not* trap
exceptions, but instead lets them flow into the next level of exception
handling (which, once again, might bubble to the operating system
causing an unclean exit from a thread).

So, boys and girls, when we're supposed to be handling exceptions, let's
really do it - instead of just pretending to be doing it :) Oh, and for
the record, on my opinion "try ... except on e:exception do begin end;"
is not "exception handling" :D

-- 
Markku Uttula


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to