Re: Help with PDFPage to NSImage
Re: Help with PDFPage to NSImage
- Subject: Re: Help with PDFPage to NSImage
- From: Florian Soenens <email@hidden>
- Date: Wed, 27 Feb 2008 14:52:29 +0100
After googling my error output i discovered a tread about this issue
and this is how it get's solved:
I need to add this line in the beginning of my main() function:
[NSApplication sharedApplication];
Why is this needed as we are talking about a command line utility??
On 27 Feb 2008, at 14:37, Florian Soenens wrote:
Sorry to bother again, i mixed two pieces of code, here's my error
output:
2008-02-27 14:35:04.055 ThumbNailFixedWidthLine[28467:10b] ***
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Error (1002) creating
CGSWindow'
2008-02-27 14:35:04.056 ThumbNailFixedWidthLine[28467:10b] Stack: (
2489950827,
2494017691,
2489950283,
2489950346,
2524632528,
2524631756,
2524630962,
2524630360,
2524627265,
2524640151,
2524638949,
2524638809,
2525323748,
2525674269,
2525673692,
11194,
9054,
8837
)
Trace/BPT trap
I'm desperate, because everyting seems fine in my code.
On 27 Feb 2008, at 14:06, Antonio Nunes wrote:
On Feb 27, 2008, at 1:45 PM, Florian Soenens wrote:
The source pdf does display correctly in Preview and i'm using
Leopard.
Here's my output:
2008-02-27 13:42:14.710 ThumbNailFixedWidthLine[26446:10b]
_NXCreateWindow: error setting window property (1002)
2008-02-27 13:42:14.910 ThumbNailFixedWidthLine[26446:10b]
_NXTermWindow: error releasing window (1002)
2008-02-27 13:42:14.973 ThumbNailFixedWidthLine[26446:10b] ***
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Error (1002) creating
CGSWindow'
Looks to me like the error is not with the PDF creation code. I
don't see what the above has to do with what you showed us. If the
error were in the PDF creation code you would either get an error
in one of it's lines, or the produced PDF would be empty/invalid.
-António
--------------------------------------------------------
Today you are You, that is truer than true.
There is no one alive who is Youer than You.
Today I am Me, and I am freer than free.
There is no one alive who is Me-er than Me.
I am the BEST I can possibly be.
--Dr. Seuss
--------------------------------------------------------
Looking for Web-to-Print Solutions?
Visit our website : http://www.vit2print.com
This e-mail, and any attachments thereto, is intended only for use
by the addressee(s) named herein and may contain legally privileged
and/or confidential information and/or information protected by
intellectual property rights.
If you are not the intended recipient, please note that any review,
dissemination, disclosure, alteration, printing, copying or
transmission of this e-mail and/or any file transmitted with it, is
strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately
notify the sender and permanently delete the original as well as any
copy of any e-mail and any printout thereof.
We may monitor e-mail to and from our network.
NSS nv Tieltstraat 167 8740 Pittem
Belgium_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Looking for Web-to-Print Solutions?
Visit our website : http://www.vit2print.com
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights.
If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof.
We may monitor e-mail to and from our network.
NSS nv Tieltstraat 167 8740 Pittem Belgium
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden