Copy link to clipboard
Copied
I seem to be getting an error out of the blue in my plugin (C++, Windows, CS6 / CC) I don't think I've touched anything, it happens when I try and set a PIActionList with spSActionList:
error = sPSActionList->Make(&list);
It seems the suits not assigned but has never thrown me an error before and I'm very certain that I have not changed anything to do with the suit libraries. Also since it's not throwing any errors on the sPSActionDescriptor->XYZ I have no idea where to even start with fixing:
Would anyone have any suggestions on how to proceed?
Copy link to clipboard
Copied
What's the error? Which version of the SDK did you use? Which version of Photoshop are you running against?
Copy link to clipboard
Copied
"Unhandled exception at 0x00007FFB88046BFA (PhotoshopPlugin.8LI) in Photoshop.exe: 0xC000041D: An unhandled exception was encountered during a user callback."
I'm using the C++ CS6 SDK, and Photoshop is: CS6 / CC
Copy link to clipboard
Copied
What is sSPBasic? sSPBasic->AcquireSuite? Show all the functions in sSPBasic and see if they look somewhat correct.
Copy link to clipboard
Copied
That's theAcquireSuite function found in 'PIUSuites.h', The generic T * 'suite' is not being initialized, I'm guessing by the spSActionList
//PIUSuites.h
//...
template<class T> class AutoSuite
{
private:
T * suite;
const long suiteVersion;
const char * suiteName;
SPErr error;
// T& operator *(); // don't write this but maybe this would be it{ return *suite; }
// make sure the compiler doesn't create this
AutoSuite();
AutoSuite& operator=(const AutoSuite &tmp); // I don't need this but compiler warns about missing
void AcquireSuite(void)
{
if (sSPBasic != NULL)
{
error = sSPBasic->AcquireSuite(suiteName,
suiteVersion,
(const void**)&suite);
if (error) throw((OSType)error);
}
else
{
throw((OSType)kSPBadParameterError);
}
}
//...