谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
6 O+ D- ]+ W: E6 P$ `begin model initialization function5 |; g* W# o6 J% ]4 D
create 1 load of load type L_null to P_Creation2
- l( q% `7 Z4 J2 ? create 1 load of load type L_null to P_Creation3
/ R4 {: z+ z, I& S create 1 load of load type L_null to P_Creation40 ~/ N! q, Z- {2 u& }0 q% w
return true . Q, B% I! n2 X% {& s
end
. y- n' d6 `- a' `
. R2 A3 s( f! [; ?begin P_Creation2 arriving procedure
: d& `, W9 R" n4 Fwhile 1=1 do- d, W6 {2 w( X3 C- j
begin; A$ ]! S, f$ `. f$ `# ?
wait for 1 sec
! q' u: ]' q/ p, `" W; ?* Y; b' s create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
9 u- M; V/ m% i" ? end
; p% p% ?' Z, _end. ]$ y. X) M* ?6 q/ q- x- z( i
5 E, L$ z% e; a1 @
begin P_Creation3 arriving procedure
2 v& ], D0 w3 T9 q6 l3 B$ ?6 qwhile 1=1 do
6 |7 s3 _ i8 y% Y& g) }+ d) { begin8 ?; w2 y- W, ^; C: S6 p
wait for 1 sec' O% R1 j. a9 S: k# }
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)5 d7 M# H, v8 [) T3 R. C4 \4 c, M
end
0 t( F- a4 Y: _( _end
' I# X4 P7 N$ @
0 E" V2 Y0 E+ W7 ]/ d. Mbegin P_Creation4 arriving procedure
1 Q. A* Y2 O8 {$ Rwhile 1=1 do4 D0 ~1 X' u2 I7 D- D( I
begin
6 ~8 T2 a& u* |$ G( [& W7 x) v wait for 1 sec
$ g8 `0 b$ S& R# F9 S9 |+ _ create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)8 F1 T, w) Y: q) Y8 X
end5 H6 j# \( q+ h
end& o" t" T% O, M& s( Q
$ q( ?/ p5 t' G+ ~% W但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |