[twsocket] ICS documentation: a wiki has been setup

2006-03-01 Thread Francois Piette
I've setup a wiki for ICS documentation. A few guys have helped to set it up: Arno, DZ, Guillaume, Wilfried, and some others. The system is working. We defined a layout and entered the component list, some component, the start of a FAQ and so on. Now we need writers to enter the actual data

Re: [twsocket] About TWIrCommSocket

2006-03-01 Thread Francois Piette
how transmit one file(e.g. d:\1.gif) to my mobile phone throught TWIrCommSocket? I'm sorry, but TWIrCommSocket is not an ICS component. Therefore this mailing list is not the right place to ask for your question. I suggest you post to the general purpose Delphi mailing list (same server:

Re: [twsocket] Problem with v6 BCB package

2006-03-01 Thread Francois Piette
What is your suggestion then? Continue to search how to turn on/off the definitions which are problematic with BCB6. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent:

Re: [twsocket] Problem with v6 BCB package

2006-03-01 Thread Fastream Technologies
It is not just about my project! I create an empty project, drop a v6 httpserver component and it gives the same result! If you look at the vcl.components.using group of borland, you will see that the responses (including Remy from TeamB), there is no such way to uninclude/exclude a header in

[twsocket] Triggering events when csDestroying is in ComponentState?

2006-03-01 Thread Arno Garrels
Hi, There are some events in WSocket.pas that may be triggered even though csDestroying is in the ComponentState. Shouldn't we check csDestroying before any event is fired? In a multithreading TWSocketServer app. it would help to avoid AV's. Arno -- To unsubscribe or change your settings

[twsocket] New property Pause in TWsocketServer

2006-03-01 Thread Arno Garrels
Hi, I would like to suggest a simple new boolean property Pause. If TRUE we would simply Exit from procedure TCustomWSocketServer.TriggerSessionAvailable. Also Pause should be set to TRUE in the destructor to avoid multithreading-troubles. What do you thing? Arno -- To unsubscribe or change

Re: [twsocket] New property Pause in TWsocketServer

2006-03-01 Thread Arno Garrels
Well, the name must be different. May be ListenPaused ?? Arno Garrels wrote: Hi, I would like to suggest a simple new boolean property Pause. If TRUE we would simply Exit from procedure TCustomWSocketServer.TriggerSessionAvailable. Also Pause should be set to TRUE in the destructor to

Re: [twsocket] Triggering events when csDestroying is inComponentState?

2006-03-01 Thread Arno Garrels
Francois Piette wrote: There are some events in WSocket.pas that may be triggered even though csDestroying is in the ComponentState. Shouldn't we check csDestroying before any event is fired? In a multithreading TWSocketServer app. it would help to avoid AV's. It seems reasonable. But I

Re: [twsocket] Triggering events when csDestroying isinComponentState?

2006-03-01 Thread Francois Piette
When I destroy the SimpleThrdSslServer with alot of threads and clients I can avoid AV's by this code: function TCustomWSocket.TriggerDataAvailable(Error : Word) : Boolean; begin Result := Assigned(FOnDataAvailable) and not (csDestroying in ComponentState); if not Result then

Re: [twsocket] Triggering events when csDestroyingisinComponentState?

2006-03-01 Thread Arno Garrels
Francois Piette wrote: When I destroy the SimpleThrdSslServer with alot of threads and clients I can avoid AV's by this code: function TCustomWSocket.TriggerDataAvailable(Error : Word) : Boolean; begin Result := Assigned(FOnDataAvailable) and not (csDestroying in ComponentState);

Re: [twsocket] Triggering events when csDestroyingisinComponentState?

2006-03-01 Thread Wilfried Mestdagh
Hello Arno, Because I think that DataAvailable should not be triggered when the component is destroyed anyway, but I may be wrong. As I recall it was by design that OnDataAvailable will trigger if there is partial data in buffer. This can happen with LineMode set. --- Rgds, Wilfried

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Francois PIETTE
Do you know what is causing the AV ? I mean the AV occur from OndataAvailable but when accessing what ? From the destructor, the component is still allocated. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing

Re: [twsocket] HttpCli-GetASync() exception

2006-03-01 Thread Kris Schoofs
Hi Francois, You should be able to catch it by assigning an event handler to THttpCli.CtrlSocket.OnBgException I followed your suggestion and created this : = HttpCli-CtrlSocket-OnBgException=HttpException; HttpCli-GetASync(); = void __fastcall HttpComponent::HttpException (TObject

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Arno Garrels
Francois PIETTE wrote: Do you know what is causing the AV ? I mean the AV occur from OndataAvailable but when accessing what ? Hard to say. Here's an image: http://www.duodata.de/misc/thrdAV.png The first line where the IDE shows the green arrow in procedure

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Arno Garrels
Wilfried Mestdagh wrote: Hello Arno, Because I think that DataAvailable should not be triggered when the component is destroyed anyway, but I may be wrong. As I recall it was by design that OnDataAvailable will trigger if there is partial data in buffer. This can happen with LineMode set.

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Francois PIETTE
Is the AV occuring when the application is destroying ? If yes, then maybe Display is the culprit, trying to display something on a TMemo which is already destroyed. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Wilfried Mestdagh
Hello Arno, You are right. If you destroy a component you dont wants data from it anuymore. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, March 1, 2006, 19:46, Arno Garrels wrote: Wilfried Mestdagh wrote: Hello Arno,

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Wilfried Mestdagh
Hello Francois, Yes for example I have a few applications where I use OnChangeState to display this information. This need the if not Application.Terminated check before displaying.. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday,

[twsocket] POP3Cli not ready...?

2006-03-01 Thread Nick
Hi there, I am using Pop3Cli however, if I try and connect and say, my username or my host is wrong, if I correct that and try again I get the error 'POP3 component not ready' if i close the software and open it again I can try and connect again with out the above message I tried doing try

Re: [twsocket] POP3Cli not ready...?

2006-03-01 Thread Arno Garrels
Nick wrote: Hi there, I am using Pop3Cli however, if I try and connect and say, my username or my host is wrong, if I correct that and try again I get the error 'POP3 component not ready' I'm not sure wether you unstood the async behaviour of ICS, if you are not sure have a look at:

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Francois Piette
Is the AV occuring when the application is destroying ? If yes, then maybe Display is the culprit, trying to display something on a TMemo which is already destroyed. Yes, I'll give it a trial tomorrow. But generally, shouldn't we disable triggers when the component is in status destroying?