谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
" a; u+ a% I9 o" R4 x, Vbegin model initialization function
1 X3 B3 y4 z, x) _* u# A- H create 1 load of load type L_null to P_Creation27 O7 Z0 V g; I- E
create 1 load of load type L_null to P_Creation3
# a; }* F, m, H+ z) V) y3 S create 1 load of load type L_null to P_Creation4 U/ ^; |# V! V" I7 i' U ?6 Z
return true $ M% X8 K- Z& S Z8 ^( f5 ~9 C+ _- B" T( H
end
- u+ D9 g$ y& _+ P
# ]& p- r' w) ~5 y% g8 Pbegin P_Creation2 arriving procedure. @4 d3 @) i5 p% c
while 1=1 do
% }* ~1 j7 z; ?' g+ i2 o begin" ]. V; ]5 ?7 G) L
wait for 1 sec
* h! {9 z6 z6 ^, j& Z) S- F1 |) ` create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
* F% E- _5 o4 q7 e2 S i/ S end( y1 R9 n/ n" v. X* B3 h
end
1 Q6 h4 i6 q4 ]7 B2 T: o; S& m2 p! r) b9 ~
begin P_Creation3 arriving procedure, Q# N" A1 X7 A! z8 N; |# b
while 1=1 do6 Y" p- v/ @9 V1 S, n6 a, U$ y
begin+ p1 p1 Z5 B# j/ }, T
wait for 1 sec
9 ?9 |2 _# Y- r2 U4 {5 R6 b create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)6 F! @8 Z i# \9 M8 N
end% u6 M( Z7 [) k
end
c$ x* Q1 A. s8 t+ _1 J) i6 R6 J0 D( U' A0 l0 n8 i0 s+ \- _
begin P_Creation4 arriving procedure4 m$ N) D, C4 |
while 1=1 do" r6 L0 K* e' U x8 T
begin
% M' t7 ^ Y' ? wait for 1 sec8 C( S6 }0 d! }! }9 \; n9 u- J
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
}0 [3 E' ~1 U" m. L; ^( A end8 N, S3 N2 @7 g, U$ O4 ]8 V& E
end
, ], x5 p- s6 ^( y$ n: |9 R" ?6 Q8 T2 ?5 }! i' |' U% ~6 I9 ~
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |