谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);" a9 J, O: b7 E
begin model initialization function0 ^3 O* u& a- ~
create 1 load of load type L_null to P_Creation2
9 T' m" G8 l. ^% V create 1 load of load type L_null to P_Creation39 ?; O3 | ]8 z7 s6 y& k
create 1 load of load type L_null to P_Creation4% Q. H, Z7 u H; t
return true
9 P+ [6 o7 Q% N0 n/ a# zend0 n* u, U: |2 o
" u( Y N% j0 E2 x0 y Y3 z6 \9 Vbegin P_Creation2 arriving procedure" A" P2 Z( R! ?2 H
while 1=1 do
* p% P3 F& r+ |! ^2 e2 [( N begin; e- U( _, k4 H9 ]' i
wait for 1 sec
, I$ u8 t/ ]9 h create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die); {$ J- V5 @" G- A3 D9 ~
end3 P+ z9 _! k" H" x5 K
end
$ X F0 R1 \$ H+ j+ o C, a b( t5 t/ W6 g% }
begin P_Creation3 arriving procedure6 j) u' S" O* r0 W3 u
while 1=1 do
, f s$ ~6 Y9 D begin
* {" g+ Y8 r+ l8 S, J; C$ |! s$ L wait for 1 sec
, d0 |% x1 E5 ~& t) w create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)) k* P: ~* v4 Z7 n# ^7 A0 m
end6 k }; F' O% J( A3 g% R- U
end
1 [' M1 D7 M# F
% r- c, ~9 W( f$ Y5 F Ubegin P_Creation4 arriving procedure
|, _1 n3 e# k" y& m, c6 I. kwhile 1=1 do% N' p) \8 j$ ~: M: s c
begin5 {7 d+ `. N4 z% B" _1 ?
wait for 1 sec
/ G) `" C" q b/ ~! v1 D- { create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
+ V A. O# l7 i) ?$ m/ Y. u end, U. p6 j h; Y- b4 U
end
, P- I, ^2 _$ X9 V- M |! B" t1 d- D
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |