I need globally available static data under a variety of launch codes
(normal as well as a few custom codes). First off, I'm having problems
evendoing this with just the normal launch code (I have a structure with
Char[25]'s in them, but can't StrCopy from these w/o causing crashes of
the emulator (yes CALLBACK fix is in place)). So what should I do here?
Here's an example:
In an included .h:
typedef struct
{
Char name[25];
Char othername[25];
float f;
Byte a, b, c, d, e, f, g, h;
}
extern datadatype data[20];
Then in a C file:
static datatype data[20] = {
{"John", "Doe", 5.0, 1, 2, 3, 4, 5, 6, 7, 8};
...
}
In a later function, doing:
Char s[25];
StrCopy (s, data[1].name);
... This causes crashes, bus errors, all sorts of stuff in POSE...
I have the CALLBACK_PROLOGUE/EPILOGUE on my event handlers, and use no
other callback functions...