谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
* P* u3 i G* h8 h, ibegin model initialization function& j. D! ^% u- V& v
create 1 load of load type L_null to P_Creation2
6 F, G) s1 n: x- i create 1 load of load type L_null to P_Creation3$ W" E) t/ o6 {; v
create 1 load of load type L_null to P_Creation43 c9 {- n5 d/ _! n; C
return true
) x4 F( j. T {4 Jend
1 u2 v' j3 N: q- J
$ D+ r8 o5 }6 s* Abegin P_Creation2 arriving procedure$ F Q4 t P, o- R0 Z$ [
while 1=1 do
+ J3 @" r6 w3 n) i begin
" y* H& E/ K7 Y wait for 1 sec
2 q7 P. ~* g' R: m+ D create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)6 d$ m$ o: W, m- z4 t
end! \. m4 T8 U5 e2 A* W; F% U
end
! L- S; q+ |& p, X) E9 U
8 B+ o8 p/ ?9 a! L) Dbegin P_Creation3 arriving procedure
5 v4 r" ]* j+ X+ d' a# B9 lwhile 1=1 do
' v' {, k; H4 Y& c; C5 d+ @ begin
, M: {( w! P0 M+ Q. y wait for 1 sec
/ e. S2 |! |" c7 k) q create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die) L0 O) T% m6 f% R, T* f
end3 \4 }' H+ W! y3 W: l; n; L! |: q4 w
end
7 n* J, p$ W3 T/ N
; z/ h% R) K p @1 q Dbegin P_Creation4 arriving procedure
( `2 J% e: Q p; r: xwhile 1=1 do- J) u) F/ b7 i( _8 H! l* f- q
begin
- s3 ]8 b. k+ V/ r wait for 1 sec
7 s' }# K# n6 |# M6 {( A2 b create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)2 k4 M L. H" s& S0 l
end) ^& I1 L! p$ [6 k3 z
end
: G. _' X$ }6 n7 N! d/ z9 j* {1 V/ l$ R
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |