Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
what causes stack overflow error? Posted by punxkista on 8 Dec 2008 at 11:42 PM
what causes stack overflow error?
i'm doing a dictionary system..every time i search a ord this error occors..please help..
Report
Re: what causes stack overflow error? Posted by Actor on 9 Dec 2008 at 12:18 AM
: what causes stack overflow error?
: i'm doing a dictionary system..every time i search a ord this error
: occors..please help..
:
A variety of things, most commonly a recursive call to a function or procedure that does not end.

What is "ord"? Do you mean the ord function? Or perhaps you mean "record"?

Could you post your code?

Report
Re: what causes stack overflow error? Posted by Phat Nat on 9 Dec 2008 at 7:40 PM
: what causes stack overflow error?
: i'm doing a dictionary system..every time i search a ord this error
: occors..please help..
:

I think it was supposed to be "search a word".
Also, the overflow is caused by trying to use too many variables within procedures. The program can not longer allocate memory for the procedures variables when the procedure is called. As Actor said, it is very common with recursive functions, especially if the recursive functions have variable declarations.
It could also be only 2 or 3 variables, if they are each 40 Kbytes as TP7 only allows 64K total.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.