NetTalk Central

NetTalk FTP => FTP - Ask For Help => Topic started by: RichBowman on March 28, 2015, 06:16:36 AM

Title: Recovering from error message
Post by: RichBowman on March 28, 2015, 06:16:36 AM
I have an ftp process that runs 24/7 to and from an in-house server. When that server is rebooted the ftp process errors. I put a RETURN just before the Parent call in MyFTPControl.ErrorTrap but I still get an error. Attached is a pdf with a screenshot of the error and the code I put in the ErrorTrap procedure.

Suggestions?

Thank you,

Rich Bowman

p.s. Bruce, this is the same situation we corresponded about a few days ago. I thought I should put my follow-up question here.

[attachment deleted by admin]
Title: Re: Recovering from error message
Post by: Bruce on March 30, 2015, 01:49:15 AM
Hi Rich,

Of course you still _get_ the error. The RETURN suppresses it from the screen, but it still occurred.

While the machine was rebooting it was unable to connect.

But this is not a problem - so it was unable to connect - that's no big deal. It should try again on the next instruction.

so what then is the _real_ problem?

cheers
Bruce


Title: Re: Recovering from error message
Post by: RichBowman on March 30, 2015, 02:19:39 AM
I wish it did retry, but it doesn't seem too. After the server is rebooted the error remains on the screen until I click Close, then it resumes. I need this to run unattended.
Title: Re: Recovering from error message
Post by: Bruce on March 30, 2015, 05:28:06 AM
which build are you using?

>> the error remains on the screen until I click Close, then it resumes. I need this to run unattended.

In that case maybe "press" the Close button from ErrorTrap?
ie before the RETURN

Post(Event:closWindow)

Cheers
Bruce
Title: Re: Recovering from error message
Post by: RichBowman on March 30, 2015, 06:56:37 AM
Using NetTalk 7.39

I tried the post:event close window but that didn't work either. In fact I think it is still in the code example I sent (but commented).
Title: Re: Recovering from error message
Post by: RichBowman on March 30, 2015, 07:39:18 AM
Hold that thought. I'll try a different test or two.
Title: Re: Recovering from error message
Post by: RichBowman on April 05, 2015, 11:38:56 AM
I tried the post(event:close window) before the parent call followed by a Return (see attached), and after the parent call, but the window still displays and will not close.

My program that downloads files from the ftp server is fine, it's just the program that uploads files.

My goal is for this to run unattended. When there is an error I write to a log file.

Rich

[attachment deleted by admin]
Title: Re: Recovering from error message
Post by: Bruce on April 07, 2015, 06:35:48 AM
>>  post(event:close window)

that's not what is in your code pic....

cheers
Bruce
Title: Re: Recovering from error message
Post by: RichBowman on April 10, 2015, 03:14:30 AM
Yes you are right!

When you made that suggestion I saw one thing and thought another. Wait until you're my age -- growing old sucks.

Thank you for your help. I should have read this correctly the first time.

Rich