谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
0 Z9 `2 }; Q- ]' A1 c, S6 P) Bbegin model initialization function2 @/ J8 K/ l2 w# T4 \* T0 a
create 1 load of load type L_null to P_Creation2
. ~, t9 ?! Y+ E0 B: @ create 1 load of load type L_null to P_Creation3
. |' x6 m7 y/ X0 D7 r$ Z6 @ create 1 load of load type L_null to P_Creation48 @! [; i3 x9 K: y4 W
return true C8 Y; v# T( N: `2 n7 Q3 y
end
% @9 }" c q N0 j
/ y9 l; w1 p( D. W- R j0 Dbegin P_Creation2 arriving procedure
3 b. K7 ^2 M E1 V9 nwhile 1=1 do# Z- ~( }) _" _6 r6 v9 a
begin; P5 e! h8 z; C$ q5 ^- N' }
wait for 1 sec
( p9 v, {4 \8 J- d- j7 |0 l6 l create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)' w$ z q% b. v g/ s& G' O' l) A
end0 o, d3 T* ?* }) n0 C
end* R& s/ ]' b. W
g6 X1 J, a$ H! o5 W
begin P_Creation3 arriving procedure+ x8 q' x) o0 C
while 1=1 do
, {( _" c0 L$ B' T5 ~$ s begin
8 Y) e. U9 U- l, [4 T wait for 1 sec
4 a, R% K2 ~/ x2 m. I; @ create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
$ l s( k: m% e+ o end
, ^4 ^4 X2 c: rend + p" R9 i) {& N w& ?, k
) m* u2 R9 J& A# r% J$ L
begin P_Creation4 arriving procedure' G+ V4 V/ q8 `' Z6 Q3 a8 h; F
while 1=1 do
9 @. B4 s) C$ @9 O! p9 o( M begin
# k$ Y# Q" L8 D wait for 1 sec
- X( b+ d$ l6 \% e6 t8 w- y create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
" P! P4 X9 q0 ] end9 ?# f6 j( J( C. w: a; Z' T
end1 `+ t" S' Y1 r8 ~5 S
2 z J( Q2 [% U. ?' X% [ }, V但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |