谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
9 h P6 I# s2 S) ?$ @0 w+ u/ Ebegin model initialization function
N+ W4 b+ W5 \# _8 G' M create 1 load of load type L_null to P_Creation27 H" Y0 _# O; Y Z0 Q) R
create 1 load of load type L_null to P_Creation3" @3 ?# n9 B# M S7 ~! w9 g
create 1 load of load type L_null to P_Creation4/ G8 I, h0 p% Q7 k, I1 e0 o: E
return true 8 b7 W% t+ b* D4 ]8 w
end2 z- r1 ^4 M9 Z) P
( [7 m% T* g c& U
begin P_Creation2 arriving procedure
+ D' }2 T6 h5 D1 awhile 1=1 do
$ [8 } W1 R% m" s2 T& ]# ~0 m6 C" F begin* y' n' \% L+ \5 e- z
wait for 1 sec
9 o, \: O/ l2 E! q create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
8 C; H% E9 N/ Y- j. W end
* o/ V _ u, iend
8 C: x, a: P: W0 N3 n
2 J( l" L) C3 ubegin P_Creation3 arriving procedure
1 H" ]7 B) r! `# S; D F8 x+ Iwhile 1=1 do
$ Q c: M" x: Q3 V; e begin
Z+ i, L! s. Y# A) \- K. V wait for 1 sec
# o) o1 v+ U8 O6 e: T6 R0 F% V3 f create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)7 c. Y9 w+ T( i5 @) l$ W
end
" H0 K- O( U3 J; i2 z; B* Zend : K7 G0 O+ G; p, L$ O6 K
/ M" H+ i: r, |, q
begin P_Creation4 arriving procedure
) m0 d$ l1 q1 h8 p, L, _7 H& Twhile 1=1 do3 x' x2 t, d1 _) `8 C4 k) l
begin( m. W# }" {1 h, H- @+ K. A
wait for 1 sec$ ]# ^$ U: A" n0 g. j- G, o" E
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)! Q2 P% }/ b, |
end+ a% e+ I2 k7 x8 E
end
' _- h( f0 u. W+ g( x \: C
& s4 ~8 f8 ?5 N! n' c. _& B但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |