Re: [twsocket] [FTP] ESocketException

2008-10-10 Thread Guillaume ROQUES
> It's possible that Winsock installation is corrupted? That's why I don't understand the error. > I don't know how to understand this error, as my connections with the > component work in my tool (1) thanks by the way, Guillaume ROQUES CANYON Technologies -- To unsubscribe or change

[twsocket] GWndHandlerPool is freed before sockets are destroyed

2008-10-10 Thread Olivier Sannier
Hi, I just ported an application to ICSv6 and I'm encountering a problem when closing it down. It gives me an access violation in ntdll.dll, write of address 0010 Digging around, I discovered that it comes from the call to GWndHandlerPool.Lock inside TIcsWndControl.DeallocateHWnd At the tim

Re: [twsocket] GWndHandlerPool is freed before sockets are destroyed

2008-10-10 Thread Olivier Sannier
Olivier Sannier wrote: > In my own section, I'm freeing, indirectly, a class that contains a > TWSocketServer which not active. > I know this comes from the indirect nature of my usage of the class, but > still, the order of finalization clauses should not be relied upon, as > it was always indi

[twsocket] [FTP] ESocketException

2008-10-10 Thread Guillaume ROQUES
> Hi, > I use the FTP Client Component in 2 of my applications : > 1-Just a tool to manage the FTP connections > 2-A window service which check, by FTP, if some defined files exists. > In my Tool (1), I could test my connections and it work well (similar to the > FtpCLi example ;p) > In my servic

Re: [twsocket] HTML encoding in HttpSrv func. TextToHtmlText()

2008-10-10 Thread Arno Garrels
Francois PIETTE wrote: >> But 3 bytes looks like UTF-8 ? > > I don't know. You said it was UTF-16 if not encoded. I installed IIS 7 on my Vista box and I found that IIS 7 uses UTF-7 in directory listings. The HTTP header contains the "charset=UTF-8" content-type extension. However I think the

Re: [twsocket] GWndHandlerPool is freed before sockets are destroyed

2008-10-10 Thread Olivier Sannier
Hello, Francois Piette wrote: > you add OverbyteIcsWndControl in front (well after other higher priority > units such as FastMM4) of the dpr uses clause, the issue should go away. > Please check and tell me what. > Yes, it works. But I don't really like having "useless" uses in the dpr, and th

Re: [twsocket] GWndHandlerPool is freed before sockets are destroyed

2008-10-10 Thread Francois Piette
Hello Olivier, Thank you for your analysis. Initialization/finalization order has always been an issue, no matter which component you use. Developer has control on it ! Finalization sections are executed in the reverse order of their initialization section which in turn are executed in the order o

Re: [twsocket] HTML encoding in HttpSrv func. TextToHtmlText()

2008-10-10 Thread Arno Garrels
Arno Garrels wrote: > Francois PIETTE wrote: >>> But 3 bytes looks like UTF-8 ? >> >> I don't know. You said it was UTF-16 if not encoded. > > I installed IIS 7 on my Vista box and I found that IIS 7 > uses UTF-7 in directory listings. Arrgh, typo above, IIS v7 uses UTF-8 of course! > The

Re: [twsocket] GWndHandlerPool is freed before sockets are destroyed

2008-10-10 Thread Francois PIETTE
>> About your changes: It's sure that using FreeAndNil is a good idea. >> Checking >> Assigned(GWndHandlerPool) is also good but be aware that this would hide >> the >> exception and still may produce unexpected results since the lock is no >> more >> used. If you some reason a thread is still w