Using the XMP Toolkit in Illustrator

I'm trying to read information from the XMP metadata of a linked image in Illustrator from a Plugin. The SDK doesn't seem to provide a full API for manipulating XMP apart from the ability to obtain the XMP packet from an art object via the AIArtSuite with GetArtXMP(...) etc.
So naturally I went for Adobe's XMP Toolkit to do the hard work for me, however I've run into some strange issues that have me a little stumped. Basically, no matter what I do, after calling anything from the XMP Toolkit (SXMPMeta), I end up with either a SIGABRT or BAD_ACCESS in a random object destructor such as ai::FilePath or std::string.  I assume this is due to some memory being deallocated too early based on my usage of the toolkit.
Doing a bit more reading, I see that the XMP Toolkit uses a singleton pattern under the hood. This leads me to believe that there is some conflict with Illustrator's own implementation of the toolkit and my own.
Could anyone shed any light on this? Is there another way I should be doing this? Any help anyone can give me would be hugely appreciated!
Thanks!
-W
*Edit: I've linked to the XMP Toolkit both statically and dynamically, each time with the same results.
Another interesting thing I noticed is that if I compile both my plugin and the XMP toolkit with "Symbols Hidden By Default" (GCC_SYMBOLS_PRIVATE_EXTERN) set to "NO", I don't get a crash, but I can't register my namespaces. They just don't appear in the list of namespaces even after dumping the namespace list out directly after the call to SXMPMeta::RegisterNamespace(...)
Should I be asking in the XMP Toolkit forum?

Please ignore this post. The problem was in my own code. I was stomping over memory that wasn't mine to stomp over.
/idiot

