[chuck-users] Object array initialization

Ollie Glass ollieglaskovik at gmail.com
Thu Jul 13 12:11:09 EDT 2006


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


More information about the chuck-users mailing list