Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Have you ever tried using FlashBuilder for developping your extension?
Are you sure having reoving the extension generated by lashBuiider? (debug).
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
you should give a look at this:
Explanations about debugging and logging creative suite extension.
Copy link to clipboard
Copied
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'
Find more inspiration, events, and resources on the new Adobe Community
Explore Now