<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<br><br>attached is a patch the should set program return code to 1 in case of severe errors.<br><br>It also changes the handling of so called MapFailedExceptions like <br>"There is not enough room in a single garmin map..."<br>or <br>"Overflow of the NET1. The tile ..."<br><br>These messages are now printed as severe messages via the logging system (showing the input file):<br>Severe (MapFailedException): \ld_sp\63240003.o5m: (thrown in BufferedImgFileWriter.ensureSize()) There is not enough room in a single garmin map for all the input data. The .osm file should be split into smaller pieces first.<br><br>The stdout contains two new messages:<br>Number of MapFailedExceptions: 3<br>Number of ExitExceptions: 0<br><br>If any of the two shows a non-zero value, the program exits with return code 1.<br><br>@WanMil, Steve: Please review.<br>In Main.java I use "synchronized" to make sure that concurrent updates are handled.<br>The System.exit() method is only used if the program is not called from another java program.<br>The code In MapFailedException.log() tries to determine the code that caused the Exception.<br>I hope this works in all environments?<br><br>Gerd<br><br>                                            </div></body>
</html>