谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
- ?& R6 s( T$ @) ~! ubegin model initialization function6 C5 K. t& }( N- g6 q, Q$ {
create 1 load of load type L_null to P_Creation28 s$ Q) d" S0 G$ |; \
create 1 load of load type L_null to P_Creation3
) V- l, R, w( S2 o7 }: O$ e create 1 load of load type L_null to P_Creation4# N0 g- N/ F: Z: K2 p
return true 3 ]# N4 v U) @' h
end; n4 R0 s$ B) ]/ ?
7 n2 w1 T+ E7 u. q! ^# ^
begin P_Creation2 arriving procedure
' b- ]) e) {* A4 j! z5 ~while 1=1 do5 t0 L+ i j0 Q- @$ S4 M7 }
begin' C, }' F, ?& |' f
wait for 1 sec: t! u z- O/ O1 `: p3 T
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
4 l7 L0 S" b" }& W! a end8 d7 C) p4 f2 [9 z. |! m1 L' S
end* x/ n5 v+ `1 `1 i7 v# j0 Z
t2 R* E w. ^begin P_Creation3 arriving procedure
4 e( B8 u# L) r5 fwhile 1=1 do2 z6 _' K k0 r, [% Z4 `
begin6 f# p/ \, b0 U/ V$ [4 i
wait for 1 sec
& Z' C- e; L, n* E$ @- w- o# T create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)8 {; n0 U4 p4 B: C6 o
end) x& W7 [- J) @1 e5 j
end
2 p% {. T$ N) y0 U5 U# r5 A! \3 H" X) \8 o) h$ ]
begin P_Creation4 arriving procedure2 Z8 M6 ^5 a) Y; D8 J) p
while 1=1 do- ~: ]& Q! {( i% z W* ?) F6 w
begin3 X$ R; z, }3 y
wait for 1 sec% C0 q2 ?5 M! x
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
; V5 I' E/ ^& F+ O# ^# C* D2 F end4 r5 e' w7 M! v& l+ O
end) N' x' U7 |" e, B: q
& a6 o5 E% _& o# W3 X' L
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |