Exception to the basic operations on iOS

Basic information:

XMP-Toolkit-SDK-CC201306

Targeting to iOS 5.0

OS X 10.8.4

XCode 4.6.3

I try to use the simple sdk XMP to embed metadata in a pdf document, but I can't even run basic operations without getting an exception:

#import "PDFMetadataHandler.h".

#include < String >

using the namespace std

#define IOS_ENV

#define TXMP_STRING_TYPE string

#import "XMP.hpp".

#import "XMP.incl_cpp".

public static XMP_Status DumpToString ( void * Conref, XMP_StringPtr outStr XMP_StringLen outLen)

{

XMP_Status status = 0;

string * dumpString = (std:string*) Conref.

try {

dumpString->append(outStr);

} catch ( ... ) {

status = - 1;

}

return status;

}

@implementation PDFMetadataHandler

+ (NSString*) GetDocumentIdentifier: (NSString*) metadata

{

return @"";

}

+ (NSString*) CreateMetaData: (NSString*) documentIdentifier

{

string = identifier [documentIdentifier cStringUsingEncoding:NSUTF8StringEncoding];

Meta SXMPMeta ;

String returnValue;

meta. DumpObject (DumpToString, & returnValue);

meta. SetProperty ( kXMP_NS_PDF, 'test', 'data' );

NSLog([NSString stringWithUTF8String: returnValue. c_str()]);

return [NSString stringWithUTF8String: returnValue. c_str()];

}

@end

I get an exception

meta. SetProperty ( kXMP_NS_PDF, "test", "data" );

Similarly, if I change the constructor to

SXMPMeta meta ( kXMP_UseNullTermination kNewlineRDF );

and add kNewlineRDF as in the samples (or see below), except then happens in the constructor.  The two exceptions occur on this line:

XMP_AutoMutex (XMP_BasicMutex * _mutex): mutex (_mutex) {AcquireBasicMutex (*this-> mutex) ;}}

with EXC_BAD_ACCESS (code = 1, address = 0 x 4)

public static const char * kNewlineRDF =

"< RDF: RDF = xmlns:rdf' '. http://www.w3.org/1999/02/22-rdf-syntax-ns# '>"

"" < RDF rdf: about ='Test: XMPCoreCoverage / kNewlineRDF' xmlns:ns1 ='ns:test1 /' > ' "

""

"< ns1:HasCR > ASCII & #xD; "CR < / ns1:HasCR >.

"< ns1:HasLF > ASCII & #xA; ' LF < / ns1:HasLF >.

"< ns1:HasCRLF > ASCII & #xD; & #xA; "CRLF < / ns1:HasCRLF >.

""

"" < / RDF > ""

"< / RDF: RDF >"; "


Hello

Description of the exception and code that you shared, it seems that you missed XMPFiles library initialization. You must call the SXMPFiles::Initialize () function. Also be aware that you must provide the path of the folder containing the PDF XMPFiles plugin to this function as an argument call.

Hopefully this will solve your problem. Please come back back with your findings.

Kind regards

Aman

Tags: Adobe Developers

