谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
" \: v% Y: x3 b$ gbegin model initialization function
; l. }9 }; Y2 O- M5 g; u0 r create 1 load of load type L_null to P_Creation26 }4 _/ j. I% T6 y8 i/ }5 q+ I" {
create 1 load of load type L_null to P_Creation3
* p; U6 p1 e8 G" E: P) x& s0 \ create 1 load of load type L_null to P_Creation4% c" B" {1 J( w) i* I+ f
return true
7 _. u) ?9 f, J/ {end! g' p% J/ Q, i) D6 }
( ^3 O4 X5 h, @1 B" A$ q
begin P_Creation2 arriving procedure- |, H$ {% [- @! ~% Q
while 1=1 do+ P& C& x5 J" h2 o9 \
begin" ^8 p) g; O& U4 H7 G* G. A; }" B# @
wait for 1 sec% s5 F7 W, O+ _ y1 w
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)& W! x6 w& J2 ^, U- t" N
end7 D) W7 ]5 l Z; D
end, ?; s( y- K0 \9 V; O3 d
# L' v( X& N4 l1 \& Fbegin P_Creation3 arriving procedure8 |4 `% i- A1 I7 o/ f
while 1=1 do8 p8 P( y& @9 V; ]0 }8 D5 Z( y) M
begin
0 m' ^7 _0 Y6 p/ d, M wait for 1 sec$ q u u: `8 O j, `
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)& p1 g* }6 c; K4 b6 s
end
$ W" H q. O0 d5 oend $ v1 e% Y/ V: E+ t3 }/ g
; F f/ \- }1 {7 t
begin P_Creation4 arriving procedure2 D' b6 o5 t) t+ F9 Z6 N: y) w
while 1=1 do, l& E" a* ?" @6 ~% d
begin# S. T( t: B0 U% X. r" }! O
wait for 1 sec" P- a+ _' x g0 z) e
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)2 z: g" K7 k5 g
end) b& X, f5 Q' o9 m9 g
end0 T, \1 ] i# I% g& Q- y) E$ s1 L; _
+ c! x& x3 w6 W7 A8 e但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |