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

sPSActionList->Make is all of a sudden throwing a basic suit error.

Engaged ,
Aug 30, 2017 Aug 30, 2017

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:

Screenshot_110.png

Would anyone have any suggestions on how to proceed?

TOPICS
SDK

Views

867

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
Adobe Employee ,
Aug 30, 2017 Aug 30, 2017

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?

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 ,
Aug 30, 2017 Aug 30, 2017

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

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
Adobe Employee ,
Aug 30, 2017 Aug 30, 2017

Copy link to clipboard

Copied

What is sSPBasic? sSPBasic->AcquireSuite? Show all the functions in sSPBasic and see if they look somewhat correct.

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 ,
Aug 30, 2017 Aug 30, 2017

Copy link to clipboard

Copied

LATEST

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);

}

}

//...

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