谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
- J% \/ P; M+ }9 N; g& v+ W/ J# u8 ebegin model initialization function
6 N( h( X7 w" f- x- D create 1 load of load type L_null to P_Creation2
, ` |7 I: [( ]$ j1 n create 1 load of load type L_null to P_Creation3" g- m9 I; R4 a7 |5 B) m7 K
create 1 load of load type L_null to P_Creation4
% Z# S! T: E( c0 Z7 S u return true
) U. }; p _7 h. R6 \5 vend7 J4 Y1 H3 }/ o5 A/ |* w$ r% Y
( O! d( @$ p; }7 u6 X9 q1 a
begin P_Creation2 arriving procedure- T# z3 q% T0 @ @( r/ K$ o
while 1=1 do
1 t; k: r' f/ F5 `4 t u8 v/ l. S7 } begin
5 y; Y' _1 o( y# }0 Z* g( l) J wait for 1 sec
6 D& m6 y# l4 ?6 C& I# Y# x create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die)
, k! }# r" a& { B end9 H6 G) ~; t! e7 n3 q
end( x' n9 `" J4 p$ i
& j c+ a9 S6 |- b) m8 I$ m
begin P_Creation3 arriving procedure6 I1 l( h; ?, P8 z0 b4 B
while 1=1 do
( s, U: }7 J6 s1 u, ^" c' G& L1 S begin
( W* y5 a$ T$ h6 S6 m wait for 1 sec
/ K0 V4 w6 g Q p9 ~3 _ create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
$ C' ?1 Y9 i5 I6 h3 n6 s end9 K9 m% H, A1 B, o5 `
end 6 x. w) B" o% O4 V) K! N
* I1 Y6 ]8 k1 Z! R/ Cbegin P_Creation4 arriving procedure U& d2 G. n, A5 Y( m
while 1=1 do
0 `4 A$ B# L P! H begin3 e- f4 @$ e6 P
wait for 1 sec
9 Y5 V; e! J: l7 d4 R5 E create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)
1 P& C' ], v; ?) [3 z: Y- u end
& i4 e2 y |1 U/ ^$ p/ T9 V* mend# K+ O/ W4 x( L- ~- w
$ k& J4 V: a/ j4 ] D7 |3 p' b7 y但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |