Re: Winsock -> Out of stack space
From: Ankur (shah_ankur_p_at_hotmail.com)
Date: 01/05/05
- Next message: Marty: "Date comparison"
- Previous message: Ken Halter: "Re: Populate Treeview control in VB6 from Database query"
- In reply to: Bob Butler: "Re: Winsock -> Out of stack space"
- Messages sorted by: [ date ] [ thread ]
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..."
>
- Next message: Marty: "Date comparison"
- Previous message: Ken Halter: "Re: Populate Treeview control in VB6 from Database query"
- In reply to: Bob Butler: "Re: Winsock -> Out of stack space"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|