Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2403 > unrolled thread
| Started by | "Harry B." <bongoplayer@gmail.com> |
|---|---|
| First post | 2011-11-09 16:08 +0100 |
| Last post | 2011-11-12 09:09 +0100 |
| Articles | 9 — 6 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Cryptic Error Message from CFtp "Harry B." <bongoplayer@gmail.com> - 2011-11-09 16:08 +0100
Re: Cryptic Error Message from CFtp "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-11-10 02:12 -0800
Re: Cryptic Error Message from CFtp "Jamal" <vodotnet_nospam@yahoo.com> - 2011-11-10 09:40 -0500
Re: Cryptic Error Message from CFtp "Francesco F." <francescangeli.f@tiscali.it> - 2011-11-09 17:52 +0100
Re: Cryptic Error Message from CFtp "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-11-10 08:03 -0800
Re: Cryptic Error Message from CFtp "Harry B." <bongoplayer@gmail.com> - 2011-11-10 18:00 +0100
Re: Cryptic Error Message from CFtp "Karl-Heinz" <invalid@invalid.invalid> - 2011-11-10 18:40 +0100
Re: Cryptic Error Message from CFtp "Willie Moore" <williem@wmconsulting.com> - 2011-11-10 12:33 -0600
Re: Cryptic Error Message from CFtp "Harry B." <bongoplayer@gmail.com> - 2011-11-12 09:09 +0100
| From | "Harry B." <bongoplayer@gmail.com> |
|---|---|
| Date | 2011-11-09 16:08 +0100 |
| Subject | Cryptic Error Message from CFtp |
| Message-ID | <j9e517$641$1@news01.versatel.de> |
In an application CFtp:OpenFile(cFile, ...) returns a NULL_PTR So CFtp:Error is 0x00002EE3 (12003) and CFtp:ErrorMsg gives "Erweiterter Fehler" (Extended Error). Only with debugging this I found the reason in cFile having the wrong contence. Is there another way to find what "Extended Error" means more exactly? TIA, Harry B.
[toc] | [next] | [standalone]
| From | "richard.townsendrose" <richard.townsendrose@gmail.com> |
|---|---|
| Date | 2011-11-10 02:12 -0800 |
| Message-ID | <952f5074-326a-40b1-82bf-01a832ee0b28@n6g2000vbg.googlegroups.com> |
| In reply to | #2403 |
Harry
why dont you make sure that the file exists first ...
here's what we do when tidying up after ftp sessions ... remebering
that this is after the recipient has acknowledge that they have
downloaded all they ought to have done.
richard
ps dont worry about curious method names ...
METHOD GetDelDirs() CLASS FTPSender
LOCAL aDir:={} AS ARRAY
LOCAL cDir:='' AS STRING
LOCAL cLoc:='' AS STRING
LOCAL cStage AS STRING
// clear whats there
SELF:aDelDirs:={}
BEGIN SEQUENCE
// connect
cStage:='Connecting'
IF SELF:ConnectRemote(SELF:RemoteHost, SELF:UserName, SELF:PassWord)
SELF:lConnected:=TRUE
SELF:Owner:FTPMsg:='Connected'
ELSE
SELF:Owner:FTPMsg:='Failed to connect - ' + SELF:ErrorMsg
SELF:lConnected:=FALSE
BREAK
ENDIF
// get current dir
cStage:='Getting Logon Directory'
cDir:=SELF:getcurDir()
IF Empty(cDir)
SELF:Owner:FTPMsg:='Failed to Get Directory - ' + SELF:ErrorMsg
BREAK
ELSE // have got base dir
// change to specified location,
cLoc:=SELF:cLocation
aDir:=SELF:Directory()
IF AScan(aDir, {|aItem|Upper(aItem[1]) == Upper(cLoc)}) == 0
SELF:Owner:FTPMsg:='Failed to find upload directory - ' +
SELF:ErrorMsg
BREAK
ENDIF
cStage:='Setting upload Directory'
SELF:SetCurDir(cLoc)
// now get list of dirs
aDir:=SELF:Directory("*." , FA_DIRECTORY )
SELF:Owner:FTPMsg:='Found ' + NTrim(ALen(ADir)) + ' Dirs'
ENDIF
// disconnect
cStage:='Disconnecting Files'
IF SELF:CloseRemote()
SELF:lConnected:=FALSE
ENDIF
RECOVER
SELF:CloseRemote()
TextBoxEnh{SELF:Owner,'Info','FTP Error ' + cStage + ', ' +
SELF:ErrorMsg }:Show()
END SEQUENCE
// SELF:Owner:FTPMsg:=''
RETURN aDir
METHOD RemoveDirs() CLASS FTPSender
LOCAL aKilled:={} AS ARRAY
LOCAL aDir:={} AS ARRAY
LOCAL aFiles:={} AS ARRAY
LOCAL cDir:='' AS STRING
LOCAL cLoc:='' AS STRING
LOCAL cStage AS STRING
LOCAL n,m AS DWORD
BEGIN SEQUENCE
// connect
cStage:='Connecting'
IF SELF:ConnectRemote(SELF:RemoteHost, SELF:UserName, SELF:PassWord)
SELF:lConnected:=TRUE
SELF:Owner:FTPMsg:='Connected'
ELSE
SELF:Owner:FTPMsg:='Failed to connect - ' + SELF:ErrorMsg
SELF:lConnected:=FALSE
BREAK
ENDIF
// get current dir
cStage:='Getting Logon Directory'
cDir:=SELF:getcurDir()
IF Empty(cDir)
SELF:Owner:FTPMsg:='Failed to Get Directory - ' + SELF:ErrorMsg
BREAK
ELSE // have got base dir
// change to specified location, if ! exist, create it
cLoc:=SELF:cLocation
aDir:=SELF:Directory()
IF AScan(aDir, {|aItem|Upper(aItem[1]) == Upper(cLoc)}) == 0
SELF:Owner:FTPMsg:='Failed to find upload directory - ' +
SELF:ErrorMsg
BREAK
ENDIF
cStage:='Changing to upload Directory'
SELF:SetCurDir(cLoc)
// now get list of dirs and check if for removal
aDir:=SELF:Directory()
FOR n:=1 TO ALen(SELF:aDelDirs)
cDir:=SELF:aDelDirs[n]
IF AScan(aDir, {|ax|AllTrim(ax[F_NAME]) == cDir}) > 0
// change to dir
cStage:='Changing to Transmittal Directory'
SELF:SetCurDir(cDir)
// remove files
cStage:='Removing Transmittal Files'
aFiles:=SELF:Directory()
FOR m:= 1 TO ALen(aFiles)
IF ! SELF:DeleteFile(aFiles[m, F_NAME])
BREAK
ENDIF
NEXT
// change back up
SELF:SetCurDir("..")
// remove dir
cStage:='Removing Transmittal Directory'
IF SELF:RemoveDir(cDir)
AAdd(aKilled, cDir)
ELSE
BREAK
ENDIF
ENDIF
NEXT
ENDIF
// disconnect
cStage:='Disconnecting Files'
IF SELF:CloseRemote()
SELF:lConnected:=FALSE
ENDIF
RECOVER
SELF:CloseRemote()
TextBoxEnh{SELF:Owner,'Info','FTP Error ' + cStage + ', ' +
SELF:ErrorMsg }:Show()
END SEQUENCE
SELF:Owner:FTPMsg:=''
RETURN aKilled
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Date | 2011-11-10 09:40 -0500 |
| Message-ID | <j9gnos$fpa$1@dont-email.me> |
| In reply to | #2410 |
Richard,
Why do you always write 99% of your postings in lower case?
Is it a bad habit or is there no Shift key on your keyboard? <vbg>
It just makes it harder to read!
Jamal
"richard.townsendrose" wrote in message
news:952f5074-326a-40b1-82bf-01a832ee0b28@n6g2000vbg.googlegroups.com...
Harry
why dont you make sure that the file exists first ...
here's what we do when tidying up after ftp sessions ... remebering
that this is after the recipient has acknowledge that they have
downloaded all they ought to have done.
richard
ps dont worry about curious method names ...
METHOD GetDelDirs() CLASS FTPSender
LOCAL aDir:={} AS ARRAY
LOCAL cDir:='' AS STRING
LOCAL cLoc:='' AS STRING
LOCAL cStage AS STRING
// clear whats there
SELF:aDelDirs:={}
BEGIN SEQUENCE
// connect
cStage:='Connecting'
IF SELF:ConnectRemote(SELF:RemoteHost, SELF:UserName, SELF:PassWord)
SELF:lConnected:=TRUE
SELF:Owner:FTPMsg:='Connected'
ELSE
SELF:Owner:FTPMsg:='Failed to connect - ' + SELF:ErrorMsg
SELF:lConnected:=FALSE
BREAK
ENDIF
// get current dir
cStage:='Getting Logon Directory'
cDir:=SELF:getcurDir()
IF Empty(cDir)
SELF:Owner:FTPMsg:='Failed to Get Directory - ' + SELF:ErrorMsg
BREAK
ELSE // have got base dir
// change to specified location,
cLoc:=SELF:cLocation
aDir:=SELF:Directory()
IF AScan(aDir, {|aItem|Upper(aItem[1]) == Upper(cLoc)}) == 0
SELF:Owner:FTPMsg:='Failed to find upload directory - ' +
SELF:ErrorMsg
BREAK
ENDIF
cStage:='Setting upload Directory'
SELF:SetCurDir(cLoc)
// now get list of dirs
aDir:=SELF:Directory("*." , FA_DIRECTORY )
SELF:Owner:FTPMsg:='Found ' + NTrim(ALen(ADir)) + ' Dirs'
ENDIF
// disconnect
cStage:='Disconnecting Files'
IF SELF:CloseRemote()
SELF:lConnected:=FALSE
ENDIF
RECOVER
SELF:CloseRemote()
TextBoxEnh{SELF:Owner,'Info','FTP Error ' + cStage + ', ' +
SELF:ErrorMsg }:Show()
END SEQUENCE
// SELF:Owner:FTPMsg:=''
RETURN aDir
METHOD RemoveDirs() CLASS FTPSender
LOCAL aKilled:={} AS ARRAY
LOCAL aDir:={} AS ARRAY
LOCAL aFiles:={} AS ARRAY
LOCAL cDir:='' AS STRING
LOCAL cLoc:='' AS STRING
LOCAL cStage AS STRING
LOCAL n,m AS DWORD
BEGIN SEQUENCE
// connect
cStage:='Connecting'
IF SELF:ConnectRemote(SELF:RemoteHost, SELF:UserName, SELF:PassWord)
SELF:lConnected:=TRUE
SELF:Owner:FTPMsg:='Connected'
ELSE
SELF:Owner:FTPMsg:='Failed to connect - ' + SELF:ErrorMsg
SELF:lConnected:=FALSE
BREAK
ENDIF
// get current dir
cStage:='Getting Logon Directory'
cDir:=SELF:getcurDir()
IF Empty(cDir)
SELF:Owner:FTPMsg:='Failed to Get Directory - ' + SELF:ErrorMsg
BREAK
ELSE // have got base dir
// change to specified location, if ! exist, create it
cLoc:=SELF:cLocation
aDir:=SELF:Directory()
IF AScan(aDir, {|aItem|Upper(aItem[1]) == Upper(cLoc)}) == 0
SELF:Owner:FTPMsg:='Failed to find upload directory - ' +
SELF:ErrorMsg
BREAK
ENDIF
cStage:='Changing to upload Directory'
SELF:SetCurDir(cLoc)
// now get list of dirs and check if for removal
aDir:=SELF:Directory()
FOR n:=1 TO ALen(SELF:aDelDirs)
cDir:=SELF:aDelDirs[n]
IF AScan(aDir, {|ax|AllTrim(ax[F_NAME]) == cDir}) > 0
// change to dir
cStage:='Changing to Transmittal Directory'
SELF:SetCurDir(cDir)
// remove files
cStage:='Removing Transmittal Files'
aFiles:=SELF:Directory()
FOR m:= 1 TO ALen(aFiles)
IF ! SELF:DeleteFile(aFiles[m, F_NAME])
BREAK
ENDIF
NEXT
// change back up
SELF:SetCurDir("..")
// remove dir
cStage:='Removing Transmittal Directory'
IF SELF:RemoveDir(cDir)
AAdd(aKilled, cDir)
ELSE
BREAK
ENDIF
ENDIF
NEXT
ENDIF
// disconnect
cStage:='Disconnecting Files'
IF SELF:CloseRemote()
SELF:lConnected:=FALSE
ENDIF
RECOVER
SELF:CloseRemote()
TextBoxEnh{SELF:Owner,'Info','FTP Error ' + cStage + ', ' +
SELF:ErrorMsg }:Show()
END SEQUENCE
SELF:Owner:FTPMsg:=''
RETURN aKilled
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f@tiscali.it> |
|---|---|
| Date | 2011-11-09 17:52 +0100 |
| Message-ID | <j9gr98$6po$1@news.albasani.net> |
| In reply to | #2412 |
Jamal,
I know it's not up to me to answer, but...
Helping someone always requires a little effort and/or sacrifice!
Bye,
Francesco
Il 10/11/2011 15:40, Jamal ha scritto:
> Richard,
>
> Why do you always write 99% of your postings in lower case?
> Is it a bad habit or is there no Shift key on your keyboard? <vbg>
>
> It just makes it harder to read!
>
> Jamal
>
>
> "richard.townsendrose" wrote in message
> news:952f5074-326a-40b1-82bf-01a832ee0b28@n6g2000vbg.googlegroups.com...
>
> Harry
>
> why dont you make sure that the file exists first ...
>
> here's what we do when tidying up after ftp sessions ... remebering
> that this is after the recipient has acknowledge that they have
> downloaded all they ought to have done.
>
> richard
>
> ps dont worry about curious method names ...
>
> METHOD GetDelDirs() CLASS FTPSender
> LOCAL aDir:={} AS ARRAY
> LOCAL cDir:='' AS STRING
> LOCAL cLoc:='' AS STRING
> LOCAL cStage AS STRING
>
> // clear whats there
> SELF:aDelDirs:={}
>
> BEGIN SEQUENCE
>
> // connect
> cStage:='Connecting'
> IF SELF:ConnectRemote(SELF:RemoteHost, SELF:UserName, SELF:PassWord)
> SELF:lConnected:=TRUE
> SELF:Owner:FTPMsg:='Connected'
> ELSE
> SELF:Owner:FTPMsg:='Failed to connect - ' + SELF:ErrorMsg
> SELF:lConnected:=FALSE
> BREAK
> ENDIF
>
> // get current dir
> cStage:='Getting Logon Directory'
> cDir:=SELF:getcurDir()
> IF Empty(cDir)
> SELF:Owner:FTPMsg:='Failed to Get Directory - ' + SELF:ErrorMsg
> BREAK
> ELSE // have got base dir
> // change to specified location,
> cLoc:=SELF:cLocation
> aDir:=SELF:Directory()
> IF AScan(aDir, {|aItem|Upper(aItem[1]) == Upper(cLoc)}) == 0
> SELF:Owner:FTPMsg:='Failed to find upload directory - ' +
> SELF:ErrorMsg
> BREAK
> ENDIF
>
> cStage:='Setting upload Directory'
> SELF:SetCurDir(cLoc)
>
> // now get list of dirs
> aDir:=SELF:Directory("*." , FA_DIRECTORY )
> SELF:Owner:FTPMsg:='Found ' + NTrim(ALen(ADir)) + ' Dirs'
> ENDIF
>
> // disconnect
> cStage:='Disconnecting Files'
> IF SELF:CloseRemote()
> SELF:lConnected:=FALSE
> ENDIF
>
> RECOVER
>
> SELF:CloseRemote()
> TextBoxEnh{SELF:Owner,'Info','FTP Error ' + cStage + ', ' +
> SELF:ErrorMsg }:Show()
>
> END SEQUENCE
>
> // SELF:Owner:FTPMsg:=''
>
> RETURN aDir
> METHOD RemoveDirs() CLASS FTPSender
> LOCAL aKilled:={} AS ARRAY
> LOCAL aDir:={} AS ARRAY
> LOCAL aFiles:={} AS ARRAY
> LOCAL cDir:='' AS STRING
> LOCAL cLoc:='' AS STRING
> LOCAL cStage AS STRING
> LOCAL n,m AS DWORD
>
> BEGIN SEQUENCE
>
> // connect
> cStage:='Connecting'
> IF SELF:ConnectRemote(SELF:RemoteHost, SELF:UserName, SELF:PassWord)
> SELF:lConnected:=TRUE
> SELF:Owner:FTPMsg:='Connected'
> ELSE
> SELF:Owner:FTPMsg:='Failed to connect - ' + SELF:ErrorMsg
> SELF:lConnected:=FALSE
> BREAK
> ENDIF
>
> // get current dir
> cStage:='Getting Logon Directory'
> cDir:=SELF:getcurDir()
> IF Empty(cDir)
> SELF:Owner:FTPMsg:='Failed to Get Directory - ' + SELF:ErrorMsg
> BREAK
> ELSE // have got base dir
> // change to specified location, if ! exist, create it
> cLoc:=SELF:cLocation
> aDir:=SELF:Directory()
> IF AScan(aDir, {|aItem|Upper(aItem[1]) == Upper(cLoc)}) == 0
> SELF:Owner:FTPMsg:='Failed to find upload directory - ' +
> SELF:ErrorMsg
> BREAK
> ENDIF
>
> cStage:='Changing to upload Directory'
> SELF:SetCurDir(cLoc)
>
> // now get list of dirs and check if for removal
> aDir:=SELF:Directory()
> FOR n:=1 TO ALen(SELF:aDelDirs)
> cDir:=SELF:aDelDirs[n]
> IF AScan(aDir, {|ax|AllTrim(ax[F_NAME]) == cDir}) > 0
> // change to dir
> cStage:='Changing to Transmittal Directory'
> SELF:SetCurDir(cDir)
> // remove files
> cStage:='Removing Transmittal Files'
> aFiles:=SELF:Directory()
> FOR m:= 1 TO ALen(aFiles)
> IF ! SELF:DeleteFile(aFiles[m, F_NAME])
> BREAK
> ENDIF
> NEXT
> // change back up
> SELF:SetCurDir("..")
> // remove dir
> cStage:='Removing Transmittal Directory'
> IF SELF:RemoveDir(cDir)
> AAdd(aKilled, cDir)
> ELSE
> BREAK
> ENDIF
>
> ENDIF
> NEXT
> ENDIF
>
> // disconnect
> cStage:='Disconnecting Files'
> IF SELF:CloseRemote()
> SELF:lConnected:=FALSE
> ENDIF
>
> RECOVER
>
> SELF:CloseRemote()
> TextBoxEnh{SELF:Owner,'Info','FTP Error ' + cStage + ', ' +
> SELF:ErrorMsg }:Show()
>
> END SEQUENCE
>
> SELF:Owner:FTPMsg:=''
>
> RETURN aKilled
>
>
>
>
[toc] | [prev] | [next] | [standalone]
| From | "richard.townsendrose" <richard.townsendrose@gmail.com> |
|---|---|
| Date | 2011-11-10 08:03 -0800 |
| Message-ID | <a9f52fe2-d1c0-457e-8d99-2271dd8836f2@k10g2000yqn.googlegroups.com> |
| In reply to | #2413 |
Jamal My apologies ... its just that i am a single case man ... goes back to days of telex i guess ... i find that NOT deleting the original message a bit infuriating ... but may be it'll help harry .. richard
[toc] | [prev] | [next] | [standalone]
| From | "Harry B." <bongoplayer@gmail.com> |
|---|---|
| Date | 2011-11-10 18:00 +0100 |
| Message-ID | <j9gvui$s6r$1@news01.versatel.de> |
| In reply to | #2410 |
Thanks for the answer. > > why dont you make sure that the file exists first ... > That's not the point. I'd just want to know, if there is anymore I can get than only 'Extended Error'. -- Harry B.
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2011-11-10 18:40 +0100 |
| Message-ID | <9i2gnnFslgU1@mid.individual.net> |
| In reply to | #2403 |
Hi Harry, > In an application CFtp:OpenFile(cFile, ...) returns a NULL_PTR So > CFtp:Error is 0x00002EE3 (12003) and CFtp:ErrorMsg gives "Erweiterter > Fehler" (Extended Error). > > Only with debugging this I found the reason in cFile having the wrong > contence. > > Is there another way to find what "Extended Error" means more exactly? 12003 means ERROR_INTERNET_EXTENDED_ERROR according the docs http://msdn.microsoft.com/en-us/library/aa385465 you must call InternetGetLastResponseInfo() to retrieve the last error description or server response. http://msdn.microsoft.com/en-us/library/aa384717 taken from the InternetGetLastResponseInfo() remarks section : [...] The FTP protocols can return additional text information along with most errors. This extended error information can be retrieved by using the InternetGetLastResponseInfo function whenever GetLastError returns ERROR_INTERNET_EXTENDED_ERROR (occurring after an unsuccessful function call). [...] regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Willie Moore" <williem@wmconsulting.com> |
|---|---|
| Date | 2011-11-10 12:33 -0600 |
| Message-ID | <j9h5d1$ffe$1@speranza.aioe.org> |
| In reply to | #2416 |
Karl-Heinz, Good links. Thanks for sharing. Regards, Willie
[toc] | [prev] | [next] | [standalone]
| From | "Harry B." <bongoplayer@gmail.com> |
|---|---|
| Date | 2011-11-12 09:09 +0100 |
| Message-ID | <j9l9kk$f5r$1@news01.versatel.de> |
| In reply to | #2416 |
Karl-Heinz, thanks you the link! --Harry B.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web