|
Register or have you forgotten your password?
|
|
|
| Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Feb 2002
Posts: 2,786
|
Hi. Most normall programs would probably display a message saying out of memory, sorry dude can't continue, but...
In what I'm trying to do I want the program to be able to have some memory reserves, wich actually is already done. However there still is is a remote possibility of an out of memory not due to a failed allocation with AllocMem/AllocVec but due to excessive recursion. Most likely, this would be an extreme and rare situation and I even have some code there to avoid it somehow (the user can define a maximum amount of recursion for some routines) this is still not perfect so I want to know: Is it possible for my code to interact with automatic stack enlargement patches available for 3.x or the OS code itself on AOS4/MOS so that it knows when the limit is reached ? Or it's just prone to crash in that situation ?
__________________
\"We made Amiga, they {bleep}ed it up\" |
||||||||
|
|
|
|
|
#2 | ||||||||
|
Premium Member
|
Of the languages I know that allocate their own stacks (namely AmosPro and AmigaE) each limits the recursion of all procedure calls and probably regulate them with an unnamed global variable to keep track of how many calls are nested.
Stack enlargement utilities are still a kludge not supported directly by any version of the AmigaOS and I think you stumbled onto one reason why. |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Feb 2002
Posts: 2,786
|
I'll just stick with the code I have then.. It's already out of "normall" apps to have limitation on recursion I guess so it's not that bad.
How do Windows and Mac platforms handler this BTW ?
__________________
\"We made Amiga, they {bleep}ed it up\" |
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| interaction , stack , situations , memory , enlargement , dealing , critical , auto , app |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 1st ever dealing with AmigaKit... | save2600 | Amiga Marketplace | 11 | 02-28-2009 02:20 AM |
| Not bad for a semi-auto | X-ray | CH / General | 18 | 04-12-2007 10:54 AM |
| Dealing with one's own mortality. | NoFastMem | CH / Philosophy and Religion | 63 | 10-18-2005 10:38 AM |
| Functions with variable nr. of parameters Dealing with +1 argument.... | Jose | Amiga OS -- Development | 3 | 09-06-2005 09:40 AM |
| Oh ! No ! Yet Another Microbloat Critical Update ! | tony23 | Amiga Software Issues and Discussion | 34 | 09-13-2003 10:34 AM |