Skip to main content
msdobrescu
Known Participant
July 23, 2015
Question

PlugPlugErrorCode 51

  • July 23, 2015
  • 3 replies
  • 2864 views

Hello,

I try to run the SnippetRunnerPlugin sample. The UI did not show, so I have modified the sample in order to get the PlugPlugErrorCode value returned by the LoadExtension() method.

It did. The PlugPlugErrorCode returned is 51. But PlugPlugErrorCode have not such documented value. What means 51?

Here is how I have modified it:

ASErr SnippetRunnerPlugin::GoMenuItem( AIMenuMessage *message )

{

    ASErr result = kNoErr;

    PlugPlugErrorCode err = PlugPlugErrorCode::PlugPlugErrorCode_success;

    try {

        if (message->menuItem == this->fAboutPluginMenu)

        {

            SDKAboutPluginsHelper aboutPluginsHelper;

            aboutPluginsHelper.PopAboutBox(message, "About SnippetRunner", kSDKDefAboutSDKCompanyPluginsAlertString);

        }

        else if (message->menuItem == this->fShowHidePanelMenu)

        {

            if (this->fSnippetRunnerPanelController)

            {

                AIBoolean visible = false;

                fSnippetRunnerPanelController->IsPrimaryStageVisible(visible);

                if(visible)

                {

                   err = fSnippetRunnerPanelController->UnloadExtension();

                }

                else

                {

                    err = fSnippetRunnerPanelController->LoadExtension();

                }

                if (err != PlugPlugErrorCode::PlugPlugErrorCode_success)

                {

                    sAIUser->MessageAlert(ai::UnicodeString(std::to_string(err)));

                }

            }

        }

    }

    catch(ai::Error& ex) {

        result = ex;

    }

    return result;

}

This topic has been closed for replies.

3 replies

msdobrescu
Known Participant
November 21, 2015

Today I have remembered to try to solve this.

It simply worked, probably there was some bug in the Adobe runtimes at the time.

ishekk
Participant
November 12, 2015

Hi I am also not able to load FreeGridUI extension which was part of Illustrator CC 2015 SDK. LoadExtension() is returning error code 51(hex 33). I am just copying FreeGridUI folder to extensions folder and even renamed it to com.adobe.illustrator.freegridui.panel.

What is meant by building FreeGridUI project and am I missing any other step?

ishekk
Participant
November 13, 2015

Today, I was able to load the plugin by turning on the debug mode. On Windows, open the registry key HKEY_CURRENT_USER/Software/Adobe/CSXS.4 and add a key named PlayerDebugMode, of type String, and value 1. Unfortunately Illustrator CC C++ sdk does not tells this step.
A Short Guide to HTML5 Extensions | Adobe Developer Connection

Inspiring
July 24, 2015

You need to build and install the SnippetRunnerUI project.

msdobrescu
Known Participant
July 24, 2015

Well, that is what I did. The error came after...

Inspiring
July 24, 2015

What version(s) of Illustrator are you using? There are issues with installing plugins in Illustrator CC 2015.