|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Graphical Mode Problem , ....
well,,,
I'm working on a pascal application that uses some recursive procedures to work ,... but when I try to run the application ,.. in some cases, the << stack overflow error >> occures ,.. I know that this error occures when there is an endless loop of recursion between the procedures ,.. but I'm sure that my program do not have any endless loop ,.. because as I said, .. In some cases the program work well and also the trace of the algorithm shows that the algorithm do not have endless loop ,... I tried to have a bigger stack with changing the stack size in the memory size part of compiler ( turbo pascal 7.0 ) .. but the previous problem occured,... I also tried to define some variables using pointers and heap memory or defining some variables in those procedures as global variable,.. but the result didn't change !!!! what should I do to get rid of this error in my App. that sometimes occures ? I appreciate your help ,... sincerely yours ,... Mr Shadow |
|
#2
|
||||
|
||||
|
Quote:
Could you show us some code? |
|
#3
|
||||
|
||||
|
thanks dear yegg ,..
thanks a lot ,... yeah ,.. your'r right ,.. I made a mistake , .. I solve It ,... but, another problem occured ,... I compiled a program using turbo pascal 7 in one computer , using graphics ( initgraph(driver,mode,'c:\tp\bgi'); )and It worked well,.. but when I tried to compile the source file thet I've made before or execute that exe file in another computer ,.. It seems that the graphical mode is not compatible with the previous one ,.. I guess it is not in the mode 640*480 ,.. !!! Please tell me if there is a way to execute that app. on that mode inorder to work well ? ( the computer I'm working on it now, is not old and useless and It can support more that 1024*768 screen resolution on wondows mode ,.. but I don't know why the application that I told above don not work in 640*480 !!!! ) thanks for your help |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Stack Overflow Error !!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|