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

Discussions related to using the OSE version of VirtualBox.
Post Reply
Johannesynt
Posts: 10
Joined: 18. Apr 2014, 22:18

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

Post by Johannesynt »

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)?

Post by Johannesynt »

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
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

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

Post by noteirak »

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://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply