PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Can't get rid of "Assertion Failed" error
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1876
Page 1 of 1

Author:  McGee [ Wed Dec 28, 2011 9:37 am ]
Post subject:  Can't get rid of "Assertion Failed" error

Hi all,i'm using pdfsharp to create watermark on pdf pages.I succesfully did it with pdfsharp but while my program watermarks "Assertion Failed...object type transformation must not be done with direct objects" error pops up for each page in the pdf file.I tried all the recommended solutions like building in release mode,uncommenting the lines starting with Debug.Assert.Nothing worked,i still get the same error.Some body help me please.
Thanx.

Author:  () => true [ Sat Dec 31, 2011 6:43 pm ]
Post subject:  Re: Can't get rid of "Assertion Failed" error

Uncommenting the source line will work - provided you re-compile the source code again and use the DLL created during that compile.

Switching to Release build won't work if you still reference the assembly from the Debug build - it should work if you reference the PDFsharp project (like the Sample solutions do).

Author:  McGee [ Wed Jan 04, 2012 1:50 pm ]
Post subject:  Re: Can't get rid of "Assertion Failed" error

problem solved.thanks

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/