[vbox-dev] Problem with restoring a snapshot via API: Console is null
klaus.espenlaub at oracle.com
Thu Jul 3 14:41:31 UTC 2014
On 02.07.2014 15:52, Daniel Dreibrodt wrote:
> I’m developing a C# application that controls VMs, starts them, stops
> them and runs programs in them. It should also reset the VM to a
> previously saved snapshot.
> But I get a NullReferenceException because the Console object of my
> session is null, although I call LockMachine.
> Here is the code with which I try to reset the machine after it has been
> powered down.
The code looks fine... I wonder if this is some language binding
specific problem. Not that it would make much sense, the call isn't
doing anything complex like returning a safearray.
Your code is rather close to what VBoxManage does, so I'm puzzled.
More information about the vbox-dev