Exhaustion of file handles query ...
Posted: Fri Aug 07, 2009 12:58 pm
by Silversprings >> Tue, 28 Mar 2006 4:26:34 GMT
Hi Tech. Gennys,
When I create a report class instance to work with for outputting a report (eg. "create invRep transient;") I always delete the report instance with a "delete invRep" in the epilog of the method that created it.
However if you call this method from within a loop that is say, processing customers then I found that after processing about 70 customers the system would either freeze up or present an error that made me suspect that resources like file handles were being used up to the point of exhaustion and not released after each customer had been reported.
This was confirmed by changing the code so that only one report instance was created and that all controls on it were initialised on it each time round the loop for processing each customer. Now the report processing works "sweet as" ....
Well not quite because I resent having the performance hit of having to clear control settings on the report instance each time round the loop instead of just having it deleted and using the default settings if a new instance is created.
So, is this a bug in JADE that the file handle resources are not being released when a "delete invRep" statement is executed ????????????????????????????????
regards
SilverSprings ........... ______________________________________________________
Alan J.Thomson
JADE Consultant, Endeavour Solutions Ltd
Tel (09) 366 2130
www.endeavour.co.nz
This message and any attachments are intended for the addressee only and may contain confidential or privileged information. Any unauthorised copying, disclosure, retention or distribution of this material is forbidden. Any views expressed are those of the individual sender.
Hi Tech. Gennys,
When I create a report class instance to work with for outputting a report (eg. "create invRep transient;") I always delete the report instance with a "delete invRep" in the epilog of the method that created it.
However if you call this method from within a loop that is say, processing customers then I found that after processing about 70 customers the system would either freeze up or present an error that made me suspect that resources like file handles were being used up to the point of exhaustion and not released after each customer had been reported.
This was confirmed by changing the code so that only one report instance was created and that all controls on it were initialised on it each time round the loop for processing each customer. Now the report processing works "sweet as" ....
Well not quite because I resent having the performance hit of having to clear control settings on the report instance each time round the loop instead of just having it deleted and using the default settings if a new instance is created.
So, is this a bug in JADE that the file handle resources are not being released when a "delete invRep" statement is executed ????????????????????????????????
regards
SilverSprings ........... ______________________________________________________
Alan J.Thomson
JADE Consultant, Endeavour Solutions Ltd
Tel (09) 366 2130
www.endeavour.co.nz
This message and any attachments are intended for the addressee only and may contain confidential or privileged information. Any unauthorised copying, disclosure, retention or distribution of this material is forbidden. Any views expressed are those of the individual sender.