谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
3 y- J( g$ A7 Ybegin model initialization function
8 _! B' j! w, F create 1 load of load type L_null to P_Creation2
+ b, Q- n$ }: }9 ?, }6 p6 P; D, P create 1 load of load type L_null to P_Creation3
( S o4 y/ X- l create 1 load of load type L_null to P_Creation4
( Q: Z1 }; v5 A0 ~7 d return true - U8 h. F2 n! N* r( A% P
end
0 l, B% t+ ~1 U9 }. g; N2 l+ d
% C7 X6 g2 L# x0 w- D8 hbegin P_Creation2 arriving procedure
1 z2 K2 ?# |2 T& J& Twhile 1=1 do
1 Z% J3 q* P( p/ d begin! ~. F: }% w+ N* g1 I( |
wait for 1 sec
* a" z, V+ r: x! _- K8 v3 M create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
6 `3 O7 {9 G, f- s; a5 @ end9 C( m2 X+ [* Q
end
( y0 e6 O( y b3 m& h/ M" P x
3 ]; n g- ~2 f- dbegin P_Creation3 arriving procedure. X6 {3 d$ l$ \/ J9 _
while 1=1 do* u+ i( X3 K7 U' P3 C
begin0 l9 Y. X/ i$ f* W% e
wait for 1 sec/ ~! c8 ]# q3 z2 p# M0 [; E
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die), X5 O* o! ^# N, H
end
$ W5 j3 U0 n: c' h1 Iend
1 K0 X- d# G5 _6 y+ W2 K
9 z7 V6 K7 O( H1 a% v4 L8 Lbegin P_Creation4 arriving procedure$ S! t9 L) @* p0 s; B
while 1=1 do9 c V, I8 s) b3 P
begin, H; T- s8 W$ f. a
wait for 1 sec
$ o$ ]) X1 ^; V- Y1 |' S create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
8 Z' W: u; |4 n9 D. a3 k) M end
: L+ O8 P$ e, _9 T bend
: Y; @; I C5 f
7 }, C7 \" h( W但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |