谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
: q, I& F: u% k+ N1 t4 ]/ Vbegin model initialization function) u6 U# F1 I ]- U- K7 H
create 1 load of load type L_null to P_Creation2
g& T6 y) q& i% B( W5 D: Y# y4 R create 1 load of load type L_null to P_Creation3, Q' r$ d; i$ ?4 e
create 1 load of load type L_null to P_Creation4. p: g+ N6 R' f$ I8 w1 \5 H
return true 9 D% M) U D0 u7 D3 n4 z" q
end- O/ L# O( g0 e5 ^" m, n( u
* |1 @% f4 V/ q8 W0 m! Gbegin P_Creation2 arriving procedure
0 H4 L" O3 B$ L+ M8 Uwhile 1=1 do
+ C3 K+ _) t9 V2 S6 _7 ~* H* Z begin- [3 x2 S+ K% L( x
wait for 1 sec
+ C, \9 O$ [9 C9 ?! C. C9 i create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die) o$ H6 O/ C, c" h% y' F
end
- T9 h; \ {4 @end
: n* Y; u. u( [1 M; l
; t# T0 {& D* C0 T! }' @- i, A* u+ N/ gbegin P_Creation3 arriving procedure0 L1 |; H/ W3 u1 y# A Z, E3 z' s7 {
while 1=1 do1 l! n a8 D$ b t3 Z6 D$ S: K
begin9 v# C: v) |( V) U
wait for 1 sec
$ I2 X% @) n8 f8 Z4 ~" y7 a9 ~. f create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die); a8 ~5 h6 i* h. S& v+ w; T# |
end8 C5 T2 x+ ?8 [& @$ h0 p$ \/ W
end
/ x0 b$ u/ I+ e, h& S# b1 W! d7 b( M ~. [5 M4 R/ Y
begin P_Creation4 arriving procedure! d# w% P- s5 I1 X0 f
while 1=1 do1 `( G* y2 o( r+ d
begin
1 A0 p+ `6 p; z. P2 |; P+ ~5 ?1 N wait for 1 sec
! H; Y" x$ z- L- [ create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
! W0 t0 F- W0 X( b. l8 L end, f4 A! r4 S- \
end) O* m7 i, R- [% U! C8 o" p
2 z J, j, }- E
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |