0

I was trying to implement this code (unfortunately, the website is down, so I had to dig in the Internet archive).

I get an error in RenderDot function:

PInvokeStackImbalance was detected
Message: A call to PInvoke function 'testing_graphs!testing_graphs.Graphviz::agmemread'
has unbalanced the stack. This is likely because the managed PInvoke signature does
not match the unmanaged target signature. Check that the calling convention
and parameters of the PInvoke signature match the target unmanaged signature.

What to do? There was a sample app here - maybe someone has it?

pmichna
  • 4,800
  • 13
  • 53
  • 90
  • Visual Studio 2012? There were some known stability problems of this example app. The author also commented on a related question: Did you try this: http://stackoverflow.com/a/10195332/63733 ? – marapet May 15 '13 at 21:27
  • Right, I use Visual Studio 2012. I tried adding `CallingConvention = CallingConvention.Cdecl` - didn't help. – pmichna May 15 '13 at 21:49

0 Answers0