谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
5 l" \: e4 ~; o- zbegin model initialization function
$ U+ G: `9 d8 w$ F' w. k create 1 load of load type L_null to P_Creation26 f* C2 V& G+ E( ?2 M, M
create 1 load of load type L_null to P_Creation3
* }' v& f7 ^( P3 a( ^& _ create 1 load of load type L_null to P_Creation4# T) Z2 b# o" [5 T$ s6 |
return true
6 k9 l0 V7 D9 R2 }end$ _5 i; H' P8 f
3 ?8 s7 b7 P3 \1 {. cbegin P_Creation2 arriving procedure
8 C# j+ k* c7 F6 \# |9 X* S* ^while 1=1 do2 h6 D7 E1 J. y! [
begin
6 G/ o* Y$ c# P. {; f wait for 1 sec- e" |3 a& L2 b7 L: ~1 @
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)0 b" w# N) C) ~ y8 V* I
end2 ]: O x- g$ E/ v
end
9 @( {3 \3 x3 N
# X/ }6 v. e0 Ibegin P_Creation3 arriving procedure
! h+ V+ ~" T( \3 J- S* c2 {% _while 1=1 do# z3 x: c% l, s
begin
8 g, p0 Q9 k* ^ wait for 1 sec2 n. I, a% `& q2 {5 ]- J. l
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)6 ^; ~5 |; o" F2 H* c. `5 J s
end# W# o/ Y( ~7 |9 f2 h& U; S: E
end
( j* h: N6 ]0 e) s# _5 S
5 s4 D4 \3 V$ a% ?& i/ r$ fbegin P_Creation4 arriving procedure
* i8 ], E2 U* N4 Q# w! J0 h$ ?while 1=1 do
, e, l% W! |& p begin+ q4 d2 P( l! {' ^
wait for 1 sec
% p! b: A: A1 D: ~# A: J/ M' A5 V create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
% S. D; o3 O$ s7 x- t$ k end
# C3 v$ y0 F6 L) F0 ]1 {end
: k* J4 f4 o5 U
1 @7 I% b2 U/ g h' Z+ S: v M" U2 f但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |