谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
$ A/ P, U9 y- w! o4 D7 f- Pbegin model initialization function, |0 p# p! h" }6 O
create 1 load of load type L_null to P_Creation2
s* w* b k/ k2 J create 1 load of load type L_null to P_Creation3
V# j/ Z, `# K6 J. F create 1 load of load type L_null to P_Creation4; O" P$ g* p+ B! d
return true
* g2 b9 f% B# a2 |end
$ j, l( @2 u. \# U
6 ?! E, o+ i; _: F( w$ {+ Hbegin P_Creation2 arriving procedure
& x q, d( R. j9 @% Pwhile 1=1 do
; p2 `: o6 Z% H begin9 a/ O& Y: l, A. @: A
wait for 1 sec
9 ~ r* J' T' g% P, j create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
9 b! O7 K |+ x6 Z9 @) I end
2 w% j1 {6 M1 M7 [+ z9 c: b$ qend( x. X$ K; L3 \# i
+ A$ p6 g+ i# j! [
begin P_Creation3 arriving procedure
* H1 H3 M5 f4 ~# G0 c# ?- awhile 1=1 do
+ D# i3 R: [" `% I begin+ M+ X$ A0 c/ P7 y- X0 T
wait for 1 sec- ?% q0 h6 Z+ t; t+ I; N& }" T
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
( f9 Q; U' P8 g4 c+ Z+ U end
7 k9 q9 l9 D& B! i) ]end
9 ^% u0 h: ~ a1 A4 S2 C; E4 q* z& o i1 i
begin P_Creation4 arriving procedure8 T( }6 h1 N/ z) L
while 1=1 do
4 c& G, G# }; `4 v: h2 U: l begin
{0 b0 ?% a8 R! M( [! A* B3 |7 f wait for 1 sec# g1 H! l! o5 }( Q- S7 R
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
; W$ g$ G" i9 v end( S+ X p4 { d9 R' |
end" q2 w% N/ t; Z+ B% S: ^
6 ^, n, }/ i( ]2 m/ ~! C但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |