谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);3 Y0 {0 \7 B- ?7 c$ X
begin model initialization function, F. N5 `: a: ?% @+ j
create 1 load of load type L_null to P_Creation2, e. V3 s0 L0 } G' U" V: _
create 1 load of load type L_null to P_Creation3! B" K0 A0 K1 h' o
create 1 load of load type L_null to P_Creation4 j4 g) U. T R
return true
5 M H+ m& M! q4 A$ Iend
9 T1 `) M8 l2 y. \, U7 Y9 h" ~
begin P_Creation2 arriving procedure8 c- H5 R! @1 G K* ^/ u
while 1=1 do1 B9 @$ n$ L. X! [7 b
begin9 Y* b0 I' H8 D) G
wait for 1 sec
6 r9 n8 B- K U create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)# ?. W5 N2 l4 C6 O5 N y2 K
end
9 B+ D5 S6 M. j8 j+ w% Y3 Kend* R, g2 j( u, ~9 c4 L$ U9 ?+ z
- i: T1 a0 q |! u
begin P_Creation3 arriving procedure* Y$ v, P9 p- v- }: P* g
while 1=1 do6 U2 ], \% C) p7 t* N0 X2 B
begin
- B1 S' Z5 b2 [ wait for 1 sec
$ T( p% H8 G, F B& z3 w create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
& `% s0 o" ]( C- _; J end
: P: J# ]) \0 @+ a2 S1 Rend
: }, C' a8 a3 j9 o A2 h$ X
2 I, u# z O Kbegin P_Creation4 arriving procedure; p% \% G- E8 F( ~' T
while 1=1 do
* v: l: a! A' f) ?2 @ begin6 n( w* q. L% \! P* K( \& y: S
wait for 1 sec, ^& X% v# S0 e) l% C
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
$ ~ @+ ~8 r3 F4 G end, a' f4 l: V6 @. Q* H2 P$ p
end
3 W4 R( n3 x; [+ A" T2 u
/ n2 r! y2 k; p2 f. S但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |