1
I’m getting the bug:
Acess Violation at address 00420214. Write of address 0000000E.
When creating a Thread. The error line is exactly the creation line (marked with '>').
In uses
I added the Unit3(thread)
In var
, i defined:
DownThread : TMeuDownloader;
And then, at one click of the button, I set:
>DownThread := DownThread.Create(True);
DownThread.FreeOnTerminate := true;
DownThread.Priority := tpNormal;
DownThread.Resume;
And the thread:
unit Unit3;
interface
uses
Classes;
type
TMeuDownloader = class(TThread)
private
protected
procedure Execute; override;
end;
implementation
uses Unit1;
procedure TMeuDownloader.Execute;
begin
end;
end.
Even if the thread is empty, it gives the error.
Error gives before using "Resume".
– Gabriel Sales