Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-06

Runtime error 87

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hans Mårtensson

The FreePascal User's guide has a list of the possible run time errors. But what if you encounter an error that is not on the list? Right now I would like to know the meaning of run time error 87. (Generated by a win32 program and possibly caused by a lot of calls to the seek funktion?)

Hans Maartensson

Michael Van Canneyt
to Hans Mårtensson
Show quoted text 5 lines
The FreePascal User's guide has a list of the possible run time errors. But what if you encounter an error that is not on the list? Right now I would like to know the meaning of run time error 87. (Generated by a win32 program and possibly caused by a lot of calls to the seek funktion?)

If the error is not in the list of run-time errors, it means it is an OS-specific error which is not translated to an equivalent Free Pascal error. You will have to look up the meaning of this error in the Windows API documentation.

Michael.

Hans Mårtensson
to Michael Van Canneyt
you wrote 10 lines
........ If the error is not in the list of run-time errors, it means it is an OS-specific error which is not translated to an equivalent Free Pascal error. You will have to look up the meaning of this error in the Windows API documentation. Michael.

OK, thank you.
There is an error number list in the Borland win32 Programmer's Reference. Is that the relevant one (when Windows is the OS)? Only some of the errors seem to be in accordance with the corresponding numbers in the FreePascal error list.

Hans Maartensson

Bernhard Steffen
to Hans Mårtensson
Hans Mårtensson wrote 5 lines
OK, thank you. There is an error number list in the Borland win32 Programmer's Reference. Is that the relevant one (when Windows is the OS)? Only some of the errors seem to be in accordance with the corresponding numbers in the FreePascal error list.

If this is a windows specific error code: have you tried "net helpmsg 87" ?

"net helpmsg ###" (replace ### with the error number) gives you *some* information on windows specific error codes, although the explanations are not always useful ;-( (but may be a starting point for google)

OTOH, error code 87 may also be some error code specific to the application you mentioned...

Bernhard

Armin Diehl
to Hans Mårtensson: OK, thank you. There is an error number list in the Borland win32 Programmer's Reference.…

try the "net helpmsg" command on a commandline:

C:\Program Files\FCW>net helpmsg 87

The parameter is incorrect.

Hans Mårtensson wrote 25 lines
At 13:25 11-06-2003 +0200, you wrote: >........ > >If the error is not in the list of run-time errors, it means it is an >OS-specific error which is not translated to an equivalent Free Pascal >error. You will have to look up the meaning of this error in the >Windows API documentation. > >Michael. > OK, thank you. There is an error number list in the Borland win32 Programmer's Reference. Is that the relevant one (when Windows is the OS)? Only some of the errors seem to be in accordance with the corresponding numbers in the FreePascal error list. Hans Maartensson _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Eduardo Morras
to Hans Mårtensson: The FreePascal User's guide has a list of the possible run time errors. But what if you…
you wrote 12 lines
The FreePascal User's guide has a list of the possible run time errors. But what if you encounter an error that is not on the list? Right now I would like to know the meaning of run time error 87. (Generated by a win32 program and possibly caused by a lot of calls to the seek funktion?) Hans Maartensson _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

This error code isn't new to me. It hits me when i tried to read/seek from a file bigger than 2Gb. The error showed only when i tried to work with the file, not when opened it. Breaking the file in smaller chunks solutioned the problem.

HTH

----------------------------------------------------------------------------------------------------------------------------- La diferencia entre la teoria y la practica es que en teoria no hay, pero en la practica si

Hans Mårtensson
to Eduardo Morras
you wrote 19 lines
At 12:00 11/06/2003 +0200, you wrote: >The FreePascal User's guide has a list of the possible run time errors. But >what if you encounter an error that is not on the list? >Right now I would like to know the meaning of run time error 87. >(Generated by a win32 program and possibly caused by a lot of calls to the >seek funktion?) > >Hans Maartensson > This error code isn't new to me. It hits me when i tried to read/seek from a file bigger than 2Gb. The error showed only when i tried to work with the file, not when opened it. Breaking the file in smaller chunks solutioned the problem. HTH

I think you have hit the point. The error occured for me in a program that had a lot of calls to the seek procedure with a large file. I worked around the problem by letting the program read a chunk of the file to the memory and then pick the data to be used from memory, before reading a new chunk. I thought at first that I could tell the OS which data I wanted and then let the OS figure out how much reading from disk to buffers were necessary. But it looks like Windows cannot handle a lot of requests and/or large files.

Hans Maartensson