blob: 26abd613919c9e82f9d1107ee77de2761d71a988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ %skiptarget=go32v2 }
{$mode objfpc}
{$s+}
uses
{$ifdef unix}
cthreads,
{$endif}
classes;
type
tmythread = class(tthread)
procedure execute; override;
end;
procedure tmythread.execute;
var
a: array[0..1024*1024-1] of byte;
begin
fillchar(a,sizeof(a),123);
end;
var
t: tmythread;
begin
t:=tmythread.create(false,1024*1024+128*1024);
t.waitfor;
if assigned(t.fatalexception) then
halt(1);
t.free;
end.
|