[libvirt] Node.GetInfo error

黄亮 lancerhuang at 163.com
Sun Oct 31 09:00:53 UTC 2010


OK, I'll try to get the error msg. And remember including the mail-list :-)

Lancer


2010-10-31 



黄亮 



发件人: arnaud.champion at devatom.fr 
发送时间: 2010-10-31  16:48:15 
收件人: 黄亮 
抄送: libvir-list at redhat.com 
主题: Re: Node.GetInfo error 
 
Ok,

at first GetLastError return an Error object. So you should anything like :

Errors.Error err = Errors.GetLastError();
MessageBox.Show(err.Message);

For the NodeInfo structure, I think the problem is the same that was for DomainInfo, I'll check marshaling. Then respond you with the correct infos.

Arnaud

PS : can you also put libvirt-list at redhat.com in copy of your mails, to keep everyone in the loop ?


From: 黄亮 
Sent: Sunday, October 31, 2010 8:20 AM
To: arnaud.champion 
Subject: Node.GetInfo error


Hi,

Sorry for disturbing again. But I get error while using Node.GetInfo.

Code:

NodeInfo aNodeInfo = new NodeInfo();
if (Node.GetInfo(con, aNodeInfo) < 0)
{
//MessageBox.Show("Node Info Error");
MessageBox.Show(Errors.GetLastError().ToString());
return 0f;
}

I'm sure con != IntPtr.Zero. I tried to use Errors.GetLastError(), it returns int. But I don't know what to do with it.
So, any suggestions ? Thanks 

Regards
2010-10-31 



Lancer 


__________ Information from ESET Smart Security, version of virus signature database 5577 (20101030) __________

The message was checked by ESET Smart Security.

http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101031/f6ee6e22/attachment-0001.htm>


More information about the libvir-list mailing list