Thema: Delphi Ist der Thread schuld?

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#3

Re: Ist der Thread schuld?

  Alt 14. Okt 2008, 21:19
Hi,

Alsooo... Der Callstack:

Delphi-Quellcode:
TCellularAutomatonEx.SetWorld(0,2,$26FC63C)
TWatorObject.Move(???)
TWatorSimulation.Calculate
TCustomCellularAutomaton.DoOnCalculate(???)
TCellThread.DoCalculate
TCellThread.Execute
Ich glaube die Zeile ausgemacht zu haben, an der es passiert:

TWatorObject.Move:

Delphi-Quellcode:
// FWorld: Array of Array of Pointer;
FWorld[fy,fx] := Self;
Setter:

Delphi-Quellcode:
procedure TCellularAutomatonEx.SetWorld(y, x: Integer;
  const Value: Pointer);
begin
  FEgal := 24; // <--- AV
  // ...
end;
Ehm... Ja warum ich das in nem Thread mache wenn ich eh alles Synchronisiere... Ehm keine Ahnung
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat