Page 1 of 1

Error of RunProgram() with #PB_Program_Hide

Posted: Fri Aug 24, 2007 2:35 pm
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?

Posted: Fri Aug 24, 2007 3:24 pm
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.

Posted: Fri Aug 24, 2007 3:46 pm
by Michael Korolev
No reading. Just launch...

Posted: Fri Aug 24, 2007 4:08 pm
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.