13 Jul
2006
13 Jul
'06
12:11 p.m.
I'm trying to declare an object array and initialize it later in a function: Channel channels[]; initChannels(4, 16); fun void initChannels(int num, int length) { Channel ch[num] @=> channels; ... This gives a segmentation fault, and trying like this: fun void initChannels(int num, int length) { channels[num]; gives a bus error. How should this be done? Thanks always, Ollie