CnPack Forum


 
Subject: 调试信息查看器输出遗漏
npc8
灌水科科长
Rank: 3Rank: 3



UID 65881
Digest Posts 0
Credits 115
Posts 37
点点分 115
Reading Access 10
Registered 2011-5-26
Status Offline
Post at 2015-5-13 18:21  Profile | Blog | P.M. 
调试信息查看器输出遗漏

cndebug关闭情况下,按button1,cndebug输出会遗漏,只输出”Work1Start“或者“Work2Start”,OutputDebugString输出正常

qworker来自 http://blog.qdac.cc/?page_id=139

unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs,qworker,CnDebug, Vcl.StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    procedure WorkA(AJob: PQJob);
    procedure WorkB(AJob: PQJob);
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.WorkA(AJob: PQJob);
begin
  CnDebugger.LogMsg('Work1Start...');
  OutputDebugString('Work1Start...');
end;

procedure TForm1.WorkB(AJob: PQJob);
begin
  CnDebugger.LogMsg('Work2Start...');
  OutputDebugString('Work2Start...');
end;


procedure TForm1.Button1Click(Sender: TObject);
begin
  Workers.LongtimeJob(WorkA, nil);
  Workers.LongtimeJob(WorkB, nil);
end;

end.
Top
 




All times are GMT++8, the time now is 2024-11-22 19:49

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.012161 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP