Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Avoid timeout dump

Former Member
0 Likes
1,499

Hi friends!!

I have a problem in my program. Sometimes, depending of server I have a timeout dump in a Loop process. Its possible avoid this using try/catch and show to user message instead?

Thanks for any help.

Edited by: Fulvio Valente on Aug 23, 2011 7:53 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,048

Hi

try/catch for what?

If you don't have any updating of tables of database you can call a COMMIT WORK, this comand will reset the time

But you should understand why your loop takes so long

Max

5 REPLIES 5
Read only

Former Member
0 Likes
1,049

Hi

try/catch for what?

If you don't have any updating of tables of database you can call a COMMIT WORK, this comand will reset the time

But you should understand why your loop takes so long

Max

Read only

0 Likes
1,048

I thinking a way to avoid dump screen for user...but timeout has no exception...

Loop takes so long 'cause large data in some cases...

Read only

1,048

Hi,

Time out is a non-catchable exception (by the way there are many non-catchable exceptions), so you can't catch it (to say the truth there's one way to handle them but it's very complex and not desirable anyway).

Sandra

Read only

Former Member
0 Likes
1,048

Other way to think to stop time out dump...

Please try to run the program in background

OR

Please divide the bigger loop with where clause

Thanks.

Read only

0 Likes
1,048

Thanks for replies friends.

I will try a more limited data selection instead.

Regards!