[twsocket] Exception handling in a Form

2007-01-25 Thread Veit Zimmermann
Hi

May be I'm missing something, but...
How can I catch an exception raised by an asynchronous function like
TnCnx.Connect in a form. In a TApplication there is a Method for this
(HandleException). Is there something similar for a TForm?

TIA
Veit
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Freeze when using smtp after recreating itsparentform

2007-01-25 Thread Henrik
Hi Arno and others! 

Some of the heavy work load I experienced a while ago has decreased a bit so
I thought that I should take the opportunity to thank You ALL that tried to
help me.

At the end the solution for me was to use another smtp component. Sorry
about that. (As a request by Francois Piette I'm not going to mention it by
name in this news group.) 
Even if it is like You say Arno, that the problem is not originating from
ICS it is still toghether with the SmtpCli component the problem appears.
This makes it impossible to use the SmtpCli component knowing that users
might not be able to use our application under certain _normal_
circumstances (like in our test case with a new Dell laptop). We can not
tell our users that they have to uninstall other softwares just to be able
to send emails from our application.
Even if it is not a bug in ICS code or design the fact remains: Other smtp
components out there works just fine under the same circumstances. So that
was why I was forced to take that path.

But once again: Thank You all for the help! You are doing a wonderful job!
Best Regards
Henrik



Arno Garrels wrote:
 The problem is *not a bug in ICS*. Instead another process
 injects and executes its own, buggy code in the process space
 of the ICS-application. Detoured.dll is used for hooking API
 calls. The hooking application is the culprit! 
 That must not be a virus or trojan but may be any other 
 application/service or security suite as well.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Freeze when using smtp after recreating itsparentform

2007-01-25 Thread Arno Garrels
Strange logic Henrik,

Even Microsoft's Works doesn't/didn't work with this buggy, API
hooking Embassy Trust Suite pre-installed on newer DELL systems.
Possibly they already fixed it in some service pack? If not,
someone/we should report the bug to either DELL or Wave Systems.
I was hoping that you helped identifying the Embassy Trust Suite 
clearly as the culprid. 

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

 

Henrik wrote:
 Hi Arno and others!
 
 Some of the heavy work load I experienced a while ago has decreased a
 bit so I thought that I should take the opportunity to thank You ALL
 that tried to help me.
 
 At the end the solution for me was to use another smtp component.
 Sorry about that. (As a request by Francois Piette I'm not going to
 mention it by name in this news group.)
 Even if it is like You say Arno, that the problem is not originating
 from ICS it is still toghether with the SmtpCli component the problem
 appears. This makes it impossible to use the SmtpCli component
 knowing that users might not be able to use our application under
 certain _normal_ circumstances (like in our test case with a new Dell
 laptop). We can not tell our users that they have to uninstall other
 softwares just to be able to send emails from our application.
 Even if it is not a bug in ICS code or design the fact remains: Other
 smtp components out there works just fine under the same
 circumstances. So that was why I was forced to take that path.
 
 But once again: Thank You all for the help! You are doing a wonderful
 job! Best Regards
 Henrik
 
 
 
 Arno Garrels wrote:
 The problem is *not a bug in ICS*. Instead another process
 injects and executes its own, buggy code in the process space
 of the ICS-application. Detoured.dll is used for hooking API
 calls. The hooking application is the culprit!
 That must not be a virus or trojan but may be any other
 application/service or security suite as well.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Wilfried Mestdagh
Hello Veit,

Normally the components handles their own exception by design (as it
should be). Be sure you have no exceptions in events. If there is a
chance that your code can raise an exception then you should have that
event into an try excpet block and handle it.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Thursday, January 25, 2007, 17:04, Veit Zimmermann wrote:

 Hi

 May be I'm missing something, but...
 How can I catch an exception raised by an asynchronous function like
 TnCnx.Connect in a form. In a TApplication there is a Method for this
 (HandleException). Is there something similar for a TForm?

 TIA
   Veit

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Arno Garrels
You probably hit the wrong button.
Your mail is addressed to me privately.

Arno
 
Wilfried Mestdagh wrote:
 Hello Veit,
 
 Normally the components handles their own exception by design (as it
 should be). Be sure you have no exceptions in events. If there is a
 chance that your code can raise an exception then you should have that
 event into an try excpet block and handle it.
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 
 Thursday, January 25, 2007, 17:04, Veit Zimmermann wrote:
 
 Hi
 
 May be I'm missing something, but...
 How can I catch an exception raised by an asynchronous function like
 TnCnx.Connect in a form. In a TApplication there is a Method for this
 (HandleException). Is there something similar for a TForm?
 
 TIA
 Veit
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Arno Garrels
Arno Garrels wrote:
 You probably hit the wrong button.
 Your mail is addressed to me privately.

