Re: [twsocket] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 I am getting a spurious error 426 (426 Operation aborted.) when I run
 my program automated to upload files to a ftp site.  When I do the
 exact same steps manually in same exe, it works fine. Error Listed
 below from my own logs.

Please try to reproduce the issue with latest ICSv7 from here:
http://wiki.overbyte.be/wiki/index.php/ICS_Download

Any change?

-- 
Arno   

  

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Tried latest snapshot, no dice still :(
I was on the latest stable release which is significantly older, so I had
hopes that this might do it.
Ignoring the error and attempting to plow on doesn't work either.

Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 3:05 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 I am getting a spurious error 426 (426 Operation aborted.) when I run 
 my program automated to upload files to a ftp site.  When I do the 
 exact same steps manually in same exe, it works fine. Error Listed 
 below from my own logs.

Please try to reproduce the issue with latest ICSv7 from here:
http://wiki.overbyte.be/wiki/index.php/ICS_Download

Any change?

-- 
Arno   

  

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket Digest, Vol 472, Issue 1

2012-04-18 Thread Jon Burnham
Hi Arno

You're a star. Thank you so much :-)

Kind regards

Jon

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of twsocket-requ...@elists.org
Sent: 18 April 2012 13:00
To: twsocket@elists.org
Subject: TWSocket Digest, Vol 472, Issue 1

Send TWSocket mailing list submissions to
twsocket@elists.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
or, via email, send a message with subject or body 'help' to
twsocket-requ...@elists.org

You can reach the person managing the list at
twsocket-ow...@elists.org

When replying, please edit your Subject line so it is more specific than
Re: Contents of TWSocket digest...


Today's Topics:

   1. ICS XE2 non-visual registration (Jon Burnham)
   2. Re: ICS XE2 non-visual registration (Arno Garrels)
   3. FTP Error 426 (Matt Minnis)
   4. Re: FTP Error 426 (Arno Garrels)


--

Message: 1
Date: Tue, 17 Apr 2012 12:58:16 +0100
From: Jon Burnham j...@dial.pipex.com
Subject: [twsocket] ICS XE2 non-visual registration
To: twsocket@elists.org
Message-ID: 007101cd1c91$5f9ad270$1ed07750$@pipex.com
Content-Type: text/plain;   charset=us-ascii

Pardon Francois, I should have sent this last message to the list, as it may
be more useful to your fans.
 
===
 
Bonjour Francois
 
I have just discovered ICS is available for XE2. Bravo and merci beaucoup. I
have decided to give them a whirl, as they seem to have an excellent
reputation.
 
Postcard at the ready (really), I just wanted to point out that the
components *may* not be registering in the IDE properly. They do not appear
in the non-visual selection once you use a data-module. Not sure how to
remedy this.
 
Of course, not being a Delphi expert, I could be wrong. It happens all the
time J
 
A bientot can't do the accents
 
Jon
 
 


--

Message: 2
Date: Tue, 17 Apr 2012 15:00:36 +0200
From: Arno Garrels arno.garr...@gmx.de
Subject: Re: [twsocket] ICS XE2 non-visual registration
To: ICS support mailing twsocket@elists.org
Message-ID: AD7CC5D345CC472E9889F0B3B33F4F31@asus
Content-Type: text/plain;   charset=iso-8859-1

- Original Message -
From: Jon Burnham j...@dial.pipex.com
To: twsocket@elists.org
Sent: Tuesday, April 17, 2012 1:58 PM
Subject: [twsocket] ICS XE2 non-visual registration


 I just wanted to point out that the
 components *may* not be registering in the IDE properly. They do not
appear
 in the non-visual selection once you use a data-module. 

That's a know issue, just set new property ClassGroup of the 
data module to Vcl.Controls.TControl then switch to editor view
and back to designer view to apply these changes (IDE bug).  

In a FireMonkey application (ICS Beta only) set ClassGroup to
FMX.Types.TControl.

-- 
Arno Garrels


--

Message: 3
Date: Tue, 17 Apr 2012 16:32:06 -0500
From: Matt Minnis ma...@firestreamww.com
Subject: [twsocket] FTP Error 426
To: 'ICS support mailing' twsocket@elists.org
Message-ID: 13a501cd1ce1$8a240c50$9e6c24f0$@firestreamww.com
Content-Type: text/plain;   charset=UTF-8

I am getting a spurious error 426 (426 Operation aborted.) when I run my
program automated to upload files to a ftp site.  When I do the exact same
steps manually in same exe, it works fine.
Error Listed below from my own logs.
I checked all the settings, they are identical between runs, I exported the
component settings to XML and they are identical to the byte.

I use the Menu-Click events to trigger each step when running
automatically, I see no reason why this would be failing.  :(
I am taking a SQL backup of our database, archiving it, then uploading to a
FTP site.
Since this is being uncooperative, I have hardcoded the settings to rule
that stuff out.

Anyone have any experience with this error 426 that might be able to shed
some light on this to help me?

I am using Delphi 7 and ICS7.

Here's what I did to automate this:  (initiated by timer event)
procedure StartProcessing();
begin
  UploadFrm.DBBackup1.Click();
  UploadFrm.GetDBInfo1.Click();
  UploadFrm.Make7Z1.Click();
  UploadFrm.MakeMD51.Click();
  UploadFrm.InitiateFTP2.Click();
end;

These are the same steps I do manually in this same order.  I tried a sleep
of 2000 between each, but no dice.

This is maddening, I have to be overlooking something really really stupid.

If anyone can help, I would appreciate it.

Thanks,
Matt

Error:
###Resume Put
16:05:56: FTP: FtpClient1ReadyToTransmit: 
ftp Request PutAsync Done.
ftp StatusCode = 150
ftp LastResponse was : '150 Opening BINARY mode data connection for
4071Ascend4.09.7z'
 ftp Error = 426 (426 Operation aborted.)
16:05:57: FTP Upload Process Canceled



--

Message: 4
Date: Wed, 18 Apr 2012 10:04:33 +0200
From: Arno Garrels arno.garr...@gmx.de

Re: [twsocket] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:

 16:05:56: FTP: FtpClient1ReadyToTransmit: 
 ftp Request PutAsync Done.
 ftp StatusCode = 150
 ftp LastResponse was : '150 Opening BINARY mode data connection for 
 4071Ascend4.09.7z'
  ftp Error = 426 (426 Operation aborted.)
 16:05:57: FTP Upload Process Canceled

You must be calling Abort while the component is still uploading.

-- 
Arno  


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Not intentionally.

Here is the ICS Logger output for 2 attempt cycles (log below).
Can see the Shutdown before the data sent.
Does this help at all?

Thanks,
Matt

10:42:33:450 01E8D474 Socket handle created 964
10:42:33:499 TWSocket will connect to 206.196.105.44:21
10:42:33:580 01E8D474 TriggerDataSent 964
10:42:33:634 01E8D474 TriggerDataSent 964
10:42:33:703 01E8D474 TriggerDataSent 964
10:42:33:848 01E8D474 TriggerDataSent 964
10:42:33:923 01E8D474 TriggerDataSent 964
10:42:34:118 01E8D474 TriggerDataSent 964
10:42:34:302 01E8D474 TriggerDataSent 964
10:42:34:492 01E8D474 TriggerDataSent 964
10:42:34:781 01E8D474 TriggerDataSent 964
10:42:34:852 01E8D474 TriggerDataSent 964
10:42:34:975 01E8DD60 Socket accepted 1056
10:42:34:988 01E8DD60 TCustomWSocket.Shutdown 1 1044
10:42:35:005 01E8DD60 TriggerDataSent 1056
10:42:35:047 01E8DD60 TCustomWSocket.Shutdown 1 1056
10:42:45:097 01E8D474 Socket handle created 20
10:42:45:111 TWSocket will connect to 206.196.105.44:21
10:42:45:176 01E8D474 TriggerDataSent 20
10:42:45:243 01E8D474 TriggerDataSent 20
10:42:45:310 01E8D474 TriggerDataSent 20
10:42:45:451 01E8D474 TriggerDataSent 20
10:42:45:532 01E8D474 TriggerDataSent 20
10:42:45:715 01E8D474 TriggerDataSent 20
10:42:45:889 01E8D474 TriggerDataSent 20
10:42:46:085 01E8D474 TriggerDataSent 20
10:42:46:302 01E8D474 TriggerDataSent 20
10:42:46:369 01E8D474 TriggerDataSent 20
10:42:46:490 01E8DD60 Socket accepted 1064
10:42:46:503 01E8DD60 TCustomWSocket.Shutdown 1 1052
10:42:46:517 01E8DD60 TriggerDataSent 1064
10:42:46:538 01E8DD60 TCustomWSocket.Shutdown 1 1064

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 9:56 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:

 16:05:56: FTP: FtpClient1ReadyToTransmit: 
 ftp Request PutAsync Done.
 ftp StatusCode = 150
 ftp LastResponse was : '150 Opening BINARY mode data connection for
4071Ascend4.09.7z'
  ftp Error = 426 (426 Operation aborted.)
 16:05:57: FTP Upload Process Canceled

You must be calling Abort while the component is still uploading.

-- 
Arno  


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] New ICS web browser demo

2012-04-18 Thread Angus Robertson - Magenta Systems Ltd
The web browser demo has been updated again.  

Arno has put a lot of effort into authentication and multipart/form-data
file upload, and I've improved image download using a queue and a fixed
number of static image download sessions (4) rather than downloading
potentially dozens of images simultaneously in separate sessions. This
allows http/1.1 and keep-alive to work.

The demo may be downloaded from SVN or the overnight zips, and an
executable and HtmlViewer component from the main download page:

http://wiki.overbyte.be/wiki/index.php/ICS_Download

Angus



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Google protocol buffers

2012-04-18 Thread grafix4d

Hi all,
I am new here, I would like to ask if there is any kind of Google 
protobuf implementation based on ICS.

Thank you in advance.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 Not intentionally.
 
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

No it doesn't since the log options do not include the
loProtSpecxxx type of options, try something like:
[loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loWsockDump,loProtSpecErr,loProtSpecInfo,loProtSpecDump]

-- 
Arno


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Angus Robertson - Magenta Systems Ltd
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

Sorry, no.  The ICS FTP component is very stable and widely used.  Any
issues with it are likely to be your implementation, or circumstances
unconnected with your application.  The FTP server may have closed the
connection, or a firewall or NAT router somewhere may be unhappy.   

Is this problem reproducible against different FTP servers in different
locations.  I have a public ICS FTP server you can test against,
anonymous download access at ics.ftptest.org you will need to request an
account if you need to upload.  The same host has other FTP servers for
testing against. 

Angus
 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Here is the ICS log segment that applies with those options:
12:04:33:532 ! HighLevelAsync 0
12:04:33:546 ! HighLevelAsync done
12:04:33:579 01EFD47C TriggerDataSent 972
12:04:33:640 |200 Type set to I|

12:04:33:669 01EFD47C TriggerDataSent 972
12:04:33:744 |250 CWD command successful|

12:04:33:930 01EFD47C TriggerDataSent 972
12:04:33:994 |257 / is the current directory|

12:04:34:127 01EFD47C TriggerDataSent 972
12:04:34:181 |213 20120418163737|

12:04:34:320 01EFD47C TriggerDataSent 972
12:04:34:381 |213 0|

12:04:34:567 ! HighLevelAsync 0
12:04:34:607 01EFD47C TriggerDataSent 972
12:04:34:654 |200 PORT command successful|

12:04:34:692 ! HighLevelAsync 0
12:04:34:733 01EFD47C TriggerDataSent 972
12:04:34:836 |150 Opening BINARY mode data connection for
4071Ascend4.09.7z|

12:04:34:856 ! Data Session requested
12:04:34:870 01EFDD68 Socket accepted 1052
12:04:34:887 01EFDD68 TCustomWSocket.Shutdown 1 1044
12:04:34:910 ! Data Session opened
12:04:34:943 01EFDD68 TriggerDataSent 1052
12:04:34:975 ! Aborting
12:04:35:003 ! HighLevelAsync 0
12:04:35:030 ! Abort detected
12:04:35:052 ! HighLevelAsync done
12:04:35:081 01EFDD68 TCustomWSocket.Shutdown 1 1052
12:04:35:108 ! Data Session closed
12:04:35:125 ! Next3PutAsync
12:04:35:148 ! Aborting

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 11:50 AM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 Not intentionally.
 
 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

No it doesn't since the log options do not include the loProtSpecxxx type of
options, try something like:
[loDestOutDebug,loAddStamp,loWsockErr,loWsockInfo,loWsockDump,loProtSpecErr,
loProtSpecInfo,loProtSpecDump]

--
Arno


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Ok, let me try some different ones and see what happens.

I know ICS is very stable, I have used it several times over the years,
that's pretty much why I am using it.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Wednesday, April 18, 2012 11:50 AM
To: twsocket@elists.org
Subject: Re: [twsocket] FTP Error 426

 Here is the ICS Logger output for 2 attempt cycles (log below).
 Can see the Shutdown before the data sent.
 Does this help at all?

Sorry, no.  The ICS FTP component is very stable and widely used.  Any
issues with it are likely to be your implementation, or circumstances
unconnected with your application.  The FTP server may have closed the
connection, or a firewall or NAT router somewhere may be unhappy.   

Is this problem reproducible against different FTP servers in different
locations.  I have a public ICS FTP server you can test against, anonymous
download access at ics.ftptest.org you will need to request an account if
you need to upload.  The same host has other FTP servers for testing
against. 

Angus
 

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 Here is the ICS log segment that applies with those options:

OK, open your project and then OverbyteIcsFtpCli.pas in the editor.
Add a breakpoint in:

procedure TCustomFtpCli.AbortAsync;
{var
bFlag : Boolean; } { 2.106 }
begin
{$IFNDEF NO_DEBUG_LOG} { 2.105 }
if CheckLogOptions(loProtSpecInfo) then // =*** here 
DebugLog(loProtSpecInfo, '! Aborting');
{$ENDIF}

Run the app. with debug symbols under the debugger and when it stops at
the breakpoint copy the call stack and post it here.

-- 
Arno

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
Call stack:
TCustomFtpCli.AbortAsync
TCustomFtpCli.Progress
TFtpClient.Progress
TCustomFtpCli.DataSocketPutDataSent(???,0)
TCustomWSocket.TriggerDataSent(0)
TCustomWSocket.Do_FD_WRITE(???)
TCustomWSocket.WMASyncSelect((1038, 1072, 2, 36, 1072, 0, 2, 0, 36, 0))
TCustomWSocket.WndProc(???)
TCustomHttpTunnelWSocket.WndProc(???)
TCustomLineWSocket.WndProc(???)
TIcsWndHandler.WndProc((1038, 1072, 2, 36, 1072, 0, 2, 0, 36, 0))
WndControlWindowsProc(???,???,1072,2)
TCustomFtpCli.Progress
TFtpClient.Progress
TCustomFtpCli.DataSocketPutDataSent(???,0)
TCustomFtpCli.WMFtpSendData(???)
TCustomFtpCli.WndProc(???)
TIcsWndHandler.WndProc((1027, 0, 0, 1, 0, 0, 0, 0, 1, 0))
WndControlWindowsProc(???,???,0,0)
TFtpClient.WaitUntilReady
TFtpClient.Synchronize($C1CF8C)
TFtpClient.Put
FTPTransfer('d:\Database\4071Ascend4.09.7z')
TUploadFrm.InitiateFTP2Click(???)
TUploadFrm.tmMasterTimer(???)
DBUpload

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 1:02 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Matt Minnis wrote:
 Here is the ICS log segment that applies with those options:

OK, open your project and then OverbyteIcsFtpCli.pas in the editor.
Add a breakpoint in:

procedure TCustomFtpCli.AbortAsync;
{var
bFlag : Boolean; } { 2.106 }
begin
{$IFNDEF NO_DEBUG_LOG} { 2.105 }
if CheckLogOptions(loProtSpecInfo) then // =*** here 
DebugLog(loProtSpecInfo, '! Aborting'); {$ENDIF}

Run the app. with debug symbols under the debugger and when it stops at the
breakpoint copy the call stack and post it here.

--
Arno

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Arno Garrels
Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress

Check your OnProgress or OnProgess64 event handler.
It must set var Abort to true.

-- 
Arno 
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Arno Garrels
Arno Garrels wrote:
 Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress
 
 Check your OnProgress or OnProgess64 event handler.
 It must set var Abort to true.

It should not, however obviously it does.

-- 
Arno 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Error 426

2012-04-18 Thread Matt Minnis
You guys rock!
Thanks Arno  Angus!

Apparently when running automated, some event tripped one of my exception
handler's which set a form variable to true
UploadFrm.FCanceled
In beginning of OnProgress handler I check for this and set abort to true.
Before initiating the FTP upload I reset this variable and voila! It works!
:)

::happy dance::

Was beating my head against this for some time and knew it would be some
sniggly bit like this that was escaping my radar.

Thanks,
Matt

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: Wednesday, April 18, 2012 2:19 PM
To: ICS support mailing
Subject: Re: [twsocket] FTP Error 426

Arno Garrels wrote:
 Matt Minnis wrote:
 Call stack:
 TCustomFtpCli.AbortAsync
 TCustomFtpCli.Progress
 
 Check your OnProgress or OnProgess64 event handler.
 It must set var Abort to true.

It should not, however obviously it does.

--
Arno 

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be