> Hello list:
asking programming errors on a mailing list that is focused on
operating system development is considered BAD.
> I am having Stack Overflow problems with this simple code under FreeDOS and
> OpenWatcom:
> #include <stdio.h>
> char a[8192];
> int main()
> {
> int i;
> char b[8192];
> for(i=0; i<8192; i++) a[i]=b[i]=0;
> return 0;
> }
> I keep getting stack overflow problems.
> I know this code is very simple and meaningless, but it's an example of how
> I am having stack overflow problems with static arrays of size 8192.
b is a dynamic array on the stack.
> Excuse me if the mail is too off-topic, but I think the problem is
> something to do with memory.
I won't excuse.
> If you use "stack=4096", it means the default stack size might be much
> smaller than the 16384 I am using.
most likely you are not using 16384.
Tom
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Freedos-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-user