Philip Nemec (nemec++at++precious)
Thu, 25 Jan 1996 22:35:01 -0800
The first is how to allocate user structures correctly...
The answer is pfMalloc... I thought there was a way to use new and pfMemory to be more C++ish, but I wasn't able to get anything working.
And the second I have even less of an answer for - how about deleting stuff that I point to in channel data?
I can't delete it in the APP process since that will delete it a few frames before the DRAW process is done using it (unless pfFree is smarter than I think). And I think I can flag something in the channel data that says to delete something (which I have code in the DRAW process to pay attention to and do). But is this really the right way to do things? [Right now I just leak memory since needing to delete is a rare case in my program.]
I'm hoping this at least saves people some trouble, and would even like to get some of these issues straightned out in my head and hopefully some other people's as well...
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:18 PDT