Exception
Hello,
I'm using RB 6.03 (I'm not sure). My program silently generate an archive
(wich is imported in the database).
If an EOutOfResources exception occurs during the :
myReport.Print;
call, no exception is catchable (?) using try / except.
try
myReport.Print;
except
// does not go here...
end;
So I do not know if the report is correctly generated. This first big
problem for me...
The second problem is "why this EOutOfResources occurs ?". If I run two
differents programs wich use RB (statically linked), and if the first
program is openned on a preview rb form, the second thows the exception
frenquently. Is there any reason ?
Thank you
Jean Lacoste
I'm using RB 6.03 (I'm not sure). My program silently generate an archive
(wich is imported in the database).
If an EOutOfResources exception occurs during the :
myReport.Print;
call, no exception is catchable (?) using try / except.
try
myReport.Print;
except
// does not go here...
end;
So I do not know if the report is correctly generated. This first big
problem for me...
The second problem is "why this EOutOfResources occurs ?". If I run two
differents programs wich use RB (statically linked), and if the first
program is openned on a preview rb form, the second thows the exception
frenquently. Is there any reason ?
Thank you
Jean Lacoste
This discussion has been closed.
Comments
I tried throwing the EOutOfResources by creating a bad event handler (large
TBitmap) in a report and was able to catch the exception just fine. You may
have resource/memory leaks in your code. Try using a product such as QA
Suite or Automated QA to detect and repair leaks. If this does not help,
please send a working example demonstrating the problem to
support@digital-metaphors.com and we'll take a look.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com