quarryman
Newbie level 2
- Joined
- Apr 28, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 16
I'm trying to hook up a new channel (channel 2) to an existing one (channel1) like so:
This seems to work fine at this level, ie if I do this check, it doesn't cause a fatal. I have no compile errors.
if (channel2 ==null) `cvm_fatal
However when I go up to the subenv above this
if (channel2 ==null) `cvm_fatal
Then I get a fatal at run-time. What else do I need to ensure that the channel is not fatal at the next level up?
Code:
channel channel1;
channel channel2;
extern function new(
channel channel2
);
function subenv1::new(
channel channel2
);
this.channel1 = new();
xactor1(
this.channel1
);
xactor2(
this.channel1
);
//channel1 is a connection between both xactors
//hook new channel2 up to channel1
[B]channel2 = this.channel1[/B]
This seems to work fine at this level, ie if I do this check, it doesn't cause a fatal. I have no compile errors.
if (channel2 ==null) `cvm_fatal
However when I go up to the subenv above this
if (channel2 ==null) `cvm_fatal
Then I get a fatal at run-time. What else do I need to ensure that the channel is not fatal at the next level up?
Last edited by a moderator: