| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Memory above 64K |
NK> I have read all the strange help or so called help on how to NK> allocate more memory from the stack. However I cannot NK> understand how to then use that allocated memory. The demo when NK> run will alocate as much memory as you spesifu under 64K and NK> repeated runs will continue to until no more is left, but how NK> do I use it? Any insite would be good, Nick. You have the logic around backwards, Nick. Stack is there to be used as needed by your program, and sometimes you use it all, accidentally. Having more than you need does not make the program run any better but having less than you need stops it! You run out of stack space. Your demo is doing that intentionally, but you can do it accidentally too. If you call part of a program within itself recursively again and again, and use a new variable each time (a large array, say) then you need stack space for that variable each time, and you soon run over the 64K. If this happens, you need to know how to get around it... by using the heap instead, or re-using the same variable, or whatever. Regards, Bob ___ Blue Wave/QWK v2.12 @EOT: ---* Origin: Precision Nonsense, Sydney (3:711/934.12) SEEN-BY: 633/267 270 @PATH: 711/934 808 50/99 635/544 727 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.