My issue however is a little different. Admittedly, I have not yet tried adding the closeWindow sub to my program as was suggested in the second post I reffered to, since it was mentioned that the functionality will be built in and I believe I'm using it.
Here is my issue. I need a popup to ask for some details when the program starts to create a data file. I'm playing with the example (WindowsStarter) at the moment, and made the following adjustment to the code to try and close a window with code:
This does exactly what I expected it to do, however, I get a NullPointerException error after the println. This seems to occur in the handleDraw method, which is weird since the GWindow.close should release all the handlers if I'm not mistaken. This also only appears to happen once, I assume the very next call after I closed the window, and after that it actually did release all the handlers.
Any ideas? Timing issue with my old celeron laptop?
I tried to add a public void handleDraw, but the main window never opens then.
I just want to report a bug I have experienced in Processing.
When I use the Replace & Find option and the last found match have been replaced, it does not deselect the range that it has selected for the previous Replace & Find and seems to 'think' that the range is still a match. If Replace & Find is pressed again, it would replace the current selected range with what is type in the Replace With field, however it already replaced that instance, and if the length of the Find and the Replace With fields differ, it starts making interesting new words. This also causes an endless loop if the Replace All button is pressed and crashes Processing entirely.
I hope I have explained this well enough.
I am running Processing 2.0b7 on Windews 7 Professional 32bit.