Similar Messages

  • How can I delete a row in access using the database toolkit?

    I want to delete just one row of a access table using the database toolkit. Can it be done and if so How?

    Take a look at page A-1 of the database connetivity manual. It has information on making a sql query that will delete. You will need to use this command with the dbtools execute query function. Look in the shipping examples for an example with this function.

  • How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    For my part you are welcome, sdowers.
    Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
    I just came to remember a warning that needs to be given:
    The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25.

  • I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    You only need the ODBC driver on each computer. If you are distributing the SQL Toolkit app as an executable and do not install the whole toolkit on each computer, you'll need the SQL Toolkit support files. This is about a dozen files. You can get the list at http://digital.ni.com/public.nsf/websearch/b814be005f9da9258625658700550c75?OpenDocument.

  • How to generate a gps signal using the PXI-5671 after generating a gps binary file using the gps toolkit

    Hi,
    I am trying to test a GPS receiver and would like to use the PXI-5671 to stream a GPS binary data file which was generated using the GPS toolkit. I tried using the RFSG Arbitrary Waveform Generation.vi but it doesn't work.  Is there a sample code that will allow me to do this?
    Thank you.

    Hello,
    The NI-RFSG driver certainly allows you to stream waveform files to signal generators without the use of the GPS Toolkit, as shown here. However, the NI-RFSG driver does not provide the user with out-of-box applications that can stream GPS waveforms with Almanac and Ephemeris information to various signal generators. For this reason, the NI GPS toolkit will be needed. 
    The only alternative is that you will gather your own Almanac and Ephemeris files and implement your own functionality using the base RFSG driver to generate and stream the GPS signals. This is something that you would need to do on your own, which could prove to be difficult, thus making the GPS toolkit the best option.
    I hope this information helps.
    Regards
    Cameron T
    Applications Engineer
    National Instruments

  • How do I delete a row in Microsoft Access from a vi using the database toolkit

    Using the database toolkit 1.01 how can I delete a row from my vi

    Bambi,
    I know you already got the answer from Jeremy in the LabVIEW Forum, but I wanted to place this link here so that other users could see the answer.
    How do I delete a row in Microsoft Access from a vi using the database toolkit
    Evan

  • Using the Internet Toolkit

    I am able to successfully send an e-mail using the Internet Toolkit; however, the "message" is always empty (the text string wired to message in my VI does not appear in the e-mail). I have tried different types of Email VIs and I always have the same problem. I am running Windows and I have charset=us-ascii. What am I missing?

    As I recall this was an old bug that I patched in my code some time ago. Unfortunately I don't remember what the exact problem was. Send me your email address and I'll send you a VI that I know works.
    Also, are you needing to include attachments?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Make an XBar chart using the SPC toolkit?

    Hello,
    I am still learning LabView and I am wondering the best way to create an XBar chart using the SPC toolkit. Do I simply put the Xbar chart vi and the Draw Chart vi in there? Does that take every 5 data points or how does that work?
    David Vaughn

    Hi Dave,
    It looks like the X-bar & S Chart.vi assumes that you're giving it an array where each row represents a collection of samples.  Each row is averaged, and the value is plotted on the X-bar chart.  I'm assuming you're going to have an array of these slope values that you eventually want to plot in an X-bar Chart.  In that case, you can simply use the Build Array function to turn your 1D array of samples into a 2D array.  I think you may need to use the Transpose 2D Array function to turn your 1D array into a column of values.  Then wire this 2D array into the X-bar VIs and you should be set.
    Now if you want to generate your X-bar chart in "real-time", i.e. you want the X-bar chart to update as your VI runs and more slope values are calculated, you should check out [labview]\examples\spc\spc_demo.llb\"Real-Time" SPC Demo.  This is an example VI that shows an X-bar chart updating as values are calculated.
    I hope this helps,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • IllegalArgumentException using the MacBinary toolkit

    all,
    i'm using the MacBinary Toolkit 2 in my applet code to support resource forks on a MAC system. The IE on MAC OS X raises an error while loading the applet:
    java.lang.IllegalArgumentException: Illegal access: glguerin.io.imp.mac.ten.TenForker
    the error happens here:
    FileForker.SetFactory( Common.selectFactoryName( "macbinary.forker" ) );
    Please help!
    thanx

    And what makes you think you should ask ppl here instead of who created that code, ding-bat?

  • How to create an excel workbook using the excel toolkit

    I've starte working with the excel toolkit combined with the GOOP toolkit. After finding out that the GOOP Toolkit apparently has problems working with LabView 5, with which I developed my application, I changed to LabView 6. My first step was to open an existing excel workbook. Here I was successful. On the other hand I could not create a workbook using the excel open vi. Did I miss something?

    "Goyo" wrote in message
    news:50650000000800000060510000-1023576873000@exch​ange.ni.com...
    > I've starte working with the excel toolkit combined with the GOOP
    > toolkit. After finding out that the GOOP Toolkit apparently has
    > problems working with LabView 5, with which I developed my
    > application, I changed to LabView 6. My first step was to open an
    > existing excel workbook. Here I was successful. On the other hand I
    > could not create a workbook using the excel open vi. Did I miss
    > something?
    There's an input to the excel open that chooses "open workbook from file" or
    "open new workbook" which should do it. Unless you meant 'worksheet' in
    which case there is another function in the tookit to do that.

  • Is it possible to use the Insert Key in Illustrator?

    I have a massive block of dummy text set up in Illustrator 5 and the easiest way for me to change the dummy text is to overwrite it as one would when using the Insert function.

    PC's usually have a physical 'Insert' key located in the same space as Home / Page Up / Page Down / Delete & End. This key allows you to overwrite text as you write. Wikipedia says it best "
    The first is overtype mode, in which the cursor, when typing, overwrites any text that is present on and after its current location." < this is what I would like to be a ble to do.

  • Can I use Embroidery i2 even though I'm only using the trial version of Illustrator?

    I'm trying to create embroideries and I heard this is a really great program but I want to test it out before buying the full version of Illustrator.

    While possible, I would say it is not too likely you will find someone familiar with whatever Ebroidery i2.  Most trial versions of Adobe software are fully functional.  INstall the trial and see if it works as you wish it to.

  • Is it possible to simulate large-scal​e non-linear systems using the Simulation Toolkit?

    Hi,
    I am new to LabVIEW, having used Matlab/simulink for a few years. I am trying to simulate a relatively complex non-linear vehicle model. In Matlab/Simulink I would use an m-file to describe the system equations (i.e. x1_dot=..., x2_dot=..., etc.). Is there a similar method in LabVIEW? I have got a simple simulation running using the 'eval formula node', a very ungainly method of substituting variables, and an integrator in a 'simulation node'. It takes about an hour to run a simulation that takes 3 seconds in Matlab. I just need to know if it is realistic to do large-scale simulations in LabVIEW, or if it was not designed for that and I should persuede the management to go
    back to Matlab!!!
    If it is possible, where can I find help on the subject? I have spent a long time looking on the web and come up with very little.
    Many thanks in advance,
    Paul.

    If these are simple differential equations, easiest would be a for loop with a bunch of shift registers, one for each x1, x2, etc. containing the current values.
    In your case, you would calculate all the derivatives from the instantaneous values inside the loop, then add them to each value before feeding them to their respective shift register again.
    The attached very simple example shows how to generate an exponential decay function using the formula dx/dt= kx (and k is negative). The shift register in initialized with the starting condition x=1.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DiffEQ.vi ‏33 KB

  • Why can't tool shortcuts contain either function keys or the Cmd or Opt modifiers? I can do this in InDesign and want to use the same shortcuts in Illustrator.

    For example, I started using F4 for the Selection tool, because typing "v" for the most basic tool is risky when working with type. I was updating my shortcuts in Illustrator to mirror my InDesign shortcuts and got shut down on the function key as shortcut. "Tool shortcuts cannot contain either function keys or the Cmd or Opt modifiers."

    What is the add-on that's keeping you from installing Firefox 14?
    A problem was noticed last week with certain ways of managing Facebook cookies. You can check these threads and see whether that issue is relevant to you:
    * [https://support.mozilla.org/en-US/questions/934784 Certain websites do not work properly in normal browsing mode but work in private browsing perfectly.]
    * [https://support.mozilla.org/en-US/questions/934791 facebook post area when clicked gives https://www.facebook.com/ajax/metacomposer/attachment/status/status.php?targetid=695296250&xhpc=composerTourStart]

  • Using the Pen Tool In Illustrator

    I am a beginner and trying to re-create a logo with better resolution for a customer.  I am having trouble with the e filling in with black.
    I am attaching a screen shot to help you see what I am talking about.  It will not let me take the color out???

    If Larry's suggestions didn't work for you, you might have to just rebuild the "e". If you construct the outer and inner part in two separate paths, then select them both and create a compound path, it should difference out the inside of the shape and you'll be in business. Sort of the long way around, but an "e" isn't a complicated shape and if you're new to Illustrator the practice might not hurt.
    Good luck!

Maybe you are looking for

  • Syntax error while checking extractor in rsa3

    We are trying to check the extractor 2LIS_11_VAHDR in RSA3 , when we press the extraction button , we are getting following error :- SHORT TEXT:- Syntax error in sap "SAPLXRSA" ERROR ANALYSIS :- The following syntax error was found in the program SAP

  • Embedded Audio & Firefox

    I have Dreamweaver CS3. I used the insert media plugin feature to embed an MP3 file. I set the controls to be small, but visible. It works fine in Internet Explorer 7. It doesn't even show up or play in Firefox. In addition, if you select it in desig

  • Collage, changing from pse format to psd

    I can create collages, but don't know how to save them as psd or jpg files so that I can use the collages in my scrapbook software.  How can I get them from the editor to iphoto or picassa or a picture file?

  • How to buy an upgrade to LR5 in Peru?

    I moved to Peru in April and now want to upgrade from LR4.4 to LR5. I've tried using my ID from the UK and I'm told I'm in the wrong country. I have a new ID for Peru now. Everytime I press the buy button it takes me to the Latin America pages and as

  • Select multiple rows on a JTable

    Hi! Given: JTable, multiple selection allowed Wanted: a way to be able to set multiple non-continuous rows selected eg. on a JTable with 5 rows, I want to set rows 1, 3 and 5 selected Anyone? Stoffel.