谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
% s1 O8 |1 O8 Q$ mbegin model initialization function
+ Z+ u4 X5 r; V# U: g) D& M- [ create 1 load of load type L_null to P_Creation2* C# `, `9 t; j [/ w
create 1 load of load type L_null to P_Creation3+ j; T9 H; t+ T+ n2 R& T
create 1 load of load type L_null to P_Creation4
) D- G8 f5 r) B0 a6 r2 ]' m6 g% U6 O& H7 ? return true
* I) F/ a6 m* n1 g# }9 q/ `end' |7 G) g- e5 }, t4 p2 R3 I
( k( B. @# G# r8 T9 v6 k) Q* \/ f
begin P_Creation2 arriving procedure9 y4 x; G' C( s6 \ f* o2 N, H" z7 t
while 1=1 do
' o3 @: M6 N: Q- Z begin
4 ?, H8 [8 Q9 H# F* {) B wait for 1 sec
" f3 M. C3 Y4 j6 U% e) F6 k create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
) A! K1 N' I+ u/ d9 w end
, p, y. p& x7 _+ V2 iend# s4 _! v4 J, U- a' h
" \$ _7 _1 ^9 {& u1 y$ zbegin P_Creation3 arriving procedure
. n5 ^3 G# h: n3 \% L" t& rwhile 1=1 do6 y/ E* l' P. o9 s
begin. H: P& N8 C% D
wait for 1 sec
; o9 ~, N5 w) f# y/ n1 E2 U: B create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)( @' ]/ e6 a( b. c
end
6 E- P; t" T t1 H% E, {: a, dend ' S. A' V8 L% j" F1 G9 Q6 U
! C b# R# ]; H6 h) b Y$ Lbegin P_Creation4 arriving procedure
. I, h8 K: |# ^0 P2 ywhile 1=1 do
0 S7 @+ k8 `6 O% E! g$ l2 G3 P) D begin5 ? t' V [# }( {
wait for 1 sec) G; D! W: X) W: K$ ^ X/ C
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
" {: E& K3 _7 ^, I4 G+ P9 L end
: T- W7 c& r' send
) }8 p6 ]$ i( J" M3 n3 t x1 G6 b
$ N, |5 x6 N$ ], Q& [2 X- A; A2 }但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |