It has nothing to do with the parameters, its the 'engine_open' function itself.
This is a 'PInvokeStackImbalance', a much more serious error which will corrupt the statck leading to all kinds of problems.
The problem is due to that the managed signature/method name does not match the unmanaged function in acknex.dll, upsetting the stack.
The weird thing is, is that this is handled by the wrapper with the P/Invoke declaration / mashalling stuff. I've never experiences this exception before whilst using the wrapper and so I'm not sure of the cause.
@BoH_Havoc Sorry, I was/am kind of busy lately, I unfortunately didn't look at this thread for a while !
I also experienced the error you mentioned under VS 2010, i uploaded a fix for VS 2010 on the acknexwrapper.matthias-auer.net homepage !
I also hope to upload a beta version of the new wrapper (only for 7.8x atm) in the next days (hopefully not weeks) - if i find enough time !
The new wrapper won't use unsafe code anymore, the usage of strings will be improved and won't use a var object, only normal doubles and ints, and the engine objects like ENTITY will have class methods which are the corresponding functions in lite-c like ent_create (although I'm not quite sure whether this will prove to be handy in practice - as it's not always intuitive where to find a function that one searches)..
Hi, when I use "yield return ScheduleMethod.PROC_EARLY;" the engine (A7) crashes. Do I have to consider something when using PROC_... or is this a bug?
Yes I did add "A7_WRAPPER" before. I readded it but still it won't work. If I comment the PROC_... lines everything is working fine. I tried the same code snippet in A7 without the wrapper - there it works. btw: I use Visual C# Express 2010
I've installed A7.866 but can't reproduce the error ! could you create a small example and post the code here or send me the small example project ?
EDIT : thanks pararealist now i can reproduce it too !
btw, I'll post the link to the new version in the "C# wrapper 2.0 - RELEASE" thread - the thread for the new wrapper (not the old one from some years ago !"