demasi Active Member Licensed User Longtime User Jul 11, 2017 #1 Hi! Do someone know if there's a way to clear the Stack Buffer in B4R? I use StackBufferUsage to check the buffer used, but I don´t know any way to reset/clear/delete the stack buffer. Thanks
Hi! Do someone know if there's a way to clear the Stack Buffer in B4R? I use StackBufferUsage to check the buffer used, but I don´t know any way to reset/clear/delete the stack buffer. Thanks
kolbe Active Member Licensed User Longtime User Jul 12, 2017 #2 demasi said: Hi! Do someone know if there's a way to clear the Stack Buffer in B4R? I use StackBufferUsage to check the buffer used, but I don´t know any way to reset/clear/delete the stack buffer. Thanks Click to expand... You can't clear this buffer nor would you want to as your program is using it as it executes code. You can change the memory available to this buffer with #StackBufferSize. The buffer will dynamically change as a sub/method uses it for the data it needs to store. Upvote 0
demasi said: Hi! Do someone know if there's a way to clear the Stack Buffer in B4R? I use StackBufferUsage to check the buffer used, but I don´t know any way to reset/clear/delete the stack buffer. Thanks Click to expand... You can't clear this buffer nor would you want to as your program is using it as it executes code. You can change the memory available to this buffer with #StackBufferSize. The buffer will dynamically change as a sub/method uses it for the data it needs to store.
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2017 #3 That's true. Whenever a sub ends it returns the stack buffer counter to the previous position. Upvote 0