谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
# D V1 ?$ \* P) D, }- j/ bbegin model initialization function0 `# m! S2 O9 d
create 1 load of load type L_null to P_Creation2
8 F7 q$ v/ N: @) q$ v create 1 load of load type L_null to P_Creation3
! D5 l# v7 T# h5 h% E5 \- N+ L create 1 load of load type L_null to P_Creation4
1 A/ U6 a% R; q& q/ P) i return true + H) V) ]; v& Q( U y
end2 s' K1 D+ [: \
# N/ g( y" Q2 x" R2 \' ^$ c/ J0 i
begin P_Creation2 arriving procedure7 O% B$ K* d* g3 @" R
while 1=1 do
: X, ]$ s5 W! s; H, k7 y begin( c8 A: e6 s- |1 G
wait for 1 sec2 r; C I8 E" H, d, N# ^
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)- |5 ?% P1 r+ Q' O' s9 z
end* }% u! R ]& {& c2 f
end
" Z# g8 t; P4 | ^9 N& f$ G$ G) X
: v' C& N- B" v- ?1 Pbegin P_Creation3 arriving procedure
& A0 b z+ q, f( a8 c' N& ]6 |while 1=1 do
& V! L% p- e2 `. L begin
9 A8 r2 @( [; s/ @+ |3 E wait for 1 sec" ]) A# s+ J$ H
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
, P* p a$ T, u( N/ }8 h3 i end$ c6 _9 o3 a: Q6 O' [/ r: Q' Y
end
$ H3 ^" T ~2 \9 J$ F, ]1 E/ L
* R# V$ D6 _- ]- Bbegin P_Creation4 arriving procedure- U y B# ~0 U; B; C+ \" W4 x! z
while 1=1 do
2 _9 a D! g% p4 C5 h% c begin
) E7 U9 o3 u8 Y" g+ N1 o3 r& L wait for 1 sec1 \: [& R! d* V, K5 |4 X. y& m$ f
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)- _, i2 q3 q7 V% Q& {
end
% G# }8 j" s$ d% g& Oend
) x- p$ \( i( ]! w& s: G6 `$ O* M
- R, k) B7 F/ P) J |' ~( y但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |