Re: Winsock -> Out of stack space

From: Ankur (shah_ankur_p_at_hotmail.com)
Date: 01/05/05


Date: Wed, 5 Jan 2005 21:09:10 +0530

Hi! Bob,

Thanks for your reply.

Yes, there is a calling to same routine again and again.

The main reason for this is statement "DoEvents" I had removed that and it
works fine.

Now the only problem remain is freeing up memory being consumed during that
process. I had freed up all controls & string variables. But no success,
each 20 contacts consumes 1MB.

Regarding removing loop from dataarrival event:

I am collecting details regarding particular contact. I had made table which
contains from which table particular information is available.

Single contact details comes from 4 tables. Any suggestion?

Thanks again.

"Bob Butler" <tiredofit@nospam.com> wrote in message
news:O3AiCLz8EHA.2180@TK2MSFTNGP12.phx.gbl...
> "Ankur" <shah_ankur_p@hotmail.com> wrote in message
> news:eKUinlx8EHA.2124@TK2MSFTNGP14.phx.gbl
> > Hi!,
> >
> > I am developing outlook synchronization using Winsock.
> > When number of users increases more then 2 it gives me error of "Out
> > of stack space" on server part.
> > Method of execution:
> > - Client requests data
> > - Server serves data (There is one loop in dataarrival event which
> > is necessary build data to serve)
>
> There's no need for a loop in DataArrival; that event should add incoming
> data to a buffer and if a complete request is found then process it and
> remove it from the buffer. If no complete request is found let the event
> exit. Since you support multiple clients you'll need an array or some
other
> method of handling mutliple buffers.
>
> > Let me know if you require more details.
>
> Yes; lots. That error usually means that you have an event that is
> triggering itself over and over or a procedure that is calling itself over
> and over. You'll need to identify what procedure is active when the event
> occurs and use the call stack and/or F8 to figure out what is causing the
> recursion to happen.
>
> --
> Reply to the group so all can participate
> VB.Net: "Fool me once..."
>



Relevant Pages

  • Re: CSocket stops receiving
    ... and then calling a function of a Pointer to a thread class of mine, ... which does what it will with the buffer. ... thread for receiving and a thread for sending through these sockets. ... The general communication type is thus - client sends a request, ...
    (microsoft.public.vc.mfc)
  • Re: Installing Lebans Calendar
    ... When more than 10 people request a change to the functionality of any ... "Jeff Conrad" wrote in message ... >> Last night I posted a new version of MonthCalendar. ... >> There is a major modification to the calling function logic ...
    (microsoft.public.access.forms)
  • Re: C# System.String Memory Usage [TCP IP Connections]
    ... If you're getting 5x the TCPIP performance by calling GC.Collect, ... suffering very badly from heap fragmentation due to all the pinning that's ... call "GC.Collect" is just before you're forced to grow your buffer pool. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: C# System.String Memory Usage [TCP IP Connections]
    ... If you're getting 5x the TCPIP performance by calling GC.Collect, ... suffering very badly from heap fragmentation due to all the pinning that's ... "GC.Collect" is just before you're forced to grow your buffer pool. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Simple Ajax
    ... request is in progress. ... server connection will be active. ... In what way would calling ajax_updaterepeatedly ... complete, not using any additional global variables, and canceling the ...
    (comp.lang.javascript)