PxPlus User Forum

Twitter Twitter Twitter

Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Programming / Re: ERR option ignored
« Last post by Mike King on July 25, 2022, 09:24:46 AM »
I am not certain I follow what is happening. 

If you have an error on the DEF OBJECT you probably should force an error exit on the ON_CREATE otherwise your object will be instantiated without a valid Outlook object.

As for why the object creation fails, we have seen instances where Outlook itself is busy doing something (asking a user a question such as "Delete email?". updating mail from host, sending mail, updating calendar, ...) it doesn't accept a new connection.
72
Programming / Re: ERR option ignored
« Last post by Thomas Bock on July 25, 2022, 01:21:13 AM »
Mike

The error is thrown by the NEW() function. The constructor as already been left, so I cannot check anything inside the object any more.
73
Programming / Re: UNT & HFN returning -1
« Last post by Peter.Higgins on July 21, 2022, 08:29:39 PM »
Thanks James,
You are correct.  I followed the example in HFN below and it is messed up.  Its been a long time, maybe 20 years since I've had to explicitly set XF.

set_param -'XF'
?hfn
32767

 
74
Programming / Re: UNT & HFN returning -1
« Last post by James Zukowski on July 21, 2022, 05:02:35 PM »
That means you're running with a limit of 63 local channels (+ console), and 64 globals. If you set_param 'XF', that will open the channel numbers to about 32k each (though documentation indicates a total limit of 500 open per session).
Beware if you have any old code that relies on 2- or 3-digit channel numbers, especially in strings. HFN with 'XF' will start at 32767 instead of 63. UNT will always count up from 1.
75
Programming / Re: UNT & HFN returning -1
« Last post by Peter.Higgins on July 21, 2022, 03:57:23 PM »
James,  -'XF' at the time and place of the -1
76
Programming / Re: UNT & HFN returning -1
« Last post by James Zukowski on July 21, 2022, 03:50:50 PM »
Are you running with the 'XF' parameter set? If not, you're limited to 63 channels open at a time. If you hit the limit, that probably explains the -1...none left to give you.
77
Programming / UNT & HFN returning -1
« Last post by Peter.Higgins on July 21, 2022, 03:27:27 PM »
This is a new one in my experience.  I'm wondering why I am getting this from these two functions.  It is 5 levels into an object stack when the file handles appear to run out, but chn doesn't span more than 1 and half lines.  Same code has been running for a week with this object on thousands of imports for another project without this error occurring.
78
Programming / Re: *web/sftp directory delimiters
« Last post by Peter.Higgins on July 21, 2022, 03:21:17 PM »
Devon,
The delimiter editing is likely a curl thing.  I removed the *.* from /PO/OUT/*.* and the delimiter started disappearing in the remote log.  I added the escape /PO/OUT\/ from the earlier curl question this year which I did not find until after asking.  The remote network reported the path had the trailing delimiter with escape added, but still no joy.  Almost certainly the remote network's issue because the code works everywhere else we connect.
79
Programming / Re: *web/sftp directory delimiters
« Last post by Devon Austen on July 21, 2022, 02:52:41 PM »
To better help you I would need to see the type of call you are making to *web/sftp. Make sure not to include any actual private info when posting the example i.e usernames and passwords.

What error are you getting and why do you think the delimiter is being stripped?

As far as I know the *web/sftp program does not strip any trailing delimiters off. In fact we often add a trailing delimiter if missing in the code. Our tool uses curl and it is possible it may be doing something but I have not seen any issues before.
80
Programming / *web/sftp directory delimiters
« Last post by Peter.Higgins on July 21, 2022, 01:30:50 PM »
In a continuing battle to connect to a specific network I and being asked to add a trailing delimiter to the directory path.  This is stripped by the sftp program.  Is there a way to escape the final path delimiter.
Pages: 1 ... 6 7 [8] 9 10