谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
, C7 V6 r k4 _9 i7 n' dbegin model initialization function& T# y# w' V; G o: P8 T
create 1 load of load type L_null to P_Creation24 k; U# [; s9 i R+ {" b8 E
create 1 load of load type L_null to P_Creation3" n8 r- L" d) C0 E4 q
create 1 load of load type L_null to P_Creation40 n$ G, ]* P7 i/ }; K
return true
2 E# G) n' ^5 E& J8 |/ `7 lend% ] Y8 x( }0 g, K
) N7 b1 B D. T4 N$ t2 Z/ O
begin P_Creation2 arriving procedure
4 g1 w) y( s( pwhile 1=1 do2 E8 A+ |, D! u
begin
1 }1 q6 v- ~1 ] wait for 1 sec! J5 v( I% y6 j& a, m& o
create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
: i" G% z+ V9 n" R& \6 P end
3 y" g( P+ O* K9 P7 l: ~end
% F3 b* g; @8 y
- r1 ^1 ~( ~9 u5 ^begin P_Creation3 arriving procedure
8 r% g7 n4 M. Mwhile 1=1 do7 d, w" H. ` `8 [( e3 Y6 W1 ^1 i% k
begin* n) Q8 V4 a0 }& x; B% j: }
wait for 1 sec
- `0 N* B( C& o. W s( J create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)$ v" F8 \& G9 S5 k& R8 R
end
& @. E8 {& b0 @$ w1 n; ^' mend ' [" k, l9 U# s) B% E9 b5 G. E1 V2 Y# p
/ j* R8 E3 w$ [
begin P_Creation4 arriving procedure
$ D& c( H2 Z. M, }1 D1 `while 1=1 do
a8 `9 `5 }( R8 T) s begin* q+ K+ b1 }/ _* K; i
wait for 1 sec
5 y% i, p5 u3 ?) |6 M1 W8 Y7 S create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
7 F7 e; g# |; q2 ^ D( ~ end
6 |+ W' q) m0 V$ I1 [0 Q% _, r" Fend( [6 S- ~8 D6 A8 g, ^, R+ h
2 c# t; |8 }; ]1 N7 \但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |