Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 May : How can i read stack size on a client ?
| Subject: | How can i read stack size on a client ? |
| Posted by: | "Ahmadi" (ahmadisolness..@yahoo.com) |
| Date: | Fri, 25 May 2007 16:29:03 +0330 |
Hi
consider my pseudocode :
mythread{
...
TCPClient.readbuffer(buf,bufsize);
instruction1;
...
}
TCPClient.readbuffer(buf,bufsize) command try to read amount of bufsize and
then next instruction will run.
i need to check stack size of a client, and then i read from stack, this
mean :
mythread{
...
if TCPClient.stacksize>=bufsize then
TCPClient.readbuffer(buf,bufsize);
instruction1;
...
}
but how can i do that? i dont know how can i retrieve current stack size?