Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: ColorMerge Memory issue
Started by dbutler@our365.com at 04-25-2008 16:58. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  04-25-2008, 16:58
dbutler@our365.com is not online. Last active: 4/25/2008 9:52:33 PM dbutler@our365.com

Not Ranked
Joined on 04-25-2008
Posts 3
ColorMerge Memory issue
Reply Quote
When i call ImageProcessing.ColorMerge() there is pagefile memory used that i am unable to recover until the application is closed.  Since i am writing this code within a service the memory leak just continues to grow until ultimately i have to restart the service.  Below is a snippet of what i am trying to accomplish using (i believe) LeadTools v13. 

LEAD.Drawing.Bitmap LeadBitmap = new LEAD.Drawing.Bitmap('ImageToLoad');
LEAD.Drawing.Imaging.ImageProcessing.ImageProcessing IP = new LEAD.Drawing.Imaging.ImageProcessing.ImageProcessing();
           
LEAD.Drawing.Imaging.ImageProcessing.ImageProcessing.ColorSeparationConstants flags =   LEAD.Drawing.Imaging.ImageProcessing.ImageProcessing.ColorSeparationConstants.RGB;
LEAD.Drawing.Image[] planes = IP.ColorSeparate(LeadBitmap,flags);
IP.Intensity(planes[2],iIntensity);

IP.ColorMerge(LeadBitmap,flags,planes);

for(int i=0; i<planes.Length; i++) planes[i].Dispose();

GC.Collect();
GC.WaitForPendingFinalizers();
           
 IP = null;



Any help would be greatly appreciated.  

   Report 
  04-27-2008, 9:02
Yasir Alani is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: ColorMerge Memory issue
Reply Quote

What is the build number (version info) for LEADTOOLS that you currently have?

 

Could you send me a small working test project (not the full application) that shows the problem? Please pack the project in a ZIP or RAR file and post it here. If you don't want to post it here, please send it to support@leadtools.com and mention this forum post.


Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
  04-28-2008, 9:38
dbutler@our365.com is not online. Last active: 4/25/2008 9:52:33 PM dbutler@our365.com

Not Ranked
Joined on 04-25-2008
Posts 3
Re: ColorMerge Memory issue
Reply Quote
I believe the version im using is   13.0.0.50.   I viewed the properties of one of the lead dlls.  If there is a better way to obtain the version info please let me know.  I have attached a project that I have been using to test the problems i have explained.  Thanks alot for your help. 

   Report 
  04-28-2008, 11:07
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: ColorMerge Memory issue
Reply Quote
I'm sorry, but I had to delete your attachment because it contained some of our DLLs.  Please repost your attachment following these guidelines:

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 
  04-28-2008, 11:35
dbutler@our365.com is not online. Last active: 4/25/2008 9:52:33 PM dbutler@our365.com

Not Ranked
Joined on 04-25-2008
Posts 3
Re: ColorMerge Memory issue
Reply Quote
Sorry about that.  I sent an email to support@leadtools.com with the attached project (with dlls removed). 

Thanks.

   Report 
  11-18-2008, 17:39
AndyMerryman is not online. Last active: 11/18/2008 10:38:21 PM AndyMerryman

Not Ranked
Joined on 11-18-2008
Posts 1
Re: ColorMerge Memory issue
Reply Quote
Has there been any updates to this memory leak?
Thanks,
Andy

   Report 
  11-19-2008, 5:01
Yasir Alani is not online. Last active: 11/16/2008 11:29:23 AM Yasir Alani



Top 10 Posts
Joined on 02-05-2007
Posts 311
Re: ColorMerge Memory issue
Reply Quote
Andy,

The other customer was using old DLLs, he updated with the latest build and that seemed to solve his problem. The latest build for LEADTOOLS 13 DLLs is 13.0.0.132.

If you have older build, go to http://support.leadtools.com and go to the "SDK Patches" tab (you need to login before this). You should find the patches for LEADTOOLS 13 there. If you can't see that tab, then you must register your product on the support portal in the "My Profile" tab.

If the latest patches did not solve your problem, please create a new thread and discuss your problem in full in it.
Yasir Alani
LEADTOOLS Technical Support
support@leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » Re: ColorMerge Memory issue

Powered by Community Server, by Telligent Systems