I have a dll written in c++ which works fine with no issues when using a test application in c++. There is a verbose response option as well. When I use a test application written in VB with verbose response everything works. But when I disable verbose response in the VB test application, the IDE crashes with an access violation on the SECOND time I click a submit button. It works fine the first time.
The code in the dll which appears to be the culprit is:
sTemp = new char[strlen(oXMLElem->xml) + 1]; // works
memcpy (sTemp, (char *)oXMLElem->xml, strlen(oXMLElem->xml)); // fails
// more code here
I have verified that oXMLElem is not null and contains a string of length > 0.
If further information is needed don't hesitate to ask. Not sure where to go from here.