Lukáš- +#ifdef _WIN32 + free((void *)((const char *)name)); + free((void *)((const wchar_t *)name)); +#else free((void *)name); +#endif That second free should be on wname, right? I'm just a lurker... Cheers Hans