![]() |
#1 |
Junior Member
Join Date: Jul 2012
Posts: 2
|
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 PHP Code:
PHP Code:
|
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
Try ProcedureCDLL
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Major Dude
|
What about dlltest::testprocedure /NOUNLOAD "This is an DLL MessageBox with NSI-parameter" ??
Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2019: www.visual-installer.com or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com |
![]() |
![]() |
![]() |
#4 | |
Junior Member
Join Date: Jul 2012
Posts: 2
|
Quote:
Also /NOUNLOAD was deprecated in NSIS 2.42 (but still works). Yes, that's it ![]() Thank you very very much! I tried it for several hours, but did not got it. I researched a little bit more, for all who are interested: NSIS-DLL's must use the cdecl calling convention (Windows-default is stdcall) whereas the calling function cleans the stack (at stdcall the callee cleans the stack). |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|