Prev Previous Post   Next Post Next
Old 1st January 2006, 03:12   #1
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Question Invalid Opcode... bug?

I discovered a problem that I'm not sure is a bug or not. Maybe someone can help me understand this:

Look at this very simplified script:
PHP Code:
name "My Test"
outfile "blah.exe"
ShowInstDetails show

Section
SectionEnd

Function .onInit
  exch 
$0
  pop $R0
  MessageBox MB_OK 
"here it is:[$R0]"
FunctionEnd 
If I compile this script, I get no errors. But, when I run the resulting EXE, I get an invalid Opcode error.

By making changing the .onInit function to push $0 (instead of exch $0), then it runs fine.

I've tried assigning values to $0, using $1 instead of $0, and even using my own variable, but each time, I get the Opcode error when I use the Exch call.

ideas?
Comperio 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