Skip to content

Commit

Permalink
bug fix kludge - fix IDE hang in debug mode by calling NameThreadForD…
Browse files Browse the repository at this point in the history
…ebugging() (no idea why this works)
  • Loading branch information
w7sst committed Sep 30, 2022
1 parent efd8a17 commit f3e2d0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions VCL/SndCustm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ procedure TCustomSoundInOut.DoSetEnabled(AEnabled: boolean);
FThread:= TWaitThread.Create(true);
FThread.FreeOnTerminate:= true;
FThread.Owner := Self;
//FThread.Priority := tpTimeCritical;
//start
FThread.Priority := tpTimeCritical; // don't starve the WaveOut device
FThread.NameThreadForDebugging('TWaitThread'); // without this, IDE will hang
//start audio output device
FEnabled:= true;
try
Start;
Expand Down

0 comments on commit f3e2d0d

Please sign in to comment.