Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Image.RemovePage problem
Started by vpenafiel at 06-12-2008 17:22. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  06-12-2008, 17:22
vpenafiel is not online. Last active: 6/12/2008 10:14:28 PM vpenafiel

Top 500 Posts
Joined on 09-24-2007
Posts 10
Image.RemovePage problem
Reply Quote
We are working with Leadtools 14.5...and .NET C#
After we execute Image.RemovePage, the page is removed and everything looks fine , until the .NET method terminates, then we get an Exception
ArgumentOutOfRangeException in Application.Run(new(Form1)). In this case the method is _btn_LoadClick(object sender,EventsArgs(e))...
Thanks

   Report 
  06-13-2008, 15:50
GregR is not online. Last active: 7/23/2008 3:26:54 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,502
Re: Image.RemovePage problem
Reply Quote
What is the file version of Leadtools.dll that you are using?

Does the RasterImage still have pages left when you call RemovePage or are you attempting to remove a page from a single page image? 

Is there any kind of loop in your code?  I would double-check your logic to make sure you do not have an off-by-one error that is causing you to attempt something illegal like overstepping the bounds of an array or removing something that doesn't exist.

If you continue to have problems, please send a small sample project (NOT your entire application) that isolates this problem so I can try to reproduce it here.

NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB.  If it is larger, please send an email to support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.
 
If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to support@leadtools.com and make sure that you include a link to this forum post.


Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » DotNet » Re: Image.RemovePage problem

Powered by Community Server, by Telligent Systems