We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › using PrintWriter when initialising a class
Page Index Toggle Pages: 1
using PrintWriter when initialising a class (Read 641 times)
using PrintWriter when initialising a class
Mar 21st, 2010, 8:46am
 
hello everybody

i would like to write a logfile when initialising an object, collecting all decisions made during the initialising process.
i have a PrintWriter set up, and calling it during initialising. but i always get a NullPointerException. I understand that it has something to do with the initialising process as it, because all class functions report correctly when called after the initialising.

any ideas how to achieve the goal otherwise?
thank you very much.
Re: using PrintWriter when initialising a class
Reply #1 - Mar 21st, 2010, 3:36pm
 
Show the relevant part of code. Stripped to the minimum.
Page Index Toggle Pages: 1