Hello Francois, I found the problem by examining all the socket event handlers. You are right. It's a date time conversion function that gets an invalid environment parameter when run from another app.
I think the reason madExcept didn't catch it is because BgExcept caught it? Anyway, thanks a lot! -- Best regards, Jack Wednesday, September 28, 2005, 2:36:34 PM, you wrote: >> BgException: EConvertError: Invalid argument to date encode > You pass an invalid argument to some date encode function. This happend in > one of your socket event hanlder since it is trapped by BgException. > I suggest you use MadExcept to find where it occurs exactly. > MadExcept is really an incredibly good product (Free for non commercial > use). See http://www.madshi.net/olddlp3.htm. > -- > Contribute to the SSL Effort. Visit > http://www.overbyte.be/eng/ssl.html > -- > [EMAIL PROTECTED] > http://www.overbyte.be > ----- Original Message ----- > From: "Jack" <[EMAIL PROTECTED]> > To: <twsocket@elists.org> > Sent: Wednesday, September 28, 2005 8:20 PM > Subject: [twsocket] BgException when a tcp client application is started > byanother application >> Hello Francois and all, >> >> I have a TCP client application that runs just fine by itself, >> meaning, starts directly from Windows Explorer, or Start Menu. >> However, when the application is started by another application, >> I always get this errpr: >> >> BgException: EConvertError: Invalid argument to date encode >> >> Then the session is closed with ErrCode 0. >> >> No matter how it's started (ShellExecute, or CreateProcess, etc.) >> it always happens. I also tried starting from a .NET application >> and a Delphi application, same error. Any ideas? >> >> -- >> Best regards, >> Jack >> >> -- >> 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