Perfect chaos, sorry. Please ignore this mail.

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


 
 Arno
 
 Wilfried Mestdagh wrote:
 Hello Veit,
 
 Normally the components handles their own exception by design (as it
 should be). Be sure you have no exceptions in events. If there is a
 chance that your code can raise an exception then you should have
 that event into an try excpet block and handle it.
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 
 Thursday, January 25, 2007, 17:04, Veit Zimmermann wrote:
 
 Hi
 
 May be I'm missing something, but...
 How can I catch an exception raised by an asynchronous function like
 TnCnx.Connect in a form. In a TApplication there is a Method for
 this (HandleException). Is there something similar for a TForm?
 
 TIA
 Veit
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Wilfried Mestdagh
Hello Arno,

 Perfect chaos, sorry. Please ignore this mail.

That's because we are programmers :) However there is one thing. Hitting
'reply to all' does address the mail also to the original poster. I dont
like it as it start often private mailings. And 'reply to all' is a
common used button in buziness. Francois is this something you can
disable ?

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Freeze when using smtp after recreating itsparentform

2007-01-25 Thread Dan
I thought it was figured out that dynamically unloading and reloading the
dll was the problem, which other components probably don't do, and I think
you were given a workaround that worked...to load it manually so that the
loaded count always stays above 0 and it remains loaded.

Dan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Henrik
 Sent: 25 January 2007 16:42
 To: 'ICS support mailing'
 Subject: Re: [twsocket] Freeze when using smtp after recreating
 itsparentform
 
 Hi Arno and others!
 
 Some of the heavy work load I experienced a while ago has decreased a bit
 so
 I thought that I should take the opportunity to thank You ALL that tried
 to
 help me.
 
 At the end the solution for me was to use another smtp component. Sorry
 about that. (As a request by Francois Piette I'm not going to mention it
 by
 name in this news group.)
 Even if it is like You say Arno, that the problem is not originating from
 ICS it is still toghether with the SmtpCli component the problem appears.
 This makes it impossible to use the SmtpCli component knowing that users
 might not be able to use our application under certain _normal_
 circumstances (like in our test case with a new Dell laptop). We can not
 tell our users that they have to uninstall other softwares just to be able
 to send emails from our application.
 Even if it is not a bug in ICS code or design the fact remains: Other smtp
 components out there works just fine under the same circumstances. So that
 was why I was forced to take that path.
 
 But once again: Thank You all for the help! You are doing a wonderful job!
 Best Regards
 Henrik
 
 
 
 Arno Garrels wrote:
  The problem is *not a bug in ICS*. Instead another process
  injects and executes its own, buggy code in the process space
  of the ICS-application. Detoured.dll is used for hooking API
  calls. The hooking application is the culprit!
  That must not be a virus or trojan but may be any other
  application/service or security suite as well.
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Veit Zimmermann
Hello Wilfried

Thanks for your reply. The answer is a surprise for me:
Of course I know try except/finally, but why does it work when I
wrap it around TnCnx.Connect? I thought this is an asynchronous
method? But it works. I would have expected that the try/except
block is left right after calling connect and not only until the
connection is established or an exception occurs. Could you please
explain this?

Veit

Wilfried Mestdagh wrote:
 Hello Veit,
 
 Normally the components handles their own exception by design (as it
 should be). Be sure you have no exceptions in events. If there is a
 chance that your code can raise an exception then you should have that
 event into an try excpet block and handle it.
 
 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz
 
 Thursday, January 25, 2007, 17:04, Veit Zimmermann wrote:
 
 Hi
 
 May be I'm missing something, but...
 How can I catch an exception raised by an asynchronous function like
 TnCnx.Connect in a form. In a TApplication there is a Method for this
 (HandleException). Is there something similar for a TForm?
 
 TIA
  Veit


-- 
*
* Dipl.-Ing. Veit Zimmermann [EMAIL PROTECTED] *
* VECTRONIC Aerospace GmbH  www.vectronic-aerospace.com *
* Carl-Scheele-Str. 12 tel: +49 (0)30 6789 4990 *
* D-12489 Berlin   fax: +49 (0)30 6789 5230 *
* Germany  WGS84: 52°25.83'N 13°31.52'E *
*
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be