Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Dale Dedoroy
  Where is Dale Dedoroy?
 Bacolod City, Negros Occidental
 Philippines
 Dale Dedoroy
 To: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
Subject: RE: Error - Invalid Seek Offset
Thread ID: 190208 Message ID: 190303 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Network and Computer Management
Date: Wednesday, August 20, 2008 2:28:37 PM         
   



> Hi
>
> Please this is urgent. :-P
>
> We run a VFP 9 SP1 exe in Win2003 Terminal Services and of late we have been getting this error in our app that my error routines are unable to trap:
>
> Invalid Seek Offset
>
> I have a Form Level Error trap which is supposed to close the form down. If this does not I also have an On Error routine that logs the error and closes the form.
>
> I also have an OnShutdown routine. The error code in the form and/or OnError is supposed to reset this to allow the user to quit and this works perfectly in 99% of cases.
>
> However with this error both Error traps are bypassed and the VFP error dialog appears so I cannot turn off the OnShutdown and quit and the app just locks up.
>
> I know there is a connectivity issue on our network and our network guys are working on this.
>
> But from our side I want to be able to trap this error somehow so that the app can exit gracefully, since there is no point continuing with nil connectivity. So I need a way to trap this error and turn off my OnShutdown so the user can quit.
>
> I have searched on Google as well as here on Foxite but no solution.
>
> This is not dur to Index errors since we use SQLServer. It is a connectivity issue.
>
> Any ideas are appreciated.
>
>
> Another thing I tried, is to wrap my Form.Error code in a Try..Catch..EndTry block but the Catch never fires in the Error Event of the form.
>
> For example:
>
> Form::Error
>
>
LPARAMETERS nError, cMethod, nLine
> TRY
> 	WAIT WINDOW yipes
> CATCH
> 	WAIT WINDOW "CatchError is running"
> 	QUIT
> ENDTRY

>
> The form always stops on the Wait Window line with the error "Variable 'Yipes' not found. The error never triggers the CATCH.
>
> But if I move this code to MyError.PRG and execute
>
>
ON ERROR DO MyError.prg

>
> the TRY..CATCH..ENDTRY works as it should and VFP Quits.
>
> What is happening here?
>
>
> Bernard
>
> ** If you see someone without a smile, give em one of yours :) **
> My Blog 8-)

Hi Bernard,
Yes, it is a connection-triggered error. My hunch is, when VFP sends a request of OS service (in this case, a remote file connection), that's where the error occurs before the OS can send a reply back to VFP. Have you tried BINDEVENT() to trap this error?

ENTIRE THREAD

Error - Invalid Seek Offset Posted by Bernard Bout @ 8/20/2008 6:14:36 AM
RE: Error - Invalid Seek Offset Posted by Christof Wollenhaupt @ 8/20/2008 8:21:59 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/20/2008 6:32:43 PM
RE: Error - Invalid Seek Offset Posted by Christof Wollenhaupt @ 8/21/2008 9:47:10 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/22/2008 3:15:35 AM
RE: Error - Invalid Seek Offset Posted by Christof Wollenhaupt @ 8/22/2008 6:34:59 PM
RE: Error - Invalid Seek Offset Posted by Samir Ibrahim @ 8/20/2008 8:32:12 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/20/2008 6:33:42 PM
RE: Error - Invalid Seek Offset Posted by Richard Clarke @ 8/20/2008 9:57:58 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/20/2008 6:35:31 PM
RE: Error - Invalid Seek Offset Posted by Anil Sharma @ 8/20/2008 10:44:46 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/20/2008 6:37:37 PM
RE: Error - Invalid Seek Offset Posted by Anil Sharma @ 8/20/2008 7:11:03 PM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/21/2008 7:01:51 AM
RE: Error - Invalid Seek Offset Posted by Mike Yearwood @ 8/21/2008 3:59:07 PM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/22/2008 3:16:20 AM
RE: Error - Invalid Seek Offset Posted by Dale Dedoroy @ 8/20/2008 2:28:37 PM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/20/2008 6:40:24 PM
RE: Error - Invalid Seek Offset Posted by tushar @ 8/20/2008 6:59:17 PM
RE: Error - Invalid Seek Offset Posted by Dale Dedoroy @ 8/21/2008 3:53:54 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/21/2008 7:09:06 AM
RE: Error - Invalid Seek Offset Posted by suhas hegde @ 8/20/2008 10:11:24 PM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/21/2008 7:07:23 AM
RE: Error - Invalid Seek Offset Posted by suhas hegde @ 8/21/2008 9:31:41 AM
RE: Error - Invalid Seek Offset Posted by Anil Sharma @ 8/21/2008 2:05:10 PM
RE: Error - Invalid Seek Offset Posted by suhas hegde @ 8/21/2008 2:45:21 PM
RE: Error - Invalid Seek Offset Posted by Anil Sharma @ 8/21/2008 5:19:39 PM
RE: Error - Invalid Seek Offset Posted by suhas hegde @ 8/21/2008 6:53:02 PM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/22/2008 3:42:06 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/22/2008 4:00:34 AM
RE: Error - Invalid Seek Offset Posted by suhas hegde @ 8/22/2008 11:33:57 AM
RE: Error - Invalid Seek Offset Posted by suhas hegde @ 8/22/2008 7:03:26 PM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/23/2008 2:14:55 AM
RE: Error - Invalid Seek Offset Posted by Alex Grima @ 8/23/2008 11:04:35 AM
RE: Error - Invalid Seek Offset Posted by Bernard Bout @ 8/23/2008 4:20:22 PM
RE: Error - Invalid Seek Offset Posted by Alex Grima @ 8/23/2008 10:59:37 PM
RE: Error - Invalid Seek Offset Posted by Pete Sass @ 8/24/2008 3:35:12 PM