Hello,
With Acad Architecture 64 / VS 2010, I have this PInvokeStackImbalance / AecLayerManager error when I run in debug.
If I click 'Continue', the application seems to run normally.
When I quit Acad, I have this access violation reading error in accoremgd.dll.
Besides, I'm not sure the two are related...
I don't know where to look knowing that I don't use this PInvoke.
Any idea to put me on the path would be welcome.
Thanks
Solved! Go to Solution.
Solved by pierre.plaissy. Go to Solution.
Can't tell you what's causing that, but a PinvokeStackImbalance is most-commonly triggered by an incorrectly-declared extern method with a [DllImport] attribute applied to it.
Thank you DiningPhilosopher for your help.
It was not an error with a DllImport method. After unsuccessful search, I reinstalled autocad on the system partition which was not the case before.
The problem is solved.
Sorry for my bad english 🙂
Et pour ceux qui, comme moi, ne s'expriment dans la langue de la perfide Albion que sous la torture, et qui rencontreraient le même problème, il semble, je dis bien il semble, qu'il provienne du fait qu'Autocad n'était pas installé sur la partition système.