I have a piece of code which reads from a file and prints on console.
long count = 0;
while (reader.readPoint()) {
++count;
LASPoint point = reader.getPoint();
double x = point.getX();
double y = point.getY();
double z = point.getZ();
System.out.println(x + "_" + y + "_" + z);
}
This code ends with:
Process finished with exit code -1073740940 (0xC0000374)
But if I just make a small change in code as:
long count = 0;
while (reader.readPoint()) {
++count;
System.out.println("Total number of points so far:"+count);
....rest is same as before
}
I just added a line to print ‘count’ value. With this minor change, program finishes successfully with exit code 0.
I am puzzled why this change in behaviour.
Not sure what am I missing here.