<html><body bgcolor="#FFFFFF"><div>I sometimes get a similar error with git patches from email, if I use Thunderbird to save them.</div><div><br></div><div>Thunderbird spreads the header information into several lines, so I need to manually adjust that after saving, with a text editor.</div><div><br></div><div>Maybe that's the problem here too? :)<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); "> </span></div><div><br>On 02/11/2010, at 3:00 AM, <<a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>

<div><font size="3" face="Calibri">:S I'm far away from a git expert :S</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Maybe anyone on the list can help us 
?</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Arnaud</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> Monday, November 01, 2010 2:42 PM</div>
<div><b>To:</b> <a title="arnaud.champion@devatom.fr" href="mailto:arnaud.champion@devatom.fr"><a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a></a> </div>
<div><b>Subject:</b> Re: Re: Re: SPAM-LOW: Re: Re: Node.GetInfo 
error</div></div></div>
<div><br></div>
<div><font color="#000080" size="2" face="Verdana">Hi Arnaud,</font></div>
<div><font color="#000080"></font> </div>
<div><font color="#000080">I tried </font><font color="#000000" size="3" face="Calibri">GitExtension, but while applying patch, it returns 
"Patch format detection failed. "</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Should I change some settings or is there 
something not right in the patch file?</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Regards</font></div>
<div><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#c0c0c0" size="2" face="Verdana">2010-11-01 </font></div><font color="#000080" size="2" face="Verdana">
<hr style="WIDTH: 100px" align="left" color="#b5c4df" size="1">
</font>
<div><font color="#c0c0c0" size="2" face="Verdana">Lancer </font></div>
<hr color="#b5c4df" size="1">

