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


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" 
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 Francois PIETTE
> 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.
You can probably rewrite part of the code in an async way.

--
[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-23 Thread Arnaldo Braun
Hi

Perhaps a small bug???

In  the .pas code the variable "DoneFlag" is not initialized before 
calling "WaitUntilReady(DoneFlag);" and then it is tested inside the 
while loop.

The result of the test "if DoneFlag then" is depending on trash from 
memory allocated in the stack

[]s
Arnaldo


Fastream Technologies wrote:

>For some reason the 2kb attachment did not go through. Here is the link:
>
>http://www.fastream.com/ics/WebConnection.pas
>
>Best Regards,
>
>SZ
>
>- Original Message - 
>From: "Fastream Technologies" <[EMAIL PROTECTED]>
>To: "ICS support mailing" 
>Sent: Friday, September 23, 2005 11:52 AM
>Subject: [twsocket] Converting Send() and Receive() to Sync
>
>
>  
>
>>Hello,
>>
>>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.
>>
>>Best Regards,
>>
>>SubZ
>>
>>
>>
-- 
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-23 Thread Fastream Technologies
For some reason the 2kb attachment did not go through. Here is the link:

http://www.fastream.com/ics/WebConnection.pas

Best Regards,

SZ

- Original Message - 
From: "Fastream Technologies" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Friday, September 23, 2005 11:52 AM
Subject: [twsocket] Converting Send() and Receive() to Sync


> Hello,
>
> 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.
>
> Best Regards,
>
> SubZ
>





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