谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);# Q% \8 M3 M$ G0 ~- M* R$ \
begin model initialization function$ O! S% m7 h6 s5 ]5 W1 Y) O6 `
create 1 load of load type L_null to P_Creation2
5 p: S9 a. Y* b% ` create 1 load of load type L_null to P_Creation3" u+ W7 L% `. u I
create 1 load of load type L_null to P_Creation44 x- V1 ?: W4 N7 _% P( m7 p1 n# i9 F
return true U; Y, d* }2 @; o5 w% k0 ~
end
3 b4 R: f k7 J v& H# ?
8 N" @$ U: J- U7 \' Abegin P_Creation2 arriving procedure
0 X( A+ q! c" ]* g6 p& H. |# J, qwhile 1=1 do* o, H I* e7 P; b6 a P
begin
: O) S. `- ~: I2 Z3 g" T' n: S wait for 1 sec
' C2 n1 d7 }% R0 | create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
+ W& U9 U( d# e. k( c end
5 w7 B: c- m: y, i( H, C0 eend/ w$ g/ g6 U' \
0 J- c3 S$ j# c' Y
begin P_Creation3 arriving procedure
5 u$ C. ^2 G6 k, }while 1=1 do1 [, r$ p) X' L# p3 @8 ^) {
begin u" t2 _9 X0 A6 w
wait for 1 sec
9 n# h2 o+ }, b) @ create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
5 q7 T+ y- v" f- _ end
/ a0 _7 W7 v7 w5 s) N! N, Tend
, B3 q) H# z, l" j+ o7 {" ?. Q. L4 m( |2 C
begin P_Creation4 arriving procedure
9 f3 G+ V# [0 E. u) |5 @while 1=1 do
5 h2 X4 d" j7 I7 B; [ begin+ n! D- e$ M0 R
wait for 1 sec1 C* i* K/ Z S3 l D5 ~8 M8 [' ~
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)4 }! X2 s ?5 d: i- i* L
end& f: ^ g p$ N- `0 i0 J
end; y, ^3 P1 o# }' ~) O8 F
+ V% D/ ^/ _9 |& l) V' s
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |