谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
( P3 W+ _ K) R! kbegin model initialization function' p I+ }3 o% H" i/ B
create 1 load of load type L_null to P_Creation2- H' C# ^6 a- a t
create 1 load of load type L_null to P_Creation3/ ~5 A/ ?. W& S c- B9 |4 f b6 x9 N# B
create 1 load of load type L_null to P_Creation4
5 Q6 @7 m. K; | return true ( d* P" a2 ]- U1 ~
end
( P3 c% K9 ^6 R/ d! B& S
I% ?7 N1 c4 ^, u5 `, I3 Qbegin P_Creation2 arriving procedure
" f+ p, X( L: O# B: x5 Nwhile 1=1 do
; G- }6 h4 S2 ] begin
) q0 K6 Y1 j% N# C- J4 S7 D wait for 1 sec
; @/ _: p; _* E5 k4 {4 o7 @7 Q create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)( L4 R5 k7 Z8 E* O, p. Z
end
) J( }1 ?* d" d% `4 ~end$ i+ C2 v, x, {
d$ l1 S4 I- v; K' Bbegin P_Creation3 arriving procedure2 w6 y$ k0 r3 E6 q
while 1=1 do* `* `# i, H+ a
begin
9 B6 e6 F- m. ?3 t% U5 \$ { wait for 1 sec9 \4 @# o- v3 R6 H# e
create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
6 {4 M" [9 D/ B/ q9 O% N0 W end0 p ^* ~$ m% s* T
end
3 F% U4 c9 y- O3 X& c7 k" L$ |% f7 ^6 k/ r _
begin P_Creation4 arriving procedure: H) N+ ^! }6 z
while 1=1 do
3 E u _4 [7 V begin
1 A/ c1 j: g* Z. v( o( i2 {1 s wait for 1 sec
( Q1 g" R, I! Z% u create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
q- V9 H% p ^7 G2 g* U end
. P. I( g, G+ _2 Z5 r3 ?end
4 B! D: m! C1 |- W: H; T
5 H2 B& I# c. c! }5 m b0 `$ Q但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |