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