NetTalk Central

Author Topic: Recovering from error message  (Read 13457 times)

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Recovering from error message
« 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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Recovering from error message
« Reply #1 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



RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: Recovering from error message
« Reply #2 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Recovering from error message
« Reply #3 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

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: Recovering from error message
« Reply #4 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).

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: Recovering from error message
« Reply #5 on: March 30, 2015, 07:39:18 AM »
Hold that thought. I'll try a different test or two.

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: Recovering from error message
« Reply #6 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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Recovering from error message
« Reply #7 on: April 07, 2015, 06:35:48 AM »
>>  post(event:close window)

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

cheers
Bruce

RichBowman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Email
Re: Recovering from error message
« Reply #8 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