Alright, I’ve been fighting with some heap corruption for the last month or so with the Angel re-write I’ve started. The heap corruption is occurring in the client library test program, meaning the source is probably in the client library itself.
Here’s the source for the test program:
void main()
{
AngelKV *kv = new AngelKV(L"data");
kv->AddKV(L"Name",L"Cale Dunlap");
kv->AddKV(L"Age",L"24");
kv->AddKV(L"Alias",L"Mazor");
AngelClient pClient = AngelClient("pantera","angeltest","angeltest");
AngelResponse *pResponse = pClient.RunCommand( L"AddUser", kv );
if( pResponse != NULL )
delete pResponse;
pClient.Disconnect();
}
The heap corruption is occurring in the default destructor of the AngelClient class. Here is the full source to the Angel Solution. The visual studio project/solution is for Visual Studio 2008. There’s a server and client written in C#, but right now I’m focusing on the client written in C++. I’m tempted to pay a reward to the person who finds it. If you happen to come across this post and find where my heap corruption is coming from, drop me a line at [email protected]
The error messages:
Things I’ve tried so far:
I’m at wits end with this, and I need some help. Thank you.
Comments are closed.