<font><font face="arial,helvetica,sans-serif"><br></font></font><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 5:49 PM, Robin Sommer <span dir="ltr">&lt;<a href="mailto:robin@icir.org" target="_blank">robin@icir.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hui, what&#39;s the branch your most recent code is in?<br></blockquote><div> I am working on the branch  topic/hui/powergrid3</div>

<div>But I have not pushed my recent modifications.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Wed, Aug 01, 2012 at 10:50 -0500, you wrote:<br>
<br>
&gt; 1. I have some customization codes in DNP3.cc. I simply printf the error<br>
&gt; message in this file (such as memory allocation failed). For those error<br>
&gt; messages, do I have to include them in log files ?<br>
<br>
</div>Yes, you should use the reporter for errors. For memory in particular,<br>
you don&#39;t need to check if you use &quot;new&quot; (because a handler for that<br>
is installed), and there&#39;s safe_malloc etc. for the C-style functions<br>
(see util.h)<br></blockquote><div><br></div><div>Do we have any macro for reporting errors? There are some other errors in addition to memory allocation.  </div><div><br></div><div>I may need some time to replace that old malloc functiions with the safe ones. </div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
&gt; 2. where should I put several sample policy files?<br>
<br>
</div>Put them under scripts/policy/protocols/ for now, we can later see if<br>
that&#39;s something we want to ship.<br></blockquote><div>OK. </div><div>I also plan to add little explanations on those policies. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div class="HOEnZb"><div class="h5"><br>
Robin<br>
<br>
--<br>
Robin Sommer * Phone <a href="tel:%2B1%20%28510%29%20722-6541" value="+15107226541">+1 (510) 722-6541</a> * <a href="mailto:robin@icir.org">robin@icir.org</a><br>
ICSI/LBNL    * Fax   <a href="tel:%2B1%20%28510%29%20666-2956" value="+15106662956">+1 (510) 666-2956</a> *   <a href="http://www.icir.org" target="_blank">www.icir.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Hui Lin<div>PhD Candidate, Research Assistant<br>Electrical and Computer Engineering Department<br>University of Illinois at Urbana-Champaign</div>

<br>