Original Post
Hello. Some times, after starting my app, i found that some other apps (f.e. photoshop) stops working propertly. I've checked my app trough DevPartner and it found many erros and memory leaks. Most of the errors i've already fixed, but i can't resolve the next situation: i have LPSTR szString that was readed from XML. Then i need to convert it to std::string variable. So it looks like this: std::string strNodeName = szNodeName; The compiller is happy with that, but DevPartner says: "Unrelated Pointer: Comparing two unrelated pointers 0x02402F48 and 0x0012FAA4. Pointers are not within the same buffer." And when my app is terminated, i've got the Memory Leak in xtring line 44. I think there is some relationship between this two issues. Actually i need a clear way to covert LPSTR (char *) to std::string. Thanks!