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

Hybrid Extension Zombie

Explorer ,
Jan 10, 2014 Jan 10, 2014

I wrote a hybrid extension that dispatches a CSXS event when it is installed.  My sdk plug-in listens for said event.  Everything was working when these two pieces were installed.  If the extension is not installed then the SDK plugin should not communicate with the extension.  I unstalled this extension from extension manager. When I stepped through the Illustrator SDK code I saw that the CSXS communication was still taking place.  Any ideas why?

If I change the name of the event listener in the SDK plugin then the CSXS communication does not take place.  Why is this extension lingering?

TOPICS
SDK
1.2K
Translate
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
Enthusiast ,
Jan 13, 2014 Jan 13, 2014

Have you ever tried using FlashBuilder for developping your extension?

Are you sure having reoving the extension generated by lashBuiider? (debug).

Translate
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
Explorer ,
Jan 13, 2014 Jan 13, 2014

Yes, sorry.  I probably wasn't clear.

"Extension A" was made in ExtensionBuilder for FlashBuilder.

"Plugin A" is a .AIP c++ SDK plugin that uses "Extension A" as the UI.

"Extension B" is another ExtensionBuilder piece that is only supposed to interact with "Plugin A" when it is installed.

For some reason when I uninstall "Extension B", the "Plugin A" acts like it's still there.

Translate
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
Enthusiast ,
Jan 14, 2014 Jan 14, 2014

Extension A and Extension B do not raise the same csxs event?

So, even if you have uninstalled one of them, your plugin keeps on triggering on this csxs event.

Or try to give a look in this directory:

Mac:

/Users/toto/Library/Application Support/Adobe/CS5.5 (or CS6)ServiceManager/extensions.

Win:

c:\Program Files (x86)\Common Files\Adobe\CS5.5ServiceManager\extensions

you may be find something in here.......  the extension you have debugged.

Just erase it. That should do the trick. 

Translate
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
Explorer ,
Jan 14, 2014 Jan 14, 2014

Well you were right... There were some leftover swfs in there from the extension I uninstalled, but getting rid of them didn't seem to solve the problem.  I'm still getting a csxs event from a non-existant extension.  How annoying.

Translate
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
Enthusiast ,
Jan 15, 2014 Jan 15, 2014

what csxs event are you listening to?

com.illustrator. ????

Are you sure not having an other extension raising the same event? (Illustrator sample for instance). 

Translate
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
Explorer ,
Jan 15, 2014 Jan 15, 2014

Oh, I made one that looks like this:

"net.company.stage.events.EnableStage"

Only one extension creates it and only one plugin is listening for it.

Translate
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
Enthusiast ,
Jan 15, 2014 Jan 15, 2014

you should give a look at this:

http://cssdk.s3-website-us-east-1.amazonaws.com/sdk/1.5/docs/WebHelp/programmers_guide/debugging.htm...

Explanations about debugging and logging creative suite extension. 

Translate
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
Enthusiast ,
Jan 15, 2014 Jan 15, 2014
LATEST

try this:

LogBook logs

You can use the LogBook application to track logging messages sent between the various platform

components. To use this application for logging:

1. Include this code in your application main MXML file so LogBook can listen to and display the logging

     information traced by your extension:

var loggingTarget:LocalConnectionTarget = new LocalConnectionTarget("_test");

loggingTarget.filters=["*"];

loggingTarget.level = LogEventLevel.ALL;

loggingTarget.includeDate = true;

loggingTarget.includeTime = true; l

oggingTarget.includeCategory = true;

loggingTarget.includeLevel = true;

logger = Log.getLogger(this.className);

logger.info("my message");

2. Go to http://code.google.com/p/cimlogbook/downloads/list and download LogBook-1.3.air

3. Install the AIR application and start it.

4. Enter the local connection name, as passed into the constructor of LocalConnectionTarget. In the

example, this is '_test'.

5. Start the host application and open your extension. You should see log messages in LogBook.

6. To listen to internal messages set the local connection name in logbook to '_csxs2'

Translate
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