谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
# N# [$ z' H! A) kbegin model initialization function& h! f0 @ G t. ^# u
create 1 load of load type L_null to P_Creation2* {$ F# A' }1 |& V
create 1 load of load type L_null to P_Creation3
9 u4 M" @0 f; @9 s* d create 1 load of load type L_null to P_Creation49 W% y/ K0 `; i% o, @: t
return true 6 {* V# R0 l* B/ t) J4 u& R6 K
end
3 l6 K7 G( P( a5 B7 u* W- u
9 N+ Z) g6 r* y6 ]. U7 Cbegin P_Creation2 arriving procedure
5 w6 G- Y t$ C7 ywhile 1=1 do
6 A6 V0 r# v H l, S) U# e begin
! S; N' A9 t5 C$ D" I0 F wait for 1 sec, z, C0 {, {2 C! e) _. U7 L5 z: h
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)" B8 B5 M/ J/ p' v7 V1 \* g- r
end7 G- o. i8 Q0 m# g$ T/ q
end" w/ Q: R2 a, ^; t+ X9 i& l( U. Y
, E) j- ^, }6 ]& O3 N
begin P_Creation3 arriving procedure2 j2 G Y* X# U2 A
while 1=1 do3 X" I4 n. j8 B; d# v" l
begin
0 {+ e! \1 S- X( f) @ wait for 1 sec
) ~/ V n- G& \ z- e4 h create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
+ J* h8 r4 U7 n% E& m' v8 U end
9 l- N( a* e% j& yend ; a' i1 G# x V8 D1 Y$ N; H7 B
! C. j: z5 i9 n* |8 S/ Kbegin P_Creation4 arriving procedure# H e: m$ u2 M! G" Q/ h5 p" V1 r
while 1=1 do% Y g/ B( _9 s8 q1 {* X
begin
5 H+ Z Q% ]5 b8 G4 \; x# L/ P wait for 1 sec
5 `5 g" ~5 n/ r8 w5 v! n create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
- x' @7 Q! W! Z& _$ n end
, {; U2 J7 M' s, Wend
6 q0 ?* V5 Q9 E" y( p) z; u) c; c7 V
8 o |/ D! j! d9 y; K$ n" {但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |