谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
( q9 f. @# t( `8 t" [& p4 hbegin model initialization function i, W1 o8 N& ~( H/ [
create 1 load of load type L_null to P_Creation2
0 n5 d! [3 Q6 x, L# T+ o. ~+ {; k create 1 load of load type L_null to P_Creation36 O1 L7 \6 t, u8 I& ?" G
create 1 load of load type L_null to P_Creation4+ m- l2 X9 _0 ^4 u+ |8 P& ~
return true 3 R/ P% y% E; L
end) Y7 F+ P7 k3 ?+ E& u
; c5 N; o+ [* T
begin P_Creation2 arriving procedure
4 |* i& T7 H$ i2 j8 s. }: gwhile 1=1 do2 q5 g; u, G* h" u6 P3 J
begin
' P) E: R3 Z( h8 w- H wait for 1 sec9 X& N% v3 O4 k$ X8 c7 f
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
J! _4 ~: T9 U5 ~2 b, Q+ y7 ~ end( `" M* y6 m; N. ]
end, C+ X) k9 D d
6 Y0 N& `, K# Gbegin P_Creation3 arriving procedure0 h, O/ |6 R( ]8 @
while 1=1 do
! S; R. I3 v8 X( j begin+ P/ B1 a1 v& H" Q0 `3 Z4 q! [
wait for 1 sec$ t0 C' }/ q1 l- o x- ?$ W
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
! a+ y8 G/ w' u3 X. q) f end! _( s/ y5 k2 x7 @+ [
end * Q: R. {0 J* f- w+ R" D* z$ A
0 D3 E1 U0 m4 p/ cbegin P_Creation4 arriving procedure( ~2 E E- L4 j6 H, Y$ A8 z
while 1=1 do
9 {1 u3 s& T0 T& x' U begin8 |, s- r e U n
wait for 1 sec
7 p* z' U9 {% _; U& @7 u create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)! i" h: L$ Z! Q* r
end
, h; U5 f# Y6 t+ Eend" {2 S8 {: P4 p: s: d9 ?3 V
) k4 j; {* y3 z8 J( F8 A
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |