Hey all,
i'm still writing my bot, but now found a little problem:
i'm trying to call a native method that expects free memory to write a vector<T> inside it.
so i tryed this:
the Method handler points to the correct method,has the right signature etc.Code:IntPtr memory = Marshal.AllocHGlobal(2000*8); ptrtoparse = _myMethodHandler(SomeInstancePointer, memory);
My problem now is,even tho is sounds stupid, that if i run it this way and set a breakpoint on the native method to see the stack i can see,that i get a pointer to a pointer to the free memory
[[PASSEDVALUE]] would be where the free memory is then.
so i tryed to fix this by reading from the "memory" variable first via marshalling or WhiteMagic,but it didn't make any difference.
i'm on this stupid problem all day now and i'm happy that i finally nailed it down to what's wrong,but can't really find how i could solve this.
Thanks for your help as always,and while i'm at it, thanks for all the amazing stuff posted in this section(shynds blackmagic,apocs whitemagic,apocs domainmanager just for the things i use in this project) aswell as providing good feedback![]()