谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
, \0 M8 o9 ]" X" P( [begin model initialization function' a: O' j$ x# }- Y k+ }
create 1 load of load type L_null to P_Creation2
+ Q3 H$ S" k* V! `; | create 1 load of load type L_null to P_Creation38 d O) @4 D! ?8 y- g1 D, c' ]
create 1 load of load type L_null to P_Creation4) f& z3 h8 H V" J7 S9 \1 X
return true
2 Z# j0 Y3 E. W3 Z4 {4 m. h/ e+ n. Oend) o, r% V( [: w, f
5 X. S( C1 L) x4 w
begin P_Creation2 arriving procedure
% H+ q p" J- Owhile 1=1 do1 O- S4 {8 @' I/ Q
begin
- X* y( V5 J+ y9 g wait for 1 sec
8 `+ P' n, h* K3 u create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)2 W- O& M3 o9 w P0 s
end/ R' @ U6 ]# E- w& t8 H/ ]
end
& Z( x' w, ~) a: z
: i* D/ J$ f4 T* H' ]2 r, E8 `begin P_Creation3 arriving procedure/ c' X3 |6 o1 V8 V! p, s
while 1=1 do$ `! V. X* m: F5 r: t( R
begin* V- N/ ~) U- U, Q5 |0 N
wait for 1 sec
3 g2 c1 Z v; O& s create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)% @3 A3 l/ O5 m. B( ^5 X
end4 d. k& B2 z. _
end - `! N8 e9 P |- ?+ Q
" h/ |; c+ ?' d. @8 C7 x
begin P_Creation4 arriving procedure5 K' n0 i8 r+ s& S
while 1=1 do
! \, ]9 O8 o7 _: I: K+ g begin
% V- I1 [9 C- D8 H1 J wait for 1 sec
" g3 i1 I: K4 p2 E& F create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)" K& z" l! F4 x) v& o
end, G( G: r z" G1 c5 L, B
end* l% p0 Q, b! A/ a% o
8 I {1 a% A" N9 ?# n# E但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |