Lot of people stumble upon this message, I will make a Technical FAQ page about it...
You believe it is a runtime exception like Null Pointer Exception or Array Index Out Of Bounds Exception, but that's not the case.
It isn't produced while running the sketch, but at compilation time, actually. IOException is an example of checked exception: you have to catch them or to re-throw them. Checked exceptions are likely to happen upon some (external, in general) conditions, like no file or not access to a file, or no network, or badly formated data (JSON here), etc. I don't have time to give a full course here now, but I will write this FAQ article... ) That aside, since you're a moderator, could i suggest a [Snippet/Ressources] section in the Forum to share some utility functions or tricks like @Amnon Owed did in his article 25 LIFE-SAVING TIPS FOR PROCESSING or even tutorials?
The C++ standard library's containers, iterators, and algorithms are potentially useful for a variety of game programming needs.
However, weaknesses and omissions of the standard library prevent it from being ideal for high performance game software.
Foremost among these weaknesses is the allocator model.
Are you absolutely positive you've got the latest version installed? I'm on Windows 7, with Java7 installed (but the lib is compiled using 1.6) Dudes, I think I found it.
There was a remaining exception being thrown by the "get JSONObject()" inside the JSONArray class.
I'm pushing the updated version to github now, please try it.
Makio, I still have no clue as to why your code behaves differently depending on the OS.
Paul Pedriana Electronic Arts ppedriana at Gaming platforms and game designs place requirements on game software which differ from requirements of other platforms.
Most significantly, game software requires large amounts of memory but has a limited amount to work with.
Gaming software is also faced with other limitations such as weaker processor caches, weaker CPUs, and non-default memory alignment requirements.
A result of this is that game software needs to be careful with its use of memory and the CPU.