in reply to Re^7: Inline::C self-referential struct idioms and memory
in thread Inline::C self-referential struct idioms and memory
Subsequent to this new convention I have been doing some more computer programming and have come to learn that in (Safe)free()-ing variables there is a difference between ones that are "automatically" allocated and ones that are "dynamically" allocated. I am told that the difference is that the former are allocated on the stack, the latter on the heap. Apparently you can only free() dynamically allocated ones on the heap; doing it on the other ones triggers the error. I guess I am doing that inside the destructor. In any case, commenting out the Safefree makes the error go away, for better or worse.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Inline::C self-referential struct idioms and memory
by syphilis (Archbishop) on Sep 05, 2015 at 01:30 UTC | |
|
Re^9: Inline::C self-referential struct idioms and memory
by BrowserUk (Patriarch) on Sep 04, 2015 at 21:34 UTC |