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.
Last Post: 01-28-2011, 10:10 AM
Last Post: 09-14-2010, 10:20 AM
Last Post: 04-16-2010, 06:11 PM
Last Post: 09-20-2009, 01:46 AM
By - John of Arc - in forum VB Classic
Last Post: 04-29-2000, 03:58 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL