What does this error mean?

    2 answers 2

    Access Violation are jambs with memory access. Attempting to read / write where you can not write (in your case, you read the memory by $ FFFFFFE4 adrem).

    As a rule, this means that you did not initialize the object properly before working with it, either you already managed to free it and call its method, or crawled into someone else's memory (for example, when working with dynamic arrays) and thus corrupted the object.

    It will help start in debug mode, identify the place where an exception is thrown, analyze the code for the memory manipulation that provoked the exception.

    • I only worked with the file. I'll try to double-check my code. - delphikettle
    • Well, show how you worked. The fact that you know that you worked only with the file narrows down the scope of the search problem. - Nofate
    • > Starting in debug mode will help Screenshot from the debugger. If in the first case, the text means exactly what is written, then here you can guess until December 21st. I put 100 points on the fact that the interface has been released. - karmadro4
    • An error occurs in this place of the program: FileCheck.Create (GetCurrentDir + '\ run.fch', fmCreate); FileCheck.Read (state, 4); if state = 'show' then begin MainForm.Show; FileCheck.Seek (0, soFromBeginning); FileCheck.Write ('', 4) end; FileCheck.Free; - delphikettle
    • one
      FileCheck , I suppose, is of type TFileStream ? Then the assumptions are correct, and you work with an uncreated object. FileCheck.Create(GetCurrentDir + 'run.fch', fmCreate); - the constructor is never called on the object itself (the object has not yet been created). Fix on FileCheck := TFileStream.Create(GetCurrentDir + 'run.fch', fmCreate); and everything will turn out. - Nofate

    access violation at address 00403AA3 in the screen.exe module. Reading address FFFFFF4;

    Obviously with memory something namudil. The code is better laid out where the error is triggered.

    • 2
      > access violation Can "access violation"? - Nofate