I have a class exported as such
class __declspec(dllexport) SigObject
void GetUsername(char **username)
*username = new TCHAR;
I include this class file and compile in a main program as such:
myObject = new SigObject();
char *username = NULL;
which runs without error. However, when I create the class file as a DLL and include the .lib file into the main program and call it, I get an exception at "delete username". Can anyone help me to understand why?