Skip to main content
Inspiring
May 23, 2022
Question

Is it safe to store an array of doubles in Sequence Data

  • May 23, 2022
  • 1 reply
  • 369 views

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

This topic has been closed for replies.

1 reply

Community Expert
May 23, 2022

seems ok. perhpas it's a mater of null terminating the A_char string when copying the data?

Inspiring
May 23, 2022

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?

Community Expert
May 23, 2022

uh... it stops in release mode, but not when running AE? i doubt i understand you correctly...