Tested with a fresh installation of PB 4.51 x86 under Windows XP, Windows 7 x86, Windows 7 x64.
Just compiled the source listed in my post, defined as a tool, specified "%TEMPFILE" as parameter (with the quotes).
In all of the cases, the message "How come I'm visualized even when the test is successful ?" is shown.
I don't see how can be happening, the code generated is this, looks ok to me.
After running the notepad, the incriminated message is skipped (but only in the code below, not when running the prog).
Maybe I have to look at the actual exe.
Code: Select all
[omissis]
AND eax,eax
JE _EndIf4
; RunProgram("notepad.exe", dir$,"")
PUSH dword _S5
PUSH dword [v_dir$]
PUSH dword _S6
CALL _PB_RunProgram2@12
; Else
JMP _EndIf3
_EndIf4:
; MessageRequester("Error!", "There was an error creating the assembly code file.")
PUSH dword _S7
PUSH dword _S8
CALL _PB_MessageRequester@8
; EndIf
_EndIf3:
; Else
JMP _EndIf1
_EndIf2:
; MessageRequester("What?", "How come I'm visualized even when the test is successful ?")
PUSH dword _S9
PUSH dword _S10
CALL _PB_MessageRequester@8
; EndIf
_EndIf1:
_PB_EOP_NoValue:
PUSH dword 0
_PB_EOP:
CALL _PB_EndFunctions
PUSH dword [PB_MemoryBase]
CALL _HeapDestroy@4
CALL _ExitProcess@4
_PB_EndFunctions:
RET
;