Catch Stack Overflow

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Catch Stack Overflow

Post by remi_meier »

It's not helpful to just see a
The debugged executable quit unexpectedly.
for a stack overflow generated by the following code:

Code: Select all

Procedure rek()
  Protected a, b, c, d,e,f,g,h,i,j,k,l,m
  rek()
EndProcedure

rek()
It seems that one can do better than this if I interpret this site correctly:
http://stackoverflow.com/questions/8120 ... k-overflow
Athlon64 3700+, 1024MB Ram, Radeon X1600