Similar Questions

  • the new operation system ios 10 supports iphone 5

    I downloaded ios 10 on iphone 5, but he said that I should connect to itunes

    Yes, it works on the iPhone 5. Your iPhone needs to be restored. It entered into recovery mode if you do not see the connect to iTunes screen.

    If you are unable to update or restore your iPhone, iPad or iPod touch - Apple supports

    iPhone

    • iPhone 7
    • iPhone 7 more
    • iPhone 6 s
    • iPhone 6 sec more
    • iPhone 6
    • iPhone 6 Plus
    • iPhone SE
    • iPhone 5 s
    • iPhone 5 c
    • iPhone 5
  • Impossible to partition the disk, download aq message "the operation u selected will convert the basic disk to dynamic.

    Original title: Partition Undone... !!

    Hey Guyz, I use Windows 7 basic, I have 4 drives on my pc... C Drive(Boot drive) & D Drive (HP Recovery Drive), CD & DVD ROM The C drive is full apprx 480 GB space and I want partition. I followed the procedure mentioned in the tutorials... I have partitioned my drive C for 18 GB just for the trial to see how the partition... After completing all stages of processing of a message box appears saying "the operation u selected will convert the basic dynamic disk. If you convert you bot b able to start installed operating system of any volume on the disk (except the boot volume). do you want to continue 2 '... If answered NO then your space partioned is stuck like disk space unallocated in Disk Management window. If SO a pop up comes to say "dynamic disk are not supported by this server confg or the operating system. Dynamic disk are not supported on clusters.        Please let me know what the problem... How to recover my unallocated space or how can I partion my disk. PArtio

    You have FOUR partitions on the hard drive.

    There is a system partition that is hidden on the front of the main road.

    The problem with adding a partition, except for what you have already experienced, is that the use of the partition or recovery from recovery discs from the recovery partition would WIPE OUT any partition created by you, and all THE data on that partition.

    If you are looking for a place to keep backups, get an external hard drive.

    OEM machines are not set up for change. They are set up to make it easy for the user to restore the operating system in its entirety, drivers and support programs, in the case of a major accident.

  • Since I changed the Windows 7 32-bit to 64-bit operating system, I can't use Firefox browser except change the browser in safe mode.

    Since I changed the Windows 7 32-bit to 64-bit operating system, I can't use Firefox browser except change the browser in safe mode. When I start the browser is not open and it displayed a message
    Mozilla Crash Reporter

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; Media Center PC 6.0; NET4.0C;. NET4.0E; InfoPath.3)

    Go to the address on: plant and tell us your last accident IDs. Then we can watch data specific to your accident and have a better idea of what is causing the problem.

    Given that everything goes well in safe mode, one of your extensions or themes is at fault. See Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems to figure out which one of your modules is the cause of the crash.

    Start here: https://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes#The_problem_does_not_occur_in_Safe_Mode

  • What are the basic criteria to keep a computer in good operating condition?

    HI: I asked a question before and I will say first my pc works fine and I have no problem.  I want to know, as PC users, what are the basic top of page I should or can do to keep my PC works perfectly.  First: I am a paid version of the anti-malware software and Online Armor for my firewall.  I am running Windows 7 64 bit with IE 9 - I used 10 & 11 and frankly don't like them.  I run more registry cleaner software as I think that was my fall down during the past year, why I had to reinstall my discs of recovery on 12 or more times.  Any basic help and knowledge would be appreciated as I like to learn new things - also if anyone knows of acceptable software that is allowed to run or use to keep your pc running like new thank you Dave

    Hello

    You mention AntiMalware program

    There is a free version of Malwarebytes Anti-Malware program, which works very well.

    It's also a scanner at the request, not a real-time Scanner, to make it work when you want.

    __________________________________________________________

    Registry cleaners can do more damage to your operating system any good they claim to be able to do.

    You should work only in your registry manually and then only if you know what you're doing.

    __________________________________________________________

    Here are the basic steps to take to keep your machine operating smoothly and effective:

    Search for malicious software with the FREE version of this program.

    And does not accept the option "Pay for the version" trial installation

    Download, install, update and scan your system with the free version of Malwarebytes AntiMalware:

    http://www.Malwarebytes.org/products/malwarebytes_free

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    You can clean your hard drive using these two methods.

    "Delete files using Disk Cleanup"

    http://Windows.Microsoft.com/en-us/Windows/delete-files-using-disk-cleanup#delete-files-using-disk-cleanup=Windows-7

    Using the free CCleaner program:

    http://www.Piriform.com/CCleaner

    In NO case use the registry cleaning Option in CCleaner

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And it is not recommended to use a register or a program of cleaning/TuneUP/utilities they can do more harm to your any good operating system that they claim to be able to do.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Make sure you have the latest updated drivers:

    Access the site on your computer or equipment manufacturing > Driver and Software Support Section > search your computer or hardware model number > then your operating system > locate the correct drivers > download and install.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    What are the other steps, which does not include some of the above:

    "Optimize Windows for better performance.

    http://Windows.Microsoft.com/en-us/Windows/optimize-Windows-better-performance#optimize-Windows-better-performance=Windows-7

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    It would be a good idea also run the System File Checker tool to check that everything is correct in the system files.

    "How to use the System File Checker tool to fix the files on system missing or corrupted on Windows Vista or Windows 7"

    http://support.Microsoft.com/kb/929833

    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click all programs, click Accessories , click command prompt and then click Run as administrator of . If you are prompted for an administrator password or a confirmation, type the password, or click on Allow.
    2. Type the following command and press ENTER:
      /ScannowThe SFC sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    See you soon.

  • Ok.  The printable tutorial does not seem to explain how to add layouts replacing / screens. It has been my intention add additional provisions / screens once the basic site became operational. Can you help me?

    Ok. I have a handle on my site with the publishing refresh in the browser. Yet to learn though. The printable tutorial does not seem to explain how to add layouts replacing / screens. It has been my intention add additional provisions / screens once the basic site became operational. Can you help me?

    Please specify a little more than if you are referring to versions available phone/tablet of the site you want to add to your site from Muse.

    These links would be useful:

    http://helpx.Adobe.com/Muse/tutorials/creating-mobile-layout-designs-Muse.html

    TS http://TV.adobe.com/watch/Muse-Feature-Tour/Adobe-Muse-Designing-for-Smartphones-and-table.

    https://www.YouTube.com/watch?v=_Bq1hViogS4

    Thank you

    Sanjit

  • Hello, please tell me, if iphone purchased at the Canada without a contract with the mobile operator, it will be subject to safeguards in Russia

    Hello, please tell me, if iphone purchased at the Canada without a contract with the mobile operator, it will be subject to safeguards in Russia

    You have the latest version of iOS installed and if you use not updated the software on the phone (jailbreak), the phone can't be hacked.

    Unauthorized modification of the iOS can cause security vulnerabilities, instability, reduced and another independence from...

  • iPad Pro will not install the last update of iOS, says that it is not connected to the Internet. It is connected!

    MY iPad pro(9x7) will not install the last update of iOS. I get the message it is not connected to the Internet, but it is connected! I have f

    I istalled the update on my iPhone 6 without Ant problem. I tried switching off and on again, but the result is the same, it will not be installed.

    I just read a post that Apple released the 9.3.2 update for iPad 9.7 Pro. Cannot confirm this, but not me. See post by Phil.

    iPadPro9.7 said that current operating system 9.3.1 will not update 9.3.2

  • What is the best way to get back to the basics with apple products

    I have four devices apple, IMac, IPad, iPhone 4 s & a Mac Book Pro.

    I have problems to understand all of these devices in one way or another that I just are not / can not understand the jargon associated with trying to use to update or modify my needs.

    For example the iMac that I bought at the beginning of the year, I have a separate hard drive, I realized is not password protected, I downloaded the software of Lacie hard drive manufacturing, but I do not see that it works or what to expect, I thought that to have access, you will put in a password like I do when I turn on the iMac not so simple & I lost a whole day on this & finished frustrated as no further, this is the case every time.

    I need some tips on where to start because I don't have anyone to ask what do I escaped my way through.

    I think I need to get back to the basics & get a form any order that these devices are all different but have a purpose.

    Can someone advise on where I should start it please.

    iPhone iOS 7.1.

    iPad iOS 9.2.

    Book of Mac Pro OS X 10.9, Mavericks (I think)

    IMac Yosemite 10.10

    The most important thing you can have right now are backups of your important data.   Which is often using an external USB drive and a tool called Time Machine to back up your Mac and using the service cloud either Apple or iTunes for backup of your iPhone and iPad devices.  (There are other ways to make backups, but Time Machine is a common choice).

    To learn more...  Apple puts at your disposal a web site the basics of the Mac who could help with this (and similar sites for learning iPhone and iPad), there are electronic books available for iPhone and iPad too and most Apple stores have workshops for Mac, iPhone and iPad which may help.   There are also a few books available if you prefer.  Suits you depends on how you prefer to learn.

    Apple has built into recent versions of OS X called FileVault 2disc encryption.  There is no need of software add-on for that.

    If you are not sure what version of the OS X software you use or which specific Mac you use, then you can use  > about this Mac.   That will show you the General information on your Mac, and - as you become more familiar with this and need of more details, you can ask for more details here.

    Yes, there is a huge amount that you can choose to learn and use with any one of these products, if you want, or you can choose to learn enough to get what you want to do.   It is entirely your decision.

  • How to keep the controls panel/glance through the changes of fonts more small-medium-large screen made through a window to customize the Windows operating system?

    Hello

    My application uses digital edition, ring and other controls with chains of control/label mainly composed of EditDialogMetaFont size = 11 (all optimized for the smallest font setting in a customization of the Win operating system window). When the user changes the font to the medium setting for example the police of all labels and controls is changed size = table 13 and all labels are misaligned with some labels even extending lines of Panel and thus become partially visible. How to deal with this situation, please?

    Thank you

    Martin M.

    The description of the metafonts sheds some light on this issue; It basically says that for a police metafont predefined size is not an absolute value and can change... The solution uses the fonts provided by the operating system, for example, Arial.

  • Digital output frequency seems to be twice the frequency generated by the basic function generator

    Hi Labview forum,

    I wrote a program (attached) Labview to generate 3 PWM, square wave, signals that has the same frequency and phase delay right (so that when a signal is off, the other signal is lit. Then the next signal). Everything seems to work fine except that the frequency of the PWM signals generated seems twice as the frequency given to the basic function generator. Anyone have any idea why this is happening? Anyhelp would be greatly appreciated.

    Thank you!

    Totally agree with the advice of all GerdW than the hardware timing of your hardware DAQ will be much more reliable.  That said, part of what you are probably hitting is a little quirk of the primitive delay msec.   Requests for 1 msec have long been particularly little reliable (although they * seem * to have improved in recent years, probably due to the better OS support in Win 7 or something).

    I did minimal mods to your code with comments from you switch to a timed loop.  My quick test showed he is good enough to hit the 1 length of loop of target msec.

    -Kevin P

  • Why the division operator give me different results in different screws?

    Hi all

    I'm quite the LabVIEW newbie, so please forgive me if it's elementary.  I have a signal that I'm acquisition.  The signal is fairly low amplitude (.01-0,1 V).  During each acquisition, I share the values of the sample defined by another few (0.047) using the division operator.  I see inconsistent results and I am puzzled as to why.

    In ex1, which I built from scratch for this post, everything works as expected.  I can confirm with the debugger that every reading of the sample overall is well divided and the average, max and waveform graph look like I expect.

    When I use a similar construction in my real application, however, the division often results in the INF file, and when I look with the debugger I see after fracture of the values of the signal... just don't make sense to me (x 2).

    I thought I must be missing something in the real application associated with split and merge multiple signals, so I ripped out everything except the Division (ex3).  Although this code looks a lot like the ex1 works well, the product always division infs and strange results.

    These three examples receive the same signal.  My best guess is at this point that the built-from-scratch example is force double passes to the operator of division "the right way" and that the examples of dysfunction are force double in a different way, incorrect.  I tried to delete and re-create the signal path in the examples of dysfunction without result.  My problem is that I don't know enough about the LabVIEW data types to find out how to impose the appropriate constraint.

    Can someone point me in the right direction for a solution?  I would be very happy to help.

    Your first image divides your signal of 0.047. Your second and third images are 0.047 dividing your signal. Reverse your son in fracture on image 2 and 3 knots, and I think you should be ok.

  • Is anyway to create fifth partition and keep the basic hard disk?

    Hi, my laptop is g7 1207se Pavilion and the and HP has made 4 partitions (C for windows) and the other 3 for system files and recovery, I want to create a new partition for my files (so I can recover my system without losing them) or install other operating systems, but apparently if I want to create fifth partition I have to convert my hard drive in Dynamics by the practice that I won't be able to boot from any partition but the C, which means no recovery and no other operating system.

    Is anyway to create fifth partition and keep the basic hard disk?

    Hello

    See the excellent guide of Daniel_Potyrala on the link in this regard.

    http://h30434.www3.HP.com/T5/other-notebook-PC-questions/how-to-REPARTITION-HDD-of-HP-notebook-with-pre-loaded-Windows-7/TD-p/742019

    Kind regards

    DP - K

  • How to identify items on the checklist 'Exceptions' in the firewall of Windows XP?

    I have 40 points listed on the 'Exceptions' list Windows XP firewall. Of those, there are 24 which can be easily identified as being for use with software installed and utility.  I have 14 items listed with a term somewhat vague, called 'Services '.  I checked the lists of these TCP ports on the internet and I found that 5 are called or classified as 'no '.  Others have names that do not match what I have installed on my computer. such as dynamic and/or Private Party, Synapse non HTTPS, NUTS Bootp Server instantiates zero - control messaging, CosmoCall Universe Communications Port 2, ATI Sharp logical engine, System DVT and SecureSight Event Logging Server Port.  The others are DCOM (135), UPnP infrastructure and they are often referred to a being obsolete, according to various sources online.
    It should be our responsibility as users of computers and/or administrators to use measures to protect our operating systems using programs antivirus and antispyware up-to-date and ensuring that our systems and other operating software are updated regularly.  Thing that many of us can forget how our firewall settings are configured, including which are checked on our firewall lists 'Exceptions '.  Sometimes, you may need to remove a list control item because the software to which it applies is no longer installed or when a reliable source online checks as a checklist item is obsolete and can be deleted safely.  Unfortunately, it is not enough on line information to correctly identify some of these Firewall Exceptions as course, still being in service and for the legitimate transfer information.  There are several Exceptions to the Services on my computer that will eventually be rechecked when Windows is restarted by two programs (svchost.exe and another that I have not yet identified). How do we identify each function as legitimate?
    We have a lot to deal with when we protect our information.  Spyware, virus, worms, Root Kits and even our own programs and settings can affect the safety of our computers.  He arrived at a point where we have to develop software better which will keep a record of each file is added, changed or removed from our operating systems, while they are carefully parsed for signs to be used as a form of Malware. Using antivirus and antispyware programs, alone may not be enough protection. Our firewall settings are equally important.  We can not simply block all exceptions in the firewall, because we need to have ports open for software, monitoring of maintenance programs, email and security programs.  The big problem is to identify who is who and what they are supposed to do when they are vaguely defined as 'Services' how to determine who is who, and that one can be deleted safely?

    Well,.

    If I were in your shoes, I wouldn't have kept all programs except the default (not same remote connection or sharing as I don't use them). For others he added as exceptions, I would have checked them on: Microsoft.com and msdn.microsoft.com. If the programs are associated with MS, you will always get an answer. If there is no answer or if I'm in doubt, I have it deletes from the list of exceptions.
    Finally, if any program is affected by this and creates the connection problem, I would have added it to the exceptions. Other, I would allow in Exceptions.
    THE RULE IS TO REFUSE ANY PROGRAM THAT YOU DO NOT KNOW, AND IF YOU HAVE ANY DOUBTS. IF YOU EXPERIENCE ANY PROGRAM, CREATE PROBLEMS, YOU CAN ALWAYS ADD IT LATER.
    --
    Best regards
    DreamsCentral
    Twitter: @DreamsCentral
    LinkedIN: Linkedin.com/in/DreamsCentral
    Signed: Sunday 14 March, 2010, 14:46:38 IST
  • If someone UN-install/reinstall the XP operating system for a new beginning and not use any old files more than cure someone of a problem of malware/malicious?

    If someone UN-install/reinstall the XP operating system for a new beginning and not use any old files more than cure someone of a problem of malware/malicious

    Reformat the disk and reinstall Windows XP would heal any problem of malicious program with the exception of an infected MBR (Master Boot Record) on the disk.   The F-Secure rescue CD is a tool that allows to remove a MBR infection.

Maybe you are looking for