There is a minor bug in the sample database that causes an infinite loop if
there are no messages to send (and 100% CPU usage).
Below is the fix, simply the 'nextdocument' call is made from within the if
loop, where it shouldn't be. This is applied at the end of 'SendQueue' agent.
---<snip>--------
} //try inside while loop
}
//Get next document and delete the curent one
vNotesDocument = vNotesView.getNextDocument( vNotesDocument );
} //while loop
} catch( Exception e) {
System.err.println( e.getMessage() ); //e.printStackTrace();
} //outer try
} //notes main
} //;-)))
There is a minor bug in the sample database that causes an infinite loop if there are no messages to send (and 100% CPU usage).
Below is the fix, simply the 'nextdocument' call is made from within the if loop, where it shouldn't be. This is applied at the end of 'SendQueue' agent.
---<snip>-------- } //try inside while loop } //Get next document and delete the curent one vNotesDocument = vNotesView.getNextDocument( vNotesDocument ); } //while loop } catch( Exception e) { System.err.println( e.getMessage() ); //e.printStackTrace(); } //outer try } //notes main } //;-)))
---<snip>--------
Great program by the way!!! Thank you very much.