Jump to content

Recommended Posts

Posted

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)

Posted

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

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

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
×
×
  • Create New...