Two questions about the List

Just starting out? Need help? Post your questions and find answers here.
Armoured
Enthusiast
Enthusiast
Posts: 348
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

Two questions about the List

Post by Armoured »

1) If I use "Delete Element" to eliminate an item from a list the memory occupied by this item is immediately released to the system?
2) The memory used for the items in the list come from the stack of the exe?

Thanks
User avatar
NicTheQuick
Addict
Addict
Posts: 1226
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Two questions about the List

Post by NicTheQuick »

1) You can read about the memory management of linked lists here: https://www.purebasic.fr/blog/?p=8
2) The memory comes of course from the heap and not the stack.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Post Reply