A way for change the value of a var (runtime)?

Discussions related to using the OSE version of VirtualBox.

A way for change the value of a var (runtime)?

Postby Johannesynt » 19. May 2014, 18:20

HI. I need to change the value of a variable while the VM is running (runtime).
If a create a variable in the source code (for example bool x=true), and i need to change the value to false while the virtual machine is runnig, how can i do it? for avoid problems, i can use a binary semaphore (or someting else).
Johannesynt
 
Posts: 10
Joined: 18. Apr 2014, 22:18

Re: A way for change the value of a var (runtime)?

Postby Johannesynt » 19. May 2014, 23:27

Can i use XPCOM? if a understand, with XPCOM i can call a function(method), if this function was properly configured for XPCOM in the source code, before compiling. In my case i can write a function that simply change the value of a variables.
Anyi can't fins a simple example of how to use xpcom...

thanks
Johannesynt
 
Posts: 10
Joined: 18. Apr 2014, 22:18

Re: A way for change the value of a var (runtime)?

Postby noteirak » 21. May 2014, 20:35

Your goal is very obscure and it seems you're trying to hack your way around something that shouldn't be, or you're going at it the wrong way.
In any case, the best place to discuss source code itself is at the Dev Mailing List.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest