memory and multiple processes

New Message Reply Date view Thread view Subject view Author view

Philip Nemec (nemec++at++precious)
Thu, 25 Jan 1996 22:35:01 -0800


In the course of fairly normal programming I came up with a variety of memory problems relating to running in multi-process mode...

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...


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:18 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.