I am using PB 3.90
I wrote a program with the below code at the end
RunProgram("TEST.exe")
When compiled and run it works fine.
If the program is now made into an EXE
and the exe is run
TEST.EXE tries to run twice.
Program runs twice
-
- User
- Posts: 30
- Joined: Tue Sep 09, 2003 11:44 pm
- Location: Queensland, Australia
eriksradio,
Maybe you can send just the part which produces the bug to check it on another installation and debug it ...
Rgrds
Maybe you can send just the part which produces the bug to check it on another installation and debug it ...
Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
-
- User
- Posts: 30
- Joined: Tue Sep 09, 2003 11:44 pm
- Location: Queensland, Australia
Hi fweil,
The actual program includes many more files. It might seem strange to
embed and run a file that is already there, but these files are runtime files
and it makes sure the user has not replaced them with unofficial updates which may not work. So it rewrites these files every time the program
is run.
If CreateFile(1, "sstvpalmultimode.exe")
UseFile(1)
L1 = ?ExitProcl - ?Incl
WriteData(?Incl, L1)
CloseFile(1)
Goto BeginProgram1
Incl :
IncludeBinary "sstvpalmultimode.exe"
exitProcl:
EndIf
BeginProgram1:
RunProgram("SstvPalMultiMode.exe")
It works fine in the IDE but the compiled exe tries to run
"sstvpalmultimode.exe" twice.
The actual program includes many more files. It might seem strange to
embed and run a file that is already there, but these files are runtime files
and it makes sure the user has not replaced them with unofficial updates which may not work. So it rewrites these files every time the program
is run.
If CreateFile(1, "sstvpalmultimode.exe")
UseFile(1)
L1 = ?ExitProcl - ?Incl
WriteData(?Incl, L1)
CloseFile(1)
Goto BeginProgram1
Incl :
IncludeBinary "sstvpalmultimode.exe"
exitProcl:
EndIf
BeginProgram1:
RunProgram("SstvPalMultiMode.exe")
It works fine in the IDE but the compiled exe tries to run
"sstvpalmultimode.exe" twice.
eriksradio,
The flow as it is can't run twice, or tere is a bug somewhere.
Just then post a bug report but you may have to send your code for verification to one of the Purebasic team for checking what's wrong.
Just verifiy all again before to decide it's a compiler bug.
Rgrds
The flow as it is can't run twice, or tere is a bug somewhere.
Just then post a bug report but you may have to send your code for verification to one of the Purebasic team for checking what's wrong.
Just verifiy all again before to decide it's a compiler bug.
Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
-
- User
- Posts: 30
- Joined: Tue Sep 09, 2003 11:44 pm
- Location: Queensland, Australia
Hi again Fweil,
I have the program working OK now.
With the many files handled in the same way, if I put the file I wish to run
at the head of the list, it now only runs once as expected.
That effect seems only if the run request immediately follows the unpacking.
I don't know if it is a bug, but I will pass it on to the team of developers just in case.
Thanks Fweil
I have the program working OK now.
With the many files handled in the same way, if I put the file I wish to run
at the head of the list, it now only runs once as expected.
That effect seems only if the run request immediately follows the unpacking.
I don't know if it is a bug, but I will pass it on to the team of developers just in case.
Thanks Fweil