Copy link to clipboard
Copied
Dear AE fellows,
I was wondering if storing an array of doubles in Sequence Data could cause memory problems.
I observe AfterEffects trigger a break point with memory error in Visual studio release mode only. But I'm not sure what exactly causes this problem (hard to debug when it happens in release mode). My sequence Data structure looks like this.
typedef struct
{
double coord[4][2];
bool isFlatB; // indicator for type of data (flat/unflat)
A_char stringP[1001];
}unflatSequenceData, * unflatSequenceDataP, ** unflatSequenceDataH;
struct flatSequenceData
{
double coord[4][2];
bool isFlatB; // indicator for type of data (flat/unflat)
A_char user_input1_save[1001];
};
Yaroslav
Copy link to clipboard
Copied
seems ok. perhpas it's a mater of null terminating the A_char string when copying the data?
Copy link to clipboard
Copied
Thanks, Shachar!
A_char behaved stable so far.
But I'll check.
May be there is another bug somewhere.
BTW, I was curious, sometimes my visual studio actually stops at break points when in release mode. Is there a way to force it to do it when running after effects?
Copy link to clipboard
Copied
uh... it stops in release mode, but not when running AE? i doubt i understand you correctly...
Copy link to clipboard
Copied
I think if you have your compiler settings to include debug symbols in release mode you will still hit breakpoints.