Re: [twsocket] Converting Send() and Receive() to Sync

2005-09-25 Thread Fastream Technologies
- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Sunday, September 25, 2005 3:03 PM
Subject: Re: [twsocket] Converting Send() and Receive() to Sync


 http://www.fastream.com/ics/WebConnection.pas
 I have been trying to convert a professional ISAPI 6.0 component to ICS.
 Scripts are now running but as for the internal logic of it, it needs 
 sync
 read and write procedures. I have coded the attached unit for it but it
 gives access violations in InternalDataReady. I believe the problem is in
 the WaitUntilReady function but not sure.

 Much better to avoid sync functions.

For the ISAPI filter code to work, the thread needs to block. The easiest to 
change part of the code is ICS because I know it the best.

 You can probably rewrite part of the code in an async way.

I do not understand what you mean. Could you take a look at the simple code 
I wrote?

Thanks,

SZ 

-- 
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] Converting Send() and Receive() to Sync

2005-09-25 Thread Fastream Technologies
Ok, I see your point. But still my code seems to be a simpler design. Did 
you look at it? It is just ~50  lines!

Best Regards,

SubZ

- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Sunday, September 25, 2005 5:02 PM
Subject: Re: [twsocket] Converting Send() and Receive() to Sync


 You may run the ISAPI into the main thread, and having ICS code run into a
 worker thread with a message pump so that it can work asynchronously as
 usual. The ISAPI thread can then be blocked while ICS is doing his work 
 and
 signal the main thread when done.
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be


 - Original Message - 
 From: Fastream Technologies [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Sunday, September 25, 2005 3:21 PM
 Subject: Re: [twsocket] Converting Send() and Receive() to Sync


 - Original Message - 
 From: Francois PIETTE [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Sunday, September 25, 2005 3:03 PM
 Subject: Re: [twsocket] Converting Send() and Receive() to Sync


 http://www.fastream.com/ics/WebConnection.pas
 I have been trying to convert a professional ISAPI 6.0 component to 
 ICS.
 Scripts are now running but as for the internal logic of it, it needs
 sync
 read and write procedures. I have coded the attached unit for it but it
 gives access violations in InternalDataReady. I believe the problem is
 in
 the WaitUntilReady function but not sure.

 Much better to avoid sync functions.

 For the ISAPI filter code to work, the thread needs to block. The easiest
 to
 change part of the code is ICS because I know it the best.

 You can probably rewrite part of the code in an async way.

 I do not understand what you mean. Could you take a look at the simple
 code
 I wrote?

 Thanks,

 SZ

 -- 
 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 

-- 
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] Converting Send() and Receive() to Sync

2005-09-25 Thread Francois PIETTE
 Ok, I see your point. But still my code seems to be a simpler design. 

But as you said yourself, it failed.

 Did you look at it? 

Yes, I did.

--
[EMAIL PROTECTED]
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] Converting Send() and Receive() to Sync

2005-09-25 Thread Fastream Technologies
I thought you could suggest an implementation fix as the design and code is 
simple and according to the KISS principle (Keep It Small and Simple) it 
SHOULD work.. ;)

Best Regards,

SZ

- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Sunday, September 25, 2005 5:34 PM
Subject: Re: [twsocket] Converting Send() and Receive() to Sync


 Ok, I see your point. But still my code seems to be a simpler design.

 But as you said yourself, it failed.

 Did you look at it?

 Yes, I did.

 --
 [EMAIL PROTECTED]
 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 

-- 
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] Converting Send() and Receive() to Sync

2005-09-25 Thread Dan
If you have an access violation you must be trying to access some invalid 
memory.  Debug it to find out where it occurs and figure out why.

Dan

- Original Message - 
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Sunday, September 25, 2005 3:39 PM
Subject: Re: [twsocket] Converting Send() and Receive() to Sync


I thought you could suggest an implementation fix as the design and code is
 simple and according to the KISS principle (Keep It Small and Simple) it
 SHOULD work.. ;)

 Best Regards,

 SZ

 - Original Message - 
 From: Francois PIETTE [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Sunday, September 25, 2005 5:34 PM
 Subject: Re: [twsocket] Converting Send() and Receive() to Sync


 Ok, I see your point. But still my code seems to be a simpler design.

 But as you said yourself, it failed.

 Did you look at it?

 Yes, I did.

 --
 [EMAIL PROTECTED]
 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

 -- 
 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] Open to Suggestions

2005-09-25 Thread Piotr Dałek
Hello!

 I have a COBOL DLL written that works and communicates well with the
 COBOL data.  I would like to use the HTTPSERVER and call this DLL
 repeated times for various connections.  Because of the SLOWNESS of
 this DLL and the overhead of having to initialize it each time, I really
 hate doing it in the BASE code of the HTTPSERVER. 

Hey, one moment - you load the dll, init it, call some code stored in it,
deinit, and unload on each connection?

-- 
Piotr Hellrayzer Dalek
[EMAIL PROTECTED]

--
Sa niesamowite, zobaczysz... ;-)  link http://link.interia.pl/f18b9

-- 
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