I haven't got the code, because I haven't got VB and can't test the code I post.Kwaï chang caïne wrote:If you have the same code, who don't crash the RAD....i'm interesting![]()
Because i prefer close the VB with the button "quit"![]()
So, the next step: I think that the possible problem why VB crashes is that DLL tries to free memory, allocated for the array, after the procedure is done. You can test if it's so if you change a DLL code a little:
Code: Select all
ProcedureDLL MyFunctionPB(*ArrayFromVB)
Dim MyArray.l(1)
CopyMemory(*ArrayFromVB, @MyArray(), 2*4)
MessageRequester(PeekS(MyArray(0)), PeekS(MyArray(1)))
EndProcedure





