Here is the error message:
Code: Untitled.c Select all
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d2882 PS : 0x00060b30 A0 : 0x80088ea8 A1 : 0x3ffc7fd0
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000f9f
A6 : 0x3ffc46dc A7 : 0x00000000 A8 : 0x800d2878 A9 : 0x3ffc7f80
A10 : 0x00000001 A11 : 0x3f401440 A12 : 0x3f40136c A13 : 0x00005080
A14 : 0x3f401440 A15 : 0x3ffb32b8 SAR : 0x00000004 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffd
Backtrace:0x400d287f:0x3ffc7fd0 0x40088ea5:0x3ffc8020
Code: Untitled.c Select all
Timeptr->data = tPtr;Code: Untitled.c Select all
tPtr = malloc(4000 * sizeof(double));
Timeptr->data = malloc(sizeof(*Timeptr->data)*4000);Code: Untitled.c Select all
struct emxArray_real_T {
double *data;
int *size;
int allocatedSize;
int numDimensions;
boolean_T canFreeData;
};