Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

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

Contributor ,
May 23, 2022 May 23, 2022

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

TOPICS
SDK
269
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2022 May 23, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 23, 2022 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2022 May 23, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 29, 2022 May 29, 2022
LATEST

I think if you have your compiler settings to include debug symbols in release mode you will still hit breakpoints.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines