Copy link to clipboard
Copied
Hi All,
I've pretty strange issue while running the CCU example.
Whenever I use the 2014 AE SDK everything is fine.
Whenever I use the 2015 AE SDK the example works fine for AE 2015/2015.3 but crashes on AE 2014.
Digging slightly into the code I saw that the issue happens when drawbot suite is acquired.
In the function "AEFX_AcquireDrawbotSuites" in the AEFX_SuiteHelper.c, the third acquire fails with the following error: PF_Err_BAD_CALLBACK_PARAM
Any ideas why that can happen?
PF_Err AEFX_AcquireDrawbotSuites( PF_InData *in_data, /* >> */ PF_OutData *out_data, /* >> */ DRAWBOT_Suites *suitesP) /* << */ {
PF_Err err = PF_Err_NONE; if (suitesP == NULL) { out_data->out_flags |= PF_OutFlag_DISPLAY_ERROR_MESSAGE;
PF_SPRINTF(out_data->return_msg, "NULL suite pointer passed to AEFX_AcquireDrawbotSuites");
err = PF_Err_UNRECOGNIZED_PARAM_TYPE; }
if (!err) { err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_DrawSuite, kDRAWBOT_DrawSuite_VersionCurrent, NULL, (void **)&suitesP->drawbot_suiteP); } if (!err) { err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SupplierSuite, kDRAWBOT_SupplierSuite_VersionCurrent, NULL, (void **)&suitesP->supplier_suiteP); } if (!err) { err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_VersionCurrent, NULL, (void **)&suitesP->surface_suiteP); } if (!err) { err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_PathSuite, kDRAWBOT_PathSuite_VersionCurrent, NULL, (void **)&suitesP->path_suiteP); } return err; }
This is because the macro kDRAWBOT_SurfaceSuite_VersionCurrent points to a version of the surface suite that isn't supported in AE2014. I had this problem and found the best way to get round it is to edit the file AEFX_SuiteHelper.c directly, replacing it with kDRAWBOT_SurfaceSuite_Version1, so:
err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_Version1, NULL, (void **)&suitesP->surface_suiteP);
You could instead edit DrawbotSuite.h, changing the macro kDRAWBO
...Copy link to clipboard
Copied
This is because the macro kDRAWBOT_SurfaceSuite_VersionCurrent points to a version of the surface suite that isn't supported in AE2014. I had this problem and found the best way to get round it is to edit the file AEFX_SuiteHelper.c directly, replacing it with kDRAWBOT_SurfaceSuite_Version1, so:
err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_Version1, NULL, (void **)&suitesP->surface_suiteP);
You could instead edit DrawbotSuite.h, changing the macro kDRAWBOT_SurfaceSuite_VersionCurrent to kDRAWBOT_SurfaceSuite_Version1, and leaving AEFX_SuiteHelper.c as it was.
Copy link to clipboard
Copied
Thanks a lot, Christian,
That worked for me))
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more