Mail Archives: djgpp/1997/10/30/04:56:10
On Thu, 30 Oct 1997, myshin wrote:
> But ,
> In main(){
> unsigned long TBM0[ 64][ 4], TBM1[ 64][ 4];
> unsigned long (*cTBM)[ 4], (*nTBM)[ 4];
> this source is no good.
>
> These is only different array size !
> If I try to compile second source, my computer is down !
I'm guessing that you define too much automatic variables (those which
are local to your functions), and they overflow the default 256KB
stack that DJGPP programs get. Please download the DJGPP FAQ list
(v2/faq210b.zip from the same place you get DJGPP) and read section
6.4 there, for possible solutions to this.
However, the above is based on a guess, and may be wrong. It's
usually a bad idea to post parts of your code in such cases. Since
you have no clue about what causes the crashes, chances are you will
omit the important parts and leave the unimportant ones. For best
results, please post the smallest program that, when compiled, will
exhibit the problem.
- Raw text -