I am trying to use Selective Instrumentation on VS2012 and PP 7.0.1
I am following TN 1194331 as best I can.
I have a managed console application, with the following properties:
- It loads a native DLL which I wrote, and have configured /MTd [for Pinvoke usage]
- I have no mixed-mode assemblies, just a managed .EXE and a native .DLL
- My native DLL loads a 3rd party DLL [no source] , for which I do not know what CRT is used.
Operation does not get very far. The managed code PInvokes into the native code, which calls memmove, which works outside of Purify.
But under PP when the first native call to memmove occurs, the first instruction ' push edi ;U - save edi' causes an exception.
I do not understand what is going on, but obviously the stack is not right at this point.
Any suggestions on how to proceed?