Thursday, August 15, 2002 02:07 PM
That method you call "constructor" is not meant to be an actual class constructor, is it?
If it is, you should probably try making a simpler real constructor for your class, which just makes empty objects and then returns quickly.
Then move your looping over files, exceptions etc. off into a separate initialization method, called separately from the constructor.
That is your client would do something like
"myobj foo = new myclass();"
instead of jamming all that code and handling and stuff into the constructor itself.