谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
7 k/ F! w% m+ R' W4 wbegin model initialization function8 O% ^9 ~, S5 m d+ i( K' D
create 1 load of load type L_null to P_Creation2' H5 T$ f: Z9 `5 Q. y) W% F
create 1 load of load type L_null to P_Creation3
0 S1 s1 f8 J3 x% z8 Q create 1 load of load type L_null to P_Creation4
* ~) ]: J* I" w1 K/ d3 r! a return true 7 i8 g; W2 D$ H% Z, O: A: C
end3 p8 T4 I( n$ s& Y
9 I* l8 w% _/ i1 c* M* K
begin P_Creation2 arriving procedure
1 b& s7 E6 N# z4 a8 Iwhile 1=1 do
7 R. I0 A6 E: Z6 M, F5 Y9 ? begin, H' h7 p1 l" G3 {" B2 S( d
wait for 1 sec
" G4 L4 ?% r/ ` _. V8 r' m create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
, x( I' m( z* g& u- P7 V" ~ end
7 N2 a8 o1 L- ?# d: ^end9 g5 p* L" ~- @5 Y
; _, e7 o8 F* P
begin P_Creation3 arriving procedure
& E, Y' h0 d+ V% ]# N" vwhile 1=1 do0 T& o0 K, Y% z; }" B
begin
, i) e3 n* `% K2 d7 A0 x wait for 1 sec
- n0 v2 A" b# E$ \* U create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
m R* [$ r+ i0 d end# S+ j8 r, g4 d3 e
end
' g a" n5 S$ M* M, Q$ ?# W: M0 N& ?4 P! F1 g( r
begin P_Creation4 arriving procedure
3 b* C' l4 z8 k! {1 R/ m% S* E2 e( |while 1=1 do
! @& A0 I" E/ ?7 x begin6 b$ L" M9 s {# v! J9 j4 M
wait for 1 sec
7 D7 t6 Y/ H! f( G) \, U4 j) n create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
K f1 }" h/ S; E end
' t- @% u1 ^ ^* |end
: \5 N8 ]5 {& B' C6 F; h7 x- Q S( l- u$ X
但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |