Page 1 of 1

directory not initialized

Posted: Sun Nov 10, 2024 3:48 pm
by artnat
I show a code snippet, that does not work:

Image

stvz is a global string with a valid directory name, as shown by debug. #stvz is -1.

The program crashes in line 212 with the message: The specified #Directory is not initialized. I Have no idea, what is wrong.

Re: directory not initialized

Posted: Sun Nov 10, 2024 5:15 pm
by Kiffi
It is better if you post the code snippet here.

Re: directory not initialized

Posted: Sun Nov 10, 2024 5:19 pm
by SPH
@artnat:
We want to see your code. It's better than an image that doesn't display anyway...

Re: directory not initialized

Posted: Sun Nov 10, 2024 11:08 pm
by Axolotl
artnat wrote: Sun Nov 10, 2024 3:48 pm stvz is a global string with a valid directory name, as shown by debug. #stvz is -1.
I am not sure that it is a valid dir. I know -1 as the return value of FileSize() for missing file. A valid dir returns -2,
I third the code request.