Plugin-DLL keeps Crashing
Hello all,
I am trying to write a DLL with PureBasic :-)
I can call the DLL-function and I can even pass a parameter, but when the DLL-function ends the exe is crashing everytime with the error-code 0xc0000005. Does anyone have an idea?
Thanks,
Sepp
dlltest.nsi
"."
>Name "DLL-Test"
>OutFile "dlltest.exe"
>RequestExecutionLevel user
SilentInstall silent
Section
MessageBox MB_OK "This is an internal MessageBox"
dlltest::testprocedure "This is an DLL MessageBox with NSI-parameter"
MessageBox MB_OK "This is the last Message"
>SectionEnd
>
dlltest.pbStructure TCHAR
.i
char
EndStructure
Structure stack_t
*Next.stack_t
text.s{1024}
>EndStructure
ProcedureDLL testprocedure(hwndParent.i, string_size.i, *variables.TCHAR, *stacktop_pointer, *extra)
*stacktop.stack_t = PeekI(*stacktop_pointer)
*stacktop_pointer = *stacktopNext ; Decrease Stack
MessageRequester("testprocedure", *stacktoptext)
>EndProcedure
>