Hi all,
I am working on my PalmPilot project using Metrowerks C++ compiler from the
beginning. Most of the time when I need to allocate memory, I use standard
C++ style like v = new char[size]. It works for me so far. Now that I'm done
with my first prototype and it is soon come the time for the real
development. I think this is the good time to make sure that I handle thing
right. So here are my questions.
Can MemHandleNew and MemHandlelock be interchangibly replaced with "new" in
C++? Or "new" will later catch up with me with some undesirable affects that
I don't know of? I mean I would prefer two operations (new and delete) over
four operations (MemHandleNew, MemHandleLock, MemHandleUnlock and
MemPtrFree) since it is simpler to allocate and deallocate memory the C++
way.
Any insights?
Tung.