[twsocket] RE: Problem that i don't understand

2005-05-01 Thread nik . langenakers
Ow didn't knew that with the F7 key, you can debug further, so I did that and ended up in the code of TBuffer.SetBufferSize at line 117 'GetMem(Buf, FBufSize);' where Buf := nil and FBufSize := 1460 after that line, he gives me that error :s -- To unsubscribe or change your settings for TWSoc

Re: [twsocket] ReadLine

2005-05-01 Thread Markus Humm
> > You _always_ need a message pump. If the calling program doesn't provide > one, you must provide one and to have one without interfering with the > calling DLL it is better to have all you stuff in a thread. Consider a > thread as a program within a program. > > If you don't want to have a th

Re: [twsocket] ReadLine

2005-05-01 Thread Francois PIETTE
> Do I really need a message pump in this case? You always need a message pump for ICS component (except TPing component) to work. Without message pump, no winsock event ! > I think not, since the > program never spends long times in the dll, because the data is given > back to the caller very fa

Re: [twsocket] ReadLine

2005-05-01 Thread Markus Humm
[snip] >> >>The thing is that the code is in a dll, so application.processmessages >>might not work here. Or does it? The timeout will be rather short anyhow >>(ca. 50 ms) and I think i do it with GetTickCount, which should be >>sufficient here and more easy to use than a at this place timer. >>Or

Re: [twsocket] ReadLine

2005-05-01 Thread Francois PIETTE
> The thing is that the code is in a dll, so application.processmessages > might not work here. Or does it? It depend on the caller of the DLL ! You may as well be called from a thread. Calling the message pump from a DLL is risky when you don't know anything about the calling process. If you have

Re[2]: [twsocket] new httpcli exception

2005-05-01 Thread Jack
Hello Francois, In one case, I'm using a proxy. In another case, I'm not. The moment I added "http://"; before the URL, it worked again. -- Best regards, Jack Sunday, May 1, 2005, 6:10:36 AM, you wrote: FP> Are you using a proxy or not ? FP> Are you using authentication ? FP> -- FP> [EMAIL PRO

Re: [twsocket] ReadLine

2005-05-01 Thread Markus Humm
Francois PIETTE schrieb: > As expressed in the source code, ReadLine is deprecated. Anyway, it doesn't > fit correctly with UDP protocol which is datagram oriented. Using "lines" > with such protocol is strange. > > >>Now I have the problem that at one place in the program I need >>synchronus com

Re: [twsocket] ReadLine

2005-05-01 Thread Francois PIETTE
As expressed in the source code, ReadLine is deprecated. Anyway, it doesn't fit correctly with UDP protocol which is datagram oriented. Using "lines" with such protocol is strange. > Now I have the problem that at one place in the program I need > synchronus communication. I send out one byte and

Re: [twsocket] new httpcli exception

2005-05-01 Thread Francois PIETTE
Are you using a proxy or not ? Are you using authentication ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Jack" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, May 01, 2005 9:26 AM Subject: Fwd: [twsocket] new httpcli exception > > It seems that

[twsocket] ReadLine

2005-05-01 Thread Markus Humm
Hello, I'm using TWSocket for UDP communications, so far it works quite good. Now I have the problem that at one place in the program I need synchronus communication. I send out one byte and if I receive the same byte within some short timeout, I assume that the device I'm talking to has a echo mo

Fwd: [twsocket] new httpcli exception

2005-05-01 Thread Jack
It seems that now THttpCli.URL now requires prefix of http:// or https://. I used to use url without those and it seems to have worked with previous versions of httpcli. ===8<==Original message text=== Hi Francois and all, I recompiled an old project of mine with the late

[twsocket] new httpcli exception

2005-05-01 Thread Jack
Hi Francois and all, I recompiled an old project of mine with the latest ICS on D5. I'm getting this error during run time, that I have never got before: "Project Test.exe raised exception class EHttpException with message 'Protocol not implemented'. Process stopped. use Step or Run to