<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=gb2312 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.7930.16406"><LINK rel=stylesheet 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY 
style="MARGIN: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT size=3 face=Calibri>Ok,</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>at first GetLastError return an Error object. So 
you should anything like :</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Errors.Error err = 
Errors.GetLastError();</FONT></DIV>
<DIV><FONT size=3 face=Calibri>MessageBox.Show(err.Message);</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>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.</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Arnaud</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>PS : can you also put <A 
href="mailto:libvirt-list@redhat.com">libvirt-list@redhat.com</A> in copy of 
your mails, to keep everyone in the loop ?</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=lancerhuang@163.com 
href="mailto:lancerhuang@163.com">»ÆÁÁ</A> </DIV>
<DIV><B>Sent:</B> Sunday, October 31, 2010 8:20 AM</DIV>
<DIV><B>To:</B> <A title=arnaud.champion@devatom.fr 
href="mailto:arnaud.champion@devatom.fr">arnaud.champion</A> </DIV>
<DIV><B>Subject:</B> Node.GetInfo error</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Verdana>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV>Sorry for disturbing again. But I get error while using Node.GetInfo.</DIV>
<DIV> </DIV>
<DIV>Code:</DIV>
<DIV> </DIV>
<DIV>
<DIV>NodeInfo aNodeInfo = new NodeInfo();</DIV>
<DIV>if (Node.GetInfo(con, aNodeInfo) < 0)</DIV>
<DIV>{</DIV>
<DIV>//MessageBox.Show("Node Info Error");</DIV>
<DIV>MessageBox.Show(Errors.GetLastError().ToString());</DIV>
<DIV>return 0f;</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV>So, any suggestions ? Thanks </DIV>
<DIV> </DIV>
<DIV>Regards</DIV></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2010-10-31 
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT color=#c0c0c0 size=2 
face=Verdana>Lancer </FONT></DIV></FONT></BODY></HTML>