|
From: <am...@ma...> - 2003-10-24 19:28:59
|
Thanks Rob, I know, that's why I also have: #ifdef _UNICODE wchar_t* wfield = Misc::charToWide(field); .... delete[] wfield; #else char_t* wfield = strdup(field); .... free(wfield) #endif -pedja > > I'm not sure everything that's going on here because I haven't read up > on what these resources are or looked at how we do them. > > But you should note that Misc::charToWide(const char* s) allocates a > new string with new[], and the call to strdup() allocates one with > malloc(), which could cause problems later on in the processing. > > --Rob > |