I've got an issue with my exported application that I haven't encountered in my sketch when run from Processing.
After about an hour or so, the exported application stops working. When I run the same application from Processing it doesn't have any issues. I want to go troubleshooting what exactly is failing (I'm thinking it's the serial port, but it's kind of weird that it isn't causing troubles in the sketch) but error messages are printed to the console which isn't available in an exported application.
I've read somewhere that you can start it from the commandline, but that answer was specific to .jar files. I'm working with a .exe file on a 64 bit Windows 7 system. The application was exported using an earlier version of Processing, 2.0b8.
I've been using Processing for a couple of months now, but there is one issue that I just can't seem to fix with searching in the forums.
In the program I'm writing I open a RFID reader (from Parallax) on port COM3 in setup. Usually it works but sometimes it just isn't available (PortInUseException) even though Windows has listed it in Devices and Printers, and it's port name is still COM3.
I found a workaround (
https://forum.processing.org/topic/recover-from-portinuseexception) but I'm not sure how to implement it. How, exactly, do you implement the method "Timeout" that is suggested in that workaround? And can you make setup() wait for this method to do its job before wrapping up and going to draw()? There is a Serial port listener in draw() that will probably throw an exception if Timeout is still trying to set up the communication.
I really need the Serial port to open, the intent of the program is to run at startup and work for an entire day in a public exhibit. Shutting down the pc and restarting it isn't a feasable option for me.
And, just out of curiosity, what program might be using the COM-port? Processing is the only program running on my pc. Is Windows doing something to it?