cancel
Showing results for 
Search instead for 
Did you mean: 

How to Allocate Memory to Objects Dynamically?

Zwei.9
Associate III

1 REPLY 1
Jack Peacock_2
Senior III

When you enter a C procedure the local variables are dynamically allocated from the task stack. Exiting the procedure release the stack memory allocated to the objects, since they are no longer needed.

So your answer is: make all objects local in scope to a procedure. Then they will be dynamically allocated.

Jack Peacock