This is really confusing. You say VirtualBox crashes, but I see it reporting an 
error caused by an assertion. You talk about CFGMR3QueryBytes() but the log 
file shows failures due to CFGMR3AreValuesValid(). You talk about accessing 
data from the "configuration xml file" but there is no such functionality, 
there is only a way to access the CFGM tree. 

The VBox.log file you provided hints that the symbol VMMR3AreValuesValid does 
not exist in the process loading your library. I'm not sure why. 

Finally, do not mix up *nix shared libraries and Windows style DLLs. They solve 
similar problems but the similarity can be deceptive. 

Regards, 
Michal 

----- Original Message ----- 
From: [email protected] 
To: [email protected] 
Sent: Thursday, November 12, 2015 10:41:31 PM GMT +01:00 Amsterdam / Berlin / 
Bern / Rome / Stockholm / Vienna 
Subject: [vbox-dev] Virtualbox Configuration manager 










I have successfully written code for a virtual device and Virtualbox is able to 
recognize my virtual device. I have been able to successfully communicate with 
this virtual device. Inside this file, I am trying to use the cfgm.cpp 
functions like CFGMR3QueryBytes( ) to access data from the configuration xml 
file but it just crashes the VM before even starting. The log says 
CFGMR3QueryBytes( ) is undefined symbol. I have included the necessary header 
files. I also looked at DevPCNet.cpp which is using the same functions in its 
pcnetConstruct( ) function successfully. 


I believe it has something to do with DLL loading. I am attaching a log file 
here 


libvirtdevice.so is the binary of my virtual device and adding it to 
Virtualbox. 


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

Reply via email to