Page 1 of 1

[PB4.2B2] /COMMENTED compiles and runs?

Posted: Wed Feb 27, 2008 9:17 pm
by maw
I have to ask here first, because if this is a bug then surely someone would have found it before me?

Take the following code, or any code really:

Code: Select all

MessageRequester("This shouldn't run..", "Should it?")
Save it as test.pb and compile it with pbcompiler test.pb /COMMENTED, it then compiles it, creates purebasic.asm and purebasic.exe and runs purebasic.exe.. I would have thought that with /COMMENTED it would simply create purebasic.asm and not even compile it, and surely not run it?

Posted: Wed Feb 27, 2008 9:31 pm
by Trond
That's what I would have thought as well, but they said it was supposed to be like that.

Posted: Wed Feb 27, 2008 9:42 pm
by srod
Add the /EXE switch and nominate an executable file to be created and it should then not automatically run the program etc.

Posted: Wed Feb 27, 2008 10:38 pm
by maw
Odd behaviour, but since there is a workaround I'm a happy camper! Thanks srod!! :D

Posted: Wed Feb 27, 2008 10:40 pm
by srod
You're welcome.

Just remember to delete the resulting exe lest you fill up your hard drive etc! :)

Posted: Wed Feb 27, 2008 10:44 pm
by maw
srod wrote:Just remember to delete the resulting exe lest you fill up your hard drive etc! :)
Nonsense!! The one who has the most compiled exe files when he dies wins!! :twisted:

Posted: Wed Feb 27, 2008 10:46 pm
by srod
:lol:

If it was the one who had the most unfinished programs lying around their hard drive, then I'd win that one by at least 20000000 miles. :wink:

Posted: Wed Feb 27, 2008 10:50 pm
by Dare
srod wrote::lol:

If it was the one who had the most unfinished programs lying around their hard drive, then I'd win that one by at least 20000000 miles. :wink:
I would give you a run for your money! :)

Posted: Wed Feb 27, 2008 10:53 pm
by maw
Dare wrote:
srod wrote::lol:

If it was the one who had the most unfinished programs lying around their hard drive, then I'd win that one by at least 20000000 miles. :wink:
I would give you a run for your money! :)
That's because you both spend more time here on the forum then you do coding :mrgreen:

Posted: Thu Feb 28, 2008 1:27 am
by DoubleDutch
:lol: