Re: [twsocket] Server problem (leaking memory)

2006-03-22 Thread Fastream Technologies
So no answer means there is no way to do this? Could this even be impossible?? Regards, SZ - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 2:07 PM Subject: Re: [twsocket] Serv

Re: [twsocket] Server problem (leaking memory)

2006-03-22 Thread Fastream Technologies
: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 10:40 AM Subject: Re: [twsocket] Server problem (leaking memory) > Ok here is the core of the problem: The waitforsinglemessage solution > worked > for the single

Re: [twsocket] Server problem (leaking memory)

2006-03-22 Thread Fastream Technologies
From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, March 20, 2006 10:34 PM Subject: Re: [twsocket] Server problem (leaking memory) > Arno Garrels wrote: >> Fastream Technologies wrote: >>> Ok figured out your logic. It gives

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Piotr Dałek
Hello! >>> Since this time I don't really >>> on Delphi and free dynamic record members manually. >> >> And you don't get AVs and/or Invalid Pointer Operation exceptions? > No problemo. > Finalize(P^); or AString := ''; > Dispose(P); Hint: Dispose acts as Finalize+FreeMem. No need to finalize

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Arno Garrels
Piotr Da³ek wrote: > Hello! > >> I saw some leaks in older Delphi versions when I didn't finalize (may be >> due a mistake I made when I was a beginner?). > > Seems so. Here (D3Prof) everything works properly, no leaks. > >> Since this time I don't really >> on Delphi and free dynamic record mem

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Piotr Dałek
Hello! > I saw some leaks in older Delphi versions when I didn't finalize (may be > due a mistake I made when I was a beginner?). Seems so. Here (D3Prof) everything works properly, no leaks. > Since this time I don't really > on Delphi and free dynamic record members manually. And you don't get

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Arno Garrels
Francois Piette wrote: >> Fastream Technologies wrote: >>> Interesting. Well I am using classes with string properties and I >>> thought the destructor of the AnsiString class cleans up the memory >>> before releasing it. >> >> Correct, in classes you don't need to release memory allocated for >>

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Francois Piette
> Fastream Technologies wrote: > > Interesting. Well I am using classes with string properties and I thought > > the destructor of the AnsiString class cleans up the memory before > > releasing it. > > Correct, in classes you don't need to release memory allocated for strings. > But you need to fin

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Wilfried Mestdagh
ays returns 0 for all fields! Why could this be? > Regards, > SZ > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Monday, March 20, 2006 4:39 PM > Subject: Re: [twsocket] Server proble

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Arno Garrels
; > Sent: Tuesday, March 21, 2006 11:23 AM > Subject: Re: [twsocket] Server problem (leaking memory) > > >> Hello, >> >> I don't know if it as something to do but if you use records >> containing strings, always think to mystring:='&#x

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Fastream Technologies
uot; Sent: Tuesday, March 21, 2006 11:23 AM Subject: Re: [twsocket] Server problem (leaking memory) > Hello, > > I don't know if it as something to do but if you use records > containing strings, always think to mystring:='' before releasing > record

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Dod
Hello, I don't know if it as something to do but if you use records containing strings, always think to mystring:='' before releasing record memory space because if you free the record, the string allocation done inside will be kept. regards. -- To unsubscribe or change y

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Fastream Technologies
GetHeapStatus always returns 0 for all fields! Why could this be? Regards, SZ - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, March 20, 2006 4:39 PM Subject: Re: [twsocket] Server problem (leaking m

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, March 20, 2006 10:34 PM Subject: Re: [twsocket] Server problem (leaking memory) > Forgot to mention that I would derive a MT TWsocketServer first that &g

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Arno Garrels
TWSocketServer. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html >> >> SZ >> >> - Original Message - >> From: "Fastream Technologies" <[EMAIL PROTECTED]> >> To: "ICS support mailing" >> Sent:

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Arno Garrels
y, March 20, 2006 6:01 PM > Subject: Re: [twsocket] Server problem (leaking memory) > > >> Hi, >> >> - Original Message - >> From: "Arno Garrels" <[EMAIL PROTECTED]> >> To: "ICS support mailing" >> Sent: Monday, Marc

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Fastream Technologies
h 20, 2006 6:01 PM Subject: Re: [twsocket] Server problem (leaking memory) > Hi, > > - Original Message - > From: "Arno Garrels" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Monday, March 20, 2006 4:25 PM > Subject: Re: [tws

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Fastream Technologies
Hi, - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, March 20, 2006 4:25 PM Subject: Re: [twsocket] Server problem (leaking memory) > Fastream Technologies wrote: >>> You say that you post a

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Wilfried Mestdagh
Hello, That is a lot leaking ;( Use GetHeapStatus and AllocMemSize to check at regular places in your code to find out where it starts to eat... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, March 20, 2006, 14:34, Fastream Technolog

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Arno Garrels
Fastream Technologies wrote: >> You say that you post a message to the worker thread to let it >> ThreadAttach. >> What do you do until the worker thread has attached?? You cannot just >> post a message, you have to wait until the workerthread has allocated the >> window. > > What do you suggest?

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, March 20, 2006 3:54 PM Subject: Re: [twsocket] Server problem (leaking memory) > You say that you post a message to the worker thread to let it > Thre

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, March 20, 2006 3:54 PM Subject: Re: [twsocket] Server problem (leaking memory) > But there are various multi-threaded, TWSocketServer derived classes plus

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Arno Garrels
Fastream Technologies wrote: > Hello, > > Our multi-threaded web server leaks 16-32KB per socket now. I hacked a lot > to make async ICS a MT web server but there has been many issues as ICS > has no MT web server example. But there are various multi-threaded, TWSocketServer derived classes plus

[twsocket] Server problem (leaking memory)

2006-03-20 Thread Fastream Technologies
Hello, Our multi-threaded web server leaks 16-32KB per socket now. I hacked a lot to make async ICS a MT web server but there has been many issues as ICS has no MT web server example. Note that this leak cannot be catched by CodeGuard. I hope we can figure this out together. Up to triggerSessi