Keep getting "internal verification failure{no current context}" error when using stream suite
Hey guys, I'm trying to getting some layer stream using stream suite, but I keep getting "internal verification failure{no current context}" error on After Effects cc 2015. but the same code working fine on After Effects cs6. Here's my code,
AEGP_TwoDVal value;
A_Err err = A_Err_NONE;
AEGP_StreamRefH stream = NULL;
ERR(_suites->StreamSuite4()->AEGP_GetNewLayerStream(_plugin_id, layer, AEGP_LayerStream_ANCHORPOINT, &stream));
AEGP_StreamValue2 val;
AEGP_StreamValue2 *sample_val = &val;
AEFX_CLR_STRUCT(val);
ERR(_suites->StreamSuite4()->AEGP_GetNewStreamValue(_plugin_id, stream, time_mode, time, ignore_expression, &val)); // "internal verification failure{no current context}" at this line
value.x = val.val.two_d.x;
value.y = val.val.two_d.y;
ERR(_suites->StreamSuite4()->AEGP_DisposeStreamValue(&val));
ERR(_suites->StreamSuite4()->AEGP_DisposeStream(stream));
And the error code is "A_Err_PARAMETER".
But the code is working fine on CS6. Have you guys ever running into this problem?
