revalNG / omnithreadlibrary

Automatically exported from code.google.com/p/omnithreadlibrary
0 stars 0 forks source link

app_15_TaskGroup.exe : Access violation if all threads are stopped #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start app_15_TaskGroup.exe
2. Press 'stop tasks'

What is the expected output? What do you see instead?

Expected: 'All stopped'.

Instead: Access violation at address 0048D7C4 in module 
'app_15_TaskGroup.exe'. Read of address 00000000.

What version of the product are you using? On what operating system?
v1.03: 2009-02-08

Please provide any additional information below.
Checking if FTaskGroup is assigned fixes the problem.

procedure TfrmTestTaskGroup.btnStopTasksClick(Sender: TObject);
begin
  if Assigned(FTaskGroup) then
  begin
    FTaskGroup.TerminateAll;
    FTaskGroup := nil;
    Log('All stopped');
  end
  else
    Log('Nothing to stop');
end;

Original issue reported on code.google.com by SuperNiFF@gmail.com on 5 Oct 2009 at 6:01

GoogleCodeExporter commented 8 years ago
Fixed in 1.04.

Original comment by gabr42 on 13 Nov 2009 at 7:10