Prev Previous Post   Next Post Next
Old 29th July 2012, 21:20   #1
sepp2012
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:
!addplugindir "."

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.pb
PHP Code:
Structure TCHAR
 char
.i
EndStructure

Structure stack_t
  
*Next.stack_t
  text
.s{1024}
EndStructure

ProcedureDLL testprocedure
(hwndParent.istring_size.i, *variables.TCHAR, *stacktop_pointer, *extra)
  *
stacktop.stack_t PeekI(*stacktop_pointer)
  *
stacktop_pointer = *stacktop\Next Decrease Stack
  MessageRequester
("testprocedure", *stacktop\text)
EndProcedure 
sepp2012 is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump