谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
5 o* {8 g3 G9 c6 [4 g' H+ D7 ], Xbegin model initialization function" `" p, S9 N! e! {0 }
create 1 load of load type L_null to P_Creation2/ t2 P2 [* j; s7 \. Z
create 1 load of load type L_null to P_Creation3
9 u% w; U$ t: d- [6 ^ create 1 load of load type L_null to P_Creation4
3 r: _2 e8 O2 Z' B; n2 r+ j return true
$ R! s0 Z) B% C2 S5 nend
* H- t0 O6 Z( [* {8 ]
4 F- L, f- B2 d0 E; n) xbegin P_Creation2 arriving procedure! H! v4 G) d- E0 ^5 N4 ]
while 1=1 do+ x9 W# B9 K u! q% o8 a" u! ~$ D
begin1 @1 H6 g) q! e9 f/ k* R; q# ^
wait for 1 sec: c1 t$ Y3 w& a4 u1 D
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
# a6 u. N+ @/ F3 ]/ i, k ?- F end
, d1 e' F6 E+ J) h8 ]end Y/ H j, ?$ V' W
9 l# @& I' m- D6 q" R9 R" v
begin P_Creation3 arriving procedure
# v6 R5 b- U; T" F0 u( Lwhile 1=1 do
/ X# z1 N* J M) W @3 c begin
8 C9 [7 F, E4 M' U# m c wait for 1 sec
1 D4 Y) [9 y6 Y. m& d1 _) H create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
, |- V+ S t& j: K1 i; Y# o- ~# l2 I end$ A& m# ~( g2 Y% \
end
- Z; R8 W B$ J( B5 a5 j
. F+ A3 b7 o+ N+ _- zbegin P_Creation4 arriving procedure0 O. }9 N) i$ D5 @( Q& }# h
while 1=1 do# t7 G/ `& E8 F! D, G
begin1 M+ w# ?: s4 t3 Q
wait for 1 sec
' G. _; C/ l) Y, I* E create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)3 K+ G" z5 L! a5 z- d3 |; `
end
0 L* Y, ^1 _ ^, \end- v% \: X; b# v) P% b I/ u
C% ?" l# x+ ?/ F* I3 u: |但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |