Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2006, 02:50 AM
mr_shadow's Avatar
mr_shadow mr_shadow is offline
java & php
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 161 mr_shadow User rank is Lance Corporal (50 - 100 Reputation Level)mr_shadow User rank is Lance Corporal (50 - 100 Reputation Level)mr_shadow User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 10 h 33 m 30 sec
Reputation Power: 4
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

Reply With Quote
  #2  
Old February 3rd, 2006, 07:47 PM
Yegg`'s Avatar
Yegg` Yegg` is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2004
Location: Meriden, Connecticut
Posts: 1,731 Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level)Yegg` User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 4 h 5 m 27 sec
Reputation Power: 83
Send a message via AIM to Yegg`
Quote:
Originally Posted by mr_shadow
but I'm sure that my program do not have any endless loop
Mr Shadow


Could you show us some code?

Reply With Quote
  #3  
Old February 6th, 2006, 11:55 AM
mr_shadow's Avatar
mr_shadow mr_shadow is offline
java & php
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 161 mr_shadow User rank is Lance Corporal (50 - 100 Reputation Level)mr_shadow User rank is Lance Corporal (50 - 100 Reputation Level)mr_shadow User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 10 h 33 m 30 sec
Reputation Power: 4
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Stack Overflow Error !!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT