Old 28th February 2006, 16:02   #1
Junior Member
Join Date: Feb 2006
Posts: 2
System.dll access violoation


After searching and trying the solutions if found here in the forum I still have the same problem.

I'm trying to call a dll file but everytime I try to call this dll I get an access violation.

The dll is copied into the temp folder

SetPluginUnload alwaysoff
# change dir to temp folder
SetOutPath $TEMP\AFTNStation
# call setupsupport dll
System::Call "setupsupport:NullSoftEntry(i 5)i .r0"
MessageBox MB_OK "result $0"
SetPluginUnload manual

Right now the dll looks like this:
LONG NullSoftEntry(LONG routineID)
return 0;

Anyone to help ?

Thx in advance,
jefuree is offline   Reply With Quote
Old 28th February 2006, 17:04   #2
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
DLL procedure should have something like extern "C" (for cpp files) __stdcall __declspec(dllexport), i.e. PASCAL convention (may be not important for single param) and entry point should be visible (in the dependency walker, for example).
Takhir is offline   Reply With Quote
Old 28th February 2006, 18:55   #3
[NSIS Dev, Mod]
kichik's Avatar
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It's very important, if the function accepts any parameters. If the wrong calling convention is used, the stack will get corrupted and the installer will probably crash.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 1st March 2006, 08:20   #4
Junior Member
Join Date: Feb 2006
Posts: 2
Hello Everybody,

thanks for your reply.
I found the error.

There was an error in the call statment I used only one colon instead of the necessary two

So instead of System::Call "setupsupport:NullSoftEntry()"
the right call was
System::Call "setupsupport::NullSoftEntry()"

Regards Jens
jefuree 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