谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
! y& T; E2 k1 r! R' _4 Q% vbegin model initialization function$ p; I$ f7 j4 ~- V
create 1 load of load type L_null to P_Creation2
+ J$ J3 ?5 A6 B& ]- K# {. I create 1 load of load type L_null to P_Creation3) E5 M( J) Y$ l, C. U% h
create 1 load of load type L_null to P_Creation4
$ l$ b* P- D, p9 l return true / s0 V l* b& U$ k
end' |; ?1 O$ V' g" k% C# a, H. p( G
7 ` t# ~' s; Q6 A+ W) `- M1 s% Bbegin P_Creation2 arriving procedure# G& |$ i. O4 \% s( A4 f
while 1=1 do
6 C: }4 [+ j1 @; ]! P } begin, m/ [3 w0 }; o, F" \% ^# w0 @
wait for 1 sec
* C5 w/ B! }. F! p9 [3 F4 j: }( v create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
! c, {. Q. d$ m7 \- v+ m# K end- i$ V7 o @" T7 {
end
% [& ?9 f& G. K! N( N: x9 k1 E& y7 [, Y3 O" q, x
begin P_Creation3 arriving procedure" F. {) m* \/ ^! E# X" S
while 1=1 do4 i8 f& T3 O" E6 W; Z! I/ `
begin& @ B+ t8 b a2 P
wait for 1 sec
+ C% _3 g, {6 b1 ~& A create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die) j+ ~, [6 a: h0 P' j
end
P$ o! S# ~0 q, xend . @6 e+ E% F% J8 H' |; n' M i
; r U3 _$ Q& v, g5 @- W( R
begin P_Creation4 arriving procedure' J5 @9 n0 l5 V) ]- M; e$ @8 A
while 1=1 do4 x3 G6 ?& h+ k; D" b! @
begin! F/ i x5 s ^: ?: W
wait for 1 sec \& E: Z- E6 N
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die). G6 \; `0 s4 c. F9 p: Y' W
end. I. B+ V, M. Y, c: c
end
, ?$ J1 B* I7 M1 Z6 u
, L! x, X+ z6 T9 s) b# h1 d但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |