Error of RunProgram() with #PB_Program_Hide

Just starting out? Need help? Post your questions and find answers here.
Michael Korolev
User
User
Posts: 53
Joined: Wed Nov 01, 2006 3:02 pm
Location: Russia/Krasnoyarsk
Contact:

Error of RunProgram() with #PB_Program_Hide

Post by Michael Korolev »

I run this:

Code: Select all

RunProgram("Mrtool","-bmp Temp\"+v_Logo$+" Temp\"+v_Logo$+".bmp","",#PB_Program_Hide)
And then windows says that MRTool.exe was created an error and will be closed (or something like this).

It only works if I before

Code: Select all

#PB_Program_Hide
put

Code: Select all

#PB_Program_Open|#PB_Program_Read|
Where is problem?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You're not using one of the program read commands are you? E.g. ReadProgramString().

If so, you need the #PB_Program_Read flag etc.
I may look like a mule, but I'm not a complete ass.
Michael Korolev
User
User
Posts: 53
Joined: Wed Nov 01, 2006 3:02 pm
Location: Russia/Krasnoyarsk
Contact:

Post by Michael Korolev »

No reading. Just launch...
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

I had the same problem with a new project (PureTemplate) [PB4.10b3].
I used some PB3.94 code and it didn't work with #PB_Program_Hide (I start a batch file, I don't know if that's the issue). Only without this flag.
I didn't investigate and used ShellExecute_() instead.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply