Registriert seit: 4. Nov 2004
Ort: Basel (CH)
76 Beiträge
Delphi 2007 Professional
|
Critical Sections
7. Jan 2008, 14:50
Ich hab nur ne kurze Frage:
Wieso endet dies in einer Endlosschleife:
Delphi-Quellcode:
FCs := TCriticalSection.Create;
procedure test;
begin
FCs.Enter;
test;
FCS.Leave;
end;
Meiner Meinung nach sollte dies ein Dead-Lock ergeben. Oder habe ich da was falsch verstanden?
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
|