Paulo de Oliveira Eneas wrote:

>Dear list members,
>
>I working in a project that uses a very big struct whose size is approx 4.0
>MB.
>If I declare a struct variable within the main (actually, winmain) function
>I get a stack overflow and the programm crashes. If I declare  the
>structure variable in the global scope, everything goes OK.
>

>
Globals should be avoided whenever possible. Did you try to allocate the
space dynamically? Like:

DATA* data;
data = "" DATA;

Or such?
HTH

--
Tamas Marki    Home: http://tyuf.da.ru   Contact: tmarki at gmail.com
Click & earn: http://www.prestige-emails.com/pages/index.php?refid=toma



To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=:HM/A=2434971/rand=993910539


Yahoo! Groups Links

Reply via email to