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

76

Likes

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
Adobe Community Professional ,
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?

Likes

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?

Likes

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
Adobe Community Professional ,
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...

Likes

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.

Likes

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