Sign in to follow this  
Followers 0
panlatv

Run fonction, i need information

4 posts in this topic

Hello,

If i do that in a GUI :

run ("cmd.exe vlc.exe name_movie")

The "cpu load" of my program not change.

but if i do this:

run ("vlc.exe name_movie")

The "cpu load" of my program change, like the "cpu load" of vlc change (or something like that)

So, the run fonction "communicate" with vlc? It's very strange... or it's not the good explanation?

(in reality vlc "play" a dvb-t chanel not a movie)

Share this post


Link to post
Share on other sites

OK If we run vlc.exe directly our program CPU LOAD will change

If we run cmd.exe the CPU Load of cmd.exe change

But we can not use any track of vlc.exe with StderrRead at all

But If we use StderrRead then it will read cmd.exe

I THINK. I NEVER TRY. I'M JUST GUESSING

Share this post


Link to post
Share on other sites

Hello,

If i do that in a GUI :

run ("cmd.exe vlc.exe name_movie")

The "cpu load" of my program not change.

but if i do this:

...

...

I would consider the syntax of the first code shown should be

run ("cmd.exe /c vlc.exe name_movie")

Without the " /c " switch, then your just running cmd.exe and passing 2 parameters which may not do what you initially wanted.

:D

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I would consider the syntax of the first code shown should be

run ("cmd.exe /c vlc.exe name_movie")

Without the " /c " switch, then your just running cmd.exe and passing 2 parameters which may not do what you initially wanted.

;)

Yes you are right, little mistake.

But in my code is ok (no mistake).

My question is: why the cpu load of my GUI change like the change of the cpu load of vlc, in this exemple run ("vlc.exe movie")? :P

ex: if the cpu load of vlc =4%, the cpu load of my GUI (who "run/start" vlc) is 2%,

then if the cpu load of vlc =2% then the GUI = 1%

It's very strange, normally, the cpu load of a GUI doesn't depend of cpu load of a running program, isn't it? :D

In my code, my GUI/soft doesn't try to read information about the state of vlc, only run vlc with the good command line, that'all.

(the soft does other thing: control process of vlc, run streaming on multicast IP, start multi-record..., but the cpu load of my GUI is independent of vlc)

(sorry for my bad english :P )

Edited by panlatv

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0