谢谢shakie的耐心解释,我按照你的建议改了代码如下(并在window窗口定义了L_null);
7 c7 J0 F' F" L; O5 b4 c' x- U, Lbegin model initialization function
+ r8 d8 ^; k* }8 e, w1 C) i0 z create 1 load of load type L_null to P_Creation2( r+ E$ o2 U; o5 f/ h
create 1 load of load type L_null to P_Creation3
4 \9 a# x4 S% t$ H' S) B9 N0 W create 1 load of load type L_null to P_Creation4* y8 w3 @) x: F
return true
. s) V# r2 O* f Eend
, k- |+ r! v5 Q* }. s! ^, O# z8 t
3 `0 Z, x( ~9 _1 M f( [8 Xbegin P_Creation2 arriving procedure( k3 n. N3 M; i* A! t8 {
while 1=1 do
/ `6 u9 r2 l$ w6 _7 r9 j! E6 { begin
1 M+ e4 T- p" r wait for 1 sec
$ l% n+ E, @7 H# J1 _" f1 u create 1 load of load type L_C2 to oneof(0.2 _In2,0.8:die): r1 x1 D( T8 N8 ]7 e# ~
end
! k+ J2 A, H/ o, Y& \+ E, Jend, C( ]" s% l4 ?7 ^' X& [9 k
4 b6 u7 P3 W5 R* s& r9 w# tbegin P_Creation3 arriving procedure' ~# ?/ g* p, w! f5 F
while 1=1 do H- G2 R; Q. g. A7 @- `
begin
- A( b! S- c% m$ Z6 o8 n+ \ wait for 1 sec
. l8 _, P3 m$ f) [7 k create 1 load of load type L_C3 to oneof(0.2 _In3,0.8:die)
9 H& t4 C* x* L9 c end" ?$ P3 ?% @6 e0 N& H
end 1 }: j" o0 I; J7 A8 g6 ]
: e9 z- S. J5 T- ?( }
begin P_Creation4 arriving procedure1 \. z# ^: h x4 N( Q/ L
while 1=1 do3 t% M5 g+ f. o, l8 q
begin
* O; _ G7 L, s D: I7 ` wait for 1 sec% D& M, F) r1 F) R
create 1 load of load type L_C4 to oneof(0.2 _In4,0.8:die)# m* s( H0 l" _% O T9 B2 D8 p( a7 ]
end3 k2 a# i4 l# i5 p8 ~% T
end
, B0 I3 q. H% E" s% |! Y0 c
4 m, @: q$ P" y但运行时仍然出现相同的问题(提示:ox100f5e09指令引用的“ox00000028"内存。 该内存不能为"read"),无法运行。不知问题出现在哪里,请高手指点,多谢! |