Thank you - this was the only program in the synapse demos that i had trouble 
with and brought it out of retirement when i saw this thread

FYI the fpc cross compiler on the commandline in linux making win32 executables 
works great with synapse

from using the ppcross386 with -gl -vh i get this when it times out and the 
exception is raised
there were a number of units in places that weren't used but commenting them 
out had not effect

I hope this gives you additional info you might not have had about where the 
code was having problems

TApplication.HandleException Synapse TCP/IP Socket error 10060: Connection 
timed out
  Stack trace:
  $005CB88E  TBLOCKSOCKET__EXCEPTCHECK,  line 2598 of 
/usr/local/fpc/units-win32/synapse/blcksock.pas
  $005CA968  TBLOCKSOCKET__RECVPACKET,  line 2351 of 
/usr/local/fpc/units-win32/synapse/blcksock.pas
  $005CA4B9  TBLOCKSOCKET__RECVBUFFEREX,  line 2212 of 
/usr/local/fpc/units-win32/synapse/blcksock.pas
  $0042E59E  TSIMPLESFTP__RECEIVEBUFFER,  line 722 of SimpleSFTP.pas
  $0042E61C  TSIMPLESFTP__RECEIVEPACKET,  line 733 of SimpleSFTP.pas
  $0042E8DD  TSIMPLESFTP__INIT,  line 767 of SimpleSFTP.pas
  $0042D9C3  TSIMPLESFTP__CONNECT,  line 593 of SimpleSFTP.pas
  $0042BFCF  TTESTSFTPFORM__CONNECTBUTTONCLICK,  line 88 of Main.pas
  $004B7119  TCONTROL__CLICK,  line 2662 of 
/usr/local/lazarus/lcl-win32/include/control.inc
  $005698A3  TBUTTONCONTROL__CLICK,  line 62 of 
/usr/local/lazarus/lcl-win32/include/buttoncontrol.inc
  $00569FD6  TCUSTOMBUTTON__CLICK,  line 174 of 
/usr/local/lazarus/lcl-win32/include/buttons.inc
  $0056A791  TBUTTON__CLICK,  line 349 of 
/usr/local/lazarus/lcl-win32/include/buttons.inc
  $0056975E  TBUTTONCONTROL__WMDEFAULTCLICKED,  line 26 of 
/usr/local/lazarus/lcl-win32/include/buttoncontrol.inc
  $0040CF06
  $004A710D  TWINCONTROL__WNDPROC,  line 5276 of 
/usr/local/lazarus/lcl-win32/include/wincontrol.inc
  $005A996B  DELIVERMESSAGE,  line 113 of 
/usr/local/lazarus/lcl-win32/lclmessageglue.pas
  $005B3C00  GTK2WSBUTTON_CLICKED,  line 2307 of 
/usr/local/lazarus/lcl-win32/interfaces/gtk2/gtk2wsstdctrls.pp





The sftp code was clearly not ported to fpc. Furthermore, it uses windows
only calls like CopyMemory. FPC has this also in the windows unit.

Using lazarus I used the Delphi project converter tool and I had only to
change one line and set the project options to Delphi mode to get sftp
running. And it also breaks with an out of memory error after succesfully
logging in.

I attach the converted files for your perusal,

Ludo



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to