Board index » delphi » Runtime Error 6

Runtime Error 6

Hallo,

wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
Borland Pascal 7.0.

Tsch?

Devid

PS: Bitte auch per Mail an d.e...@berlin.snafu.de

 

Re:Runtime Error 6


Using a dodgy translator. In English this is:

"Whoever can help me, as that Runtime mistakes 6 (invalid file-handle)
originate as well as as he/it can become beseitigt/korrigiert. I Work with
Turbo Pascal 7"

i.e. What in the hell is a run-time error 6?
--
Later
Barry Mercer
barry.mer...@btinternet.com

Quote
Devid Espenschied wrote in message <6l45v1$ic...@unlisys.unlisys.net>...
>Hallo,

>wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
>entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
>Borland Pascal 7.0.

>Tsch?

>Devid

>PS: Bitte auch per Mail an d.e...@berlin.snafu.de

Re:Runtime Error 6


Quote
Devid Espenschied wrote:

> Hallo,

> wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
> entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
> Borland Pascal 7.0.
> Tsch? Devid

The DOS error # 6 says that the file handle is invalid.
It seems that "somebody" destroyed the File or Text
variable after Reset or ReWrite.

Re:Runtime Error 6


Und wie kann nun der Fehler vielleicht behoben werden ?,
da wir die variable nicht (absichtlich/bewu?t) manipulieren !

Mfg

        Sven Bergemann

Ing. Franz Glaser <meg-gla...@eunet.at> schrieb im Beitrag
<3575E276.EADCC...@eunet.at>...

Quote
> Devid Espenschied wrote:

> > Hallo,

> > wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
> > entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
> > Borland Pascal 7.0.
> > Tsch? Devid

> The DOS error # 6 says that the file handle is invalid.
> It seems that "somebody" destroyed the File or Text
> variable after Reset or ReWrite.

Re:Runtime Error 6


Hallo,

wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
Borland Pascal 7.0.

Tsch?

Devid

PS: Bitte auch per Mail an d.e...@berlin.snafu.de

Re:Runtime Error 6


In article <01bd8f47$c8a2bbc0$57a415c3@svenberg>, Sven Bergemann
<sven.bergem...@berlin.snafu.de> writes

Quote

>wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
>entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
>Borland Pascal 7.0.

Please read replies to your previous posting.

--
Pedt Scragg                    <newsmas...@pedt.demon.co.uk>

Never curse the Crocodile's mother before crossing the river

Re:Runtime Error 6


In article <6l9chp$mk...@uranium.btinternet.com>, Barry Mercer
<barry.mer...@btinternet.com> writes

Quote

>i.e. What in the hell is a run-time error 6?

Run Error 6 is "Invalid File Handle".

If this occurs when your program has opened the file, it probably means
that you have overwritten the memory that includes the file handle
lcation due to a faulty pointer.

--
Pedt Scragg                    <newsmas...@pedt.demon.co.uk>

Never curse the Crocodile's mother before crossing the river

Re:Runtime Error 6


Trans: And how the hell do I fix it?
Since I don't manipulate the variable intentionally

--
Later
Barry Mercer
barry.mer...@btinternet.com

Quote
Sven Bergemann wrote in message <01bd8f47$972b76e0$57a415c3@svenberg>...
>Und wie kann nun der Fehler vielleicht behoben werden ?,
>da wir die variable nicht (absichtlich/bewu?t) manipulieren !

>Mfg

> Sven Bergemann

>Ing. Franz Glaser <meg-gla...@eunet.at> schrieb im Beitrag
><3575E276.EADCC...@eunet.at>...
>> Devid Espenschied wrote:

>> > Hallo,

>> > wer kann mir helfen, wie der Runtime Fehler 6 (ungltiges Datei-Handle)
>> > entsteht bzw. wie er beseitigt/korrigiert werden kann. Ich arbeite mit
>> > Borland Pascal 7.0.
>> > Tsch? Devid

>> The DOS error # 6 says that the file handle is invalid.
>> It seems that "somebody" destroyed the File or Text
>> variable after Reset or ReWrite.

Re:Runtime Error 6


In article <6le41o$fo...@mendelevium.btinternet.com>, Barry Mercer
<barry.mer...@btinternet.com> writes

Quote
>Trans: And how the hell do I fix it?
>Since I don't manipulate the variable intentionally

>Sven Bergemann wrote in message <01bd8f47$972b76e0$57a415c3@svenberg>...
>>Und wie kann nun der Fehler vielleicht behoben werden ?,
>>da wir die variable nicht (absichtlich/bewu?t) manipulieren !

>>Mfg

If you have the standalone de{*word*81}, TD, you could set a global
breakpoint on changed memory location and use the file variable as the
location. The program will then break every time the information is
updated and you should find where the memory allocated for the file
variable is being overwritten.

If you only have debugging in the IDE available to you, you will
probably have to set a watch on the file variable. If your file variable
is ff then set a watch of

 filerec(ff).handle

If you file variable is a textfil, then use

 textrec(ff).handle

When you step though the program, you can watch for this value changing
after you have opened the file.

--
Pedt Scragg                    <newsmas...@pedt.demon.co.uk>

Never curse the Crocodile's mother before crossing the river

Other Threads