Good evening all,<br><br>I&#39;m writing a program using enet and have a question.<br>The code below occasionally throws an exception because event.packet isn&#39;t allocated.<br>Is this caused by the sender writing zero length packets?<br>
<br>      while ( s_elapsed &lt; 4 )<br>      {<br>         if ( enet_host_service( client, &amp;event, 1000 ) &gt; 0 );<br>            if ( event.type == ENET_EVENT_TYPE_RECEIVE );<br>            {<br>               if ( event.packet == NULL )<br>
                  throw std::runtime_error( &quot;null packet on receive operation&quot; );<br>               ...<br>            }<br>      }<br><br>I&#39;m using gcc 4.4.3 on Ubuntu Linux.<br>
<br>Thanks,<br><br>Jay<br> <br clear="all"><br>-- <br>---<br>&quot;Is real reporting dead?  News at 11!&quot;<br>