Page 3 of 7

Posted: Mon Jan 28, 2008 4:29 pm
by rsts
No go here either.

Tried with xp, v32 and v64 - none will work.

I imagine they'll sort it out.

cheers

Think we should report a bug?

Posted: Mon Jan 28, 2008 4:30 pm
by Baldrick
@ Netmaestro & Srod,
This will probably be a waste of posting space but have you tried running in portable / local mode to if maybe that will get it started?
Mine is running in full & portable modes with no probs at all

Edit: using something like this compiled from 1 of your working versions

Code: Select all

If ReadFile(0,"PureBasic.exe") 
 If RunProgram("PureBasic.exe","/PORTABLE","PureBasic")=0  
  MessageRequester("Fault","PB failed to open") 
 EndIf 
  Else 
 MessageRequester("Fault","PureBasic.exe file not found") 
EndIf

Posted: Mon Jan 28, 2008 4:39 pm
by JCV
Thanks PB Team!

No problem here. I have VC++ 9.0 installed here and recompiling some of my pb libs too. I notice a big difference in size. :)

Posted: Mon Jan 28, 2008 4:44 pm
by Inf0Byt3
I installed this: (uploaded to rapidshare because it was on another site and i couldn't find it somewhere else)

http://rapidshare.com/files/87308470/vccrt.msi.html

and it fixed my problem. Now it runs without problems.

Posted: Mon Jan 28, 2008 4:48 pm
by rsts
Inf0Byt3 wrote:I installed this: (uploaded to rapidshare because it was on another site and i couldn't find it somewhere else)

http://rapidshare.com/files/87308470/vccrt.msi.html

and it fixed my problem. Now it runs without problems.
That seems to have worked for me. Thanks :)

cheers

Posted: Mon Jan 28, 2008 4:53 pm
by srod
Excellent - that did it!

Thanks Info. :)

Posted: Mon Jan 28, 2008 4:54 pm
by Inf0Byt3
Anytime :).

Posted: Mon Jan 28, 2008 4:56 pm
by netmaestro
Yes, that fixes it here too. These runtime libraries aren't going to be needed for our compiled .exe programs are they?

Posted: Mon Jan 28, 2008 5:01 pm
by Inf0Byt3
Hmmm no idea... Fred said he compiled both the libraries and the compiler itself with VC8. I hope I won't have to put 5mb of runtimes besides the exe :/.

There's only one way to find out... Uninstalling the vc runtime patch and running a compiled exe. I'll have a try and report back.

[Edit]
Nope, it seems that the exe works without it anyway. Tested with this:

Code: Select all

MessageRequester("","Hello world!")

Posted: Mon Jan 28, 2008 5:38 pm
by netmaestro
I tried with a much more complex program, Transpetris and it works fine without the runtimes installed, so it seems only pbcompiler.exe needs them. They'll have to be included in the PB installer for success everywhere.

Posted: Mon Jan 28, 2008 5:42 pm
by tinman
Have you tried the SP1 versions of the VC2005 runtimes?

http://www.microsoft.com/Downloads/info ... ylang%3den

Posted: Mon Jan 28, 2008 7:59 pm
by inc.
Fred should just try to statically link to the crt (using LIBCMT.LIB) when compiling the PBCompiler ... it has been known that VS C++ 2005 does link dynamically to the msvcrt in a diff. manner.

Posted: Mon Jan 28, 2008 8:04 pm
by Fred
Thanks for the headup, i modified the link sequence to use the old MSVCRT.dll like before. For the next beta.

Posted: Mon Jan 28, 2008 9:25 pm
by Psychophanta
Thanks for this great new!
I am having the problem related here:
http://www.purebasic.fr/english/viewtopic.php?t=30622
(the 2nd one).

Now the problem is constant with this beta2. See the image to get what i mean:
ImageThe compile/run icon is disabled... Can't compile! :cry:
No other suffering the same problem? :?

Posted: Mon Jan 28, 2008 9:41 pm
by inc.
I dont have that much skills regarding the IDE but could it be that the compiler hasnt been started? (which would be suspect anyway).
Means try restarting the Compiler ... and see if it works.