posted 22 years ago
Hi everyone...this is my problem:
If I start the application with a -db C:\\mydb.db option and mydb.db isn't a valid fly by night services database file (for example an ASCII file), the Data class does:
nFields = db.readInt();
description = new FieldInfo[nfields];
the value of nFields is absolutely wrong, because it contains a large integer value, so when it tries to dim the array description, it throws an OutOfMemoryError!
How I can achieve this behaviour?? I suppose is incorrect to insert in my code a try {} catch (OutOfMemoryError) { }
Thanks...
Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : [email protected]<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>