This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there something like maximum size of structure or array?

Hi.

I faced very weird problem.

below is my structure of custom array; if I set MAX_MYARRAYCOUNT as 20, it's OK. but if I set MAX_MYARRAYCOUNT as over 30, device crushed(iPhone can't find device).

What's going on here?? very weird.

Any suggestion of solution here? Should I use dynamic linked list?

Thanks.

#define MAX_MYARRAYCOUNT 20

typedef struct _MyArray

{
	int intValue[MAX_MYARRAYCOUNT];
	double floatValue[MAX_MYARRAYCOUNT];
	int sec[MAX_MYARRAYCOUNT];
	int cnt;
	int pt;
}MyArray;