Share this post

Link to post

Share on other sites

According to The MSDN, the rString.GetBuffer(nMaxSize) function allocates a buffer though. So if that returns NULL, that must be where the problem is. Although i can't think why it would return NULL and not throw a CMemoryException