代碼部分如下:
procedure TMBMessageThread1.Execute;
begin
  try
    FreeOnTerminate := true;
    ....
線程執行上述第一條語句就報如下錯誤:---------------------------
Debugger Exception Notification
---------------------------
Project MbMessage.exe raised exception class EInvalidOperation with message 'Canvas does not allow drawing'. Process stopped. Use Step or Run to continue.
---------------------------
OK   Help   
---------------------------