Skip navigation
Currently Being Moderated

Newb up and running, a few questions...

Dec 22, 2011 8:23 AM

Tags: #debugging #pdb

Ok, so I finally got the HelloWorld example from the docs to compile.  However, when I start illustrator the "Hello World" dialog does not appear.  The PlugIn is listed in the Help > System Info... dialog, and when illustrator shutsdown, the "Goodbye World" dialog does appear.


At least I got the project to compile and load into AI so I can start playing around with it, but does anyone know why the 1st dialog isn't displaying?  All the code used was directly from the getting started document with no modifications.


OK, on to debugging.  When I start debugging, I get the following warning:


If I click yes, the debugging seems to work, though I get an error when I try to step out of my plugin and into illustrator, which I assume is normal.  Is this anything I should be concerned about or can I just ignore this dialog from now on?  Also, is there a setting somewhere to ignore the error when I acidentally step back into AI?  I'm sure I'm going to be doing that alot and it would be nice to have Visual Studio just ignore me at those times.


I appreciate the help guys, it's been a chore getting this far, but I feel like I've just passed a milestone.

  • Currently Being Moderated
    Dec 22, 2011 8:31 AM   in reply to jsavage77

    Yeah, you can check that "Don't show again" -- its basically just saying "I can't debug the target you picked!", which is kind of of obvious. It shouldn't give you an error so much as a warning when you step into Illustrator code, but that's probably what you mean.


    As for the Hello World thing -- are you just popping up your own dialog, or was that an ADM dialog? If the former, its probably always there and just behind the application because the parent is incorrect -- getting the proper parent for Illustrator is a wonderful journey, full of strong curse words and new & colourful phrases!

    Mark as:
  • Currently Being Moderated
    Dec 22, 2011 9:33 AM   in reply to jsavage77

    Odd then. That should pop up 'Hello World' when its starts up & 'Goodbye World!' when it shuts down, as I'm sure is obvious. Well, popping dialogs at those points isn't somethind I'd do personally -- if I wanted to show the user a dialog I'd wait until I got the 'application started' notifier, which is a lot farther along in the load time. So I wouldn't worry about that too much.

    Mark as:
  • Currently Being Moderated
    Dec 22, 2011 11:02 AM   in reply to jsavage77

    Make sure your suites are getting registered correctly. What's sADMBasic set to when you hit that point?


    Edit: Is that the code from the sample project? Or have you modified where that dialog is popped?


    Message was edited by: btemp

    Mark as:
  • Currently Being Moderated
    Dec 22, 2011 12:12 PM   in reply to jsavage77

    The Selectors & Callers are just glorified "action" notifiers. They could have made it one big enum list, but they broke it into classes so the code would look be more readable (which is good!). kSPInterfaceCaller just contains sub-actions like startup, shutdown & 'about'. The other callers (menu, annotation, tools, notify, etc.) are more interesting from a 'doing stuff' point of view

    Mark as:
  • Currently Being Moderated
    Dec 23, 2011 4:01 AM   in reply to jsavage77

    I was asking more about whether sADMBasic is pointing to valid data at that point. Its possible the suites haven't been loaded at that time, or that there is some issue with how they are being loaded. Did you check the value of 'error' there?

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points