Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2006, 10:17 AM
murphys murphys is offline
Senior Member
 
Join Date: Aug 2001
Posts: 2,948
Default stack overflow on line 0

00628a68 +08 app.exe UnitName 1664 +0 ThreadSend.Execute
error:
exception class : EStackOverflow
exception message : Stack overflow

the above line is a thread
the execute command is executed only when ThreadSend.create
is being called.
ThreadSend.Create is called only in 1 place in my code
there is only 1 specific computer in which the above error occurs.

what i know, StackOverflow can occur when a function calls itself much too many times, but this is not the case
plz advice

10x
Amos
Reply With Quote
  #2  
Old 11-24-2006, 01:13 AM
digitiger digitiger is offline
Senior Member
 
Join Date: Jan 2001
Posts: 716
Default RE: stack overflow on line 0

What is the OS and process of the system on which you are encountering this error?
Reply With Quote
  #3  
Old 11-24-2006, 02:47 AM
murphys murphys is offline
Senior Member
 
Join Date: Aug 2001
Posts: 2,948
Default RE: stack overflow on line 0

its windows xp

what do u mean process of the system?

10x
Amos
Reply With Quote
  #4  
Old 11-25-2006, 02:16 AM
Eddy-B Eddy-B is offline
Senior Member
 
Join Date: Feb 2002
Posts: 1,467
Default RE: stack overflow on line 0

A recursive action is usually the cause of a stack overflow.
But this not only happens with functions, it can also with classes: if you create an instance of a class within its own constructor, you end up calling the constructor indefinatly (same applies to the destructor method).
If your thread creates a new instance of the same thread again, you also might end up with a stack overflow.

Another way to create a stack overflow, is to have a PUSH instruction within an infinate loop (the compiler pushes local variables onto stack). So check your loops (for, while) as well.

Eddy-B

Please click Accept as answer if this helped
Reply With Quote
  #5  
Old 11-27-2006, 07:03 AM
szsz szsz is offline
Member
 
Join Date: Mar 2006
Posts: 38
Default RE: stack overflow on line 0

Hi
A simmilar thing happend to me.
I had areally big array deaclared as a variable.
This caused a stack overflow before the prcedure even started executing the first line. I fixed the problem by useing a pointer to that array. You might have the same problem thogh i dought it.

szsz
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.