RWCString - any need to deallocate memory
m_buffer = (void *)new RWCString; //member variable intitialized in constructor
RWCString *pBuffer = (RWCString *)(m_buffer)
RWCString *pBuffer = (RWCString*)m_buffer;
*pBuffer = "";
AssignData(LPCTSTR format, ...)
char *buffer_ptr = buffer;
//used sprintf to create format and arglist to form sqlcommand and store in buffer_ptr
for e.g. sprintf(buffer_ptr, format, argList);
RWCString *pBuffer = (RWCString *)m_buffer;
I have a hard time to understand, is this code causing any memory leak when ClearData is followed by AssignData is called repeatedly.
AssignData can be called multiple times in sequence with chunk of code which gets appended.