Hi,

I have strange problem:
In my COM class, only the constructor works, but other functions fail
to execute.
I have declared my COM functions in VirtualBox.xidl

COM Server:
UnattendedImpl.cpp:

HRESULT Unattended::init (Machine *aParent)
{
...
    writeStringToFile("/tmp/unatt_init.log", "hello world !\n");
...
}

STDMETHODIMP Unattended::Function1(IN_BSTR str_a, IN_BSTR str_b, IN_BSTR str_c)
{
    writeStringToFile("/tmp/unatt_Start.log", "hello world !\n");
    return S_OK;
}

STDMETHODIMP Unattended::Function2 (void)
{
    writeStringToFile("/tmp/unatt_Stop.log", "hello world !\n");
    return S_OK;
}

=========================
In my case I use writeStringToFile() method as a debugger.

COM Client:
UINewVMWzd.cpp:

    CUnattended unattended = machine.GetUnattended();
    unattended.Function1("", "", "");
    unattended.Function2();

COM Client basically calls Function1, Function2 and Constructor of the
COM Server.

However, the result is shocking ! Only the Constructor works, the
other functions do not !
user@xrig:~$ ll /tmp/un*
-rw-r--r-- 1 user user 14 Jan 26 02:33 /tmp/unatt_init.log
user@xrig:~$

The code should write also "/tmp/unatt_Start.log" and "/tmp/unatt_Stop.log".
No compiler, no linker and no runtime errors !

Any ideas ?
-- 
-Alexey Eromenko "Technologov"

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to