You guys have opened my eyes concerning memory allocation, and I see that
I've been allocating too much memory with MemPtrNew.

However, I do need to allocate temporary space for an array of up to 2000
strings, each 70 characters long.  I'm currently doing it like this:

    m_pDescriptorsForEditing = (DESCRIPTORFOREDITING *)
MemPtrNew(m_NumDescriptors[Type] * sizeof(DESCRIPTORFOREDITING));

How *should* I do it?

Thanks!

- Alan Macy
  http://www.ResponsiveSoftware.com
  Time and Billing for Consultants and Others
  

Reply via email to