<div><font size="2" face="Verdana"><strong>发件人:</strong> <a href="mailto:arnaud.champion@devatom.fr"><a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a></a> 
</font></div>
<div><font size="2" face="Verdana"><strong>发送时间:</strong> 2010-11-01  16:55:51 
</font></div>
<div><font size="2" face="Verdana"><strong>收件人:</strong> 黄亮 </font></div>
<div><font size="2" face="Verdana"><strong>抄送:</strong> <a href="mailto:libvir-list@redhat.com"><a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a></a> </font></div>
<div><font size="2" face="Verdana"><strong>主题:</strong> Re: Re: SPAM-LOW: Re: Re: 
Node.GetInfo error </font></div>
<div><font size="2" face="Verdana"></font></div>
<div><font size="2" face="Verdana">
<div><font size="3" face="Calibri">Ok,</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">if you are under windows (like me), use 
GitExtension (<a href="http://sourceforge.net/projects/gitextensions/"><font title="http://sourceforge.net/projects/gitextensions/
CTRL + Cliquez ici pour suivre le lien" color="#0066cc">http://sourceforge.net/projects/gitextensions/</font></a>)</font></div>
<div><font size="3" face="Calibri">It works, not perfect, but it works.</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Arnaud</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> Monday, November 01, 2010 9:52 AM</div>
<div><b>To:</b> <a title="arnaud.champion@devatom.fr" href="mailto:arnaud.champion@devatom.fr"><a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a></a> </div>
<div><b>Subject:</b> Re: Re: SPAM-LOW: Re: Re: Node.GetInfo 
error</div></div></div>
<div><br></div>
<div><font color="#000080" size="2" face="Verdana">Hi Arnaud,</font></div>
<div><font color="#000080"></font> </div>
<div><font color="#000080">The NodeInfoStructure you sent to me yesterday works, 
thank you.</font></div>
<div><font color="#000080">I saw your patch file, should I manually apply it to 
the source code or is there some tools I can use to automatically apply the 
changes? </font></div>
<div><font color="#000080"></font> </div>
<div><font color="#000080">Regards</font></div>
<div><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#c0c0c0" size="2" face="Verdana">2010-11-01 </font></div><font color="#000080" size="2" face="Verdana">
<hr style="WIDTH: 100px" align="left" color="#b5c4df" size="1">
</font>
<div><font color="#c0c0c0" size="2" face="Verdana">Lancer </font></div>
<hr color="#b5c4df" size="1">

<div><font size="2" face="Verdana"><strong>发件人:</strong> <a href="mailto:arnaud.champion@devatom.fr"><a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a></a> 
</font></div>
<div><font size="2" face="Verdana"><strong>发送时间:</strong> 2010-11-01  16:37:17 
</font></div>
<div><font size="2" face="Verdana"><strong>收件人:</strong> 黄亮 </font></div>
<div><font size="2" face="Verdana"><strong>抄送:</strong> libvir-list </font></div>
<div><font size="2" face="Verdana"><strong>主题:</strong> Re: SPAM-LOW: Re: Re: 
Node.GetInfo error </font></div>
<div><font size="2" face="Verdana"></font></div>
<div><font size="2" face="Verdana">
<div><font size="3" face="Calibri">Hi,</font></div>
<div><font size="3" face="Calibri">I think the solution is in the last patches 
I have send (which are not yet in the git). Have you tried the NodeInfoStructure 
I have sended yesterday ?</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Arnaud</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> Monday, November 01, 2010 3:01 AM</div>
<div><b>To:</b> <a title="arnaud.champion@devatom.fr" href="mailto:arnaud.champion@devatom.fr"><a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a></a> </div>
<div><b>Cc:</b> <a title="libvir-list@redhat.com" href="mailto:libvir-list@redhat.com">libvir-list</a> </div>
<div><b>Subject:</b> SPAM-LOW: Re: Re: Node.GetInfo error</div></div></div>
<div><br></div>
<div><font color="#000080" size="2" face="Verdana">HI,</font></div>
<div><font color="#000080"></font> </div>
<div><font color="#000080">I tried </font></div>
<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">But  IDE shows compilation errors that there 
is no "Error" defination in "Errors", and "Errors.GetLastError()" returns 
int.</font></div>
<div><font size="3" face="Calibri">I made a guess that maybe it was like 
this:</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div>
<div>Error err = Errors.SaveLastError();</div>
<div>MessageBox.Show("Get Info error: " + err.Message);</div></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">It can be compiled but "err.Message" has nothing 
in it.</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Did I make a wrong assumption?</font></div>
<div><font size="3" face="Calibri"></font> </div>
<div><font size="3" face="Calibri">Regards</font></div></div>
<div><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#c0c0c0" size="2" face="Verdana">2010-11-01 </font></div><font color="#000080" size="2" face="Verdana">
<hr style="WIDTH: 100px" align="left" color="#b5c4df" size="1">
</font>
<div><font color="#c0c0c0" size="2" face="Verdana"><span>Lancer</span> </font></div>
<hr color="#b5c4df" size="1">

<div><font size="2" face="Verdana"><strong>发件人:</strong> <a href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</a> 
</font></div>
<div><font size="2" face="Verdana"><strong>发送时间:</strong> 2010-10-31  16:48:15 
</font></div>
<div><font size="2" face="Verdana"><strong>收件人:</strong> 黄亮 </font></div>
<div><font size="2" face="Verdana"><strong>抄送:</strong> <a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a> 
</font></div>
<div><font size="2" face="Verdana"><strong>主题:</strong> Re: Node.GetInfo error 
</font></div>
<div><font size="2" face="Verdana"></font></div>
<div><font size="2" face="Verdana">
<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"><a href="mailto:libvirt-list@redhat.com">libvirt-list@redhat.com</a></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><br><br>__________ Information from 
ESET Smart Security, version of virus signature database 5577 (20101030) 
__________<br><br>The message was checked by ESET Smart Security.<br><br><a href="http://www.eset.com"><a href="http://www.eset.com">http://www.eset.com</a></a><br></font></div></font></div><br><br>__________ 
Information from ESET Smart Security, version of virus signature database 5580 
(20101031) __________<br><br>The message was checked by ESET Smart 
Security.<br><br><a href="http://www.eset.com"><a href="http://www.eset.com">http://www.eset.com</a></a><br></font></div>
</div></blockquote><blockquote type="cite"><div><span>--</span><br><span>libvir-list mailing list</span><br><span><a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a></span><br><span><a href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a></span></div></blockquote></body></html>