• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Contributor ,
May 23, 2022 May 23, 2022

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

TOPICS
SDK

Views

171

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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