Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) PDFExporter Memory Leak (Read 15642 times)
mclellan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Location: London, Ontario
Joined: Feb 11th, 2008
Re: PDFExporter Memory Leak
Reply #15 - May 15th, 2008 at 1:20pm
Print Post  
Can I send you the code directly?

It's not very complicated, and I am not doing anything custom.


Barry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDFExporter Memory Leak
Reply #16 - May 15th, 2008 at 1:52pm
Print Post  
Of course, please send us the code.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDFExporter Memory Leak
Reply #17 - May 15th, 2008 at 2:33pm
Print Post  
Hi,

It's not a good idea to call VectorDiagram.Dispose() and then continue using the same diagram object. Please remove that line and try the PDF export again.

Stoyan
  
Back to top
 
IP Logged
 
mclellan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Location: London, Ontario
Joined: Feb 11th, 2008
Re: PDFExporter Memory Leak
Reply #18 - May 15th, 2008 at 2:54pm
Print Post  
Hello,

I removed that line of code... same error occurs.


Thanks
Barry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDFExporter Memory Leak
Reply #19 - May 15th, 2008 at 3:09pm
Print Post  
Which same error - the one after the 80th export or on the 2nd one? That latter exception can happen only if you are using a disposed diagram, so in that case check if there isn't another Dispose() call done from somewhere. I see you are running the application from the command line - make sure you aren't running an old version.

Stoyan
  
Back to top
 
IP Logged
 
mclellan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Location: London, Ontario
Joined: Feb 11th, 2008
Re: PDFExporter Memory Leak
Reply #20 - May 15th, 2008 at 3:53pm
Print Post  
Hi Stoyan!

Success!

On the older version, I removed any reference to a dispose and it still died at 80.

However, on the latest version you sent me, it is now working after I removed the dispose line you suggested.

So far I have exported 192 pdf's and Visio's.

Should I continue to use this build for testing and deployment?

Thanks!
Barry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDFExporter Memory Leak
Reply #21 - May 15th, 2008 at 4:28pm
Print Post  
great news 8) yes, use the new build, it should be quite stable.
  
Back to top
 
IP Logged
 
mclellan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Location: London, Ontario
Joined: Feb 11th, 2008
Re: PDFExporter Memory Leak
Reply #22 - May 15th, 2008 at 5:52pm
Print Post  
Aaah, sorry, jumped the gun a bit there although much much better!

I managed to pull out 781 pdf's before it crashed.

   at System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars, Char[] whitespaceChars, Char directorySeparator, Char altDirectorySeparator, Char volumeSeparator, Boolean fullCheck, String& newPath)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at MindFusion.Pdf.PdfDocument.Save(String fileName)
   at MindFusion.Pdf.PdfGraphics.Dispose()
   at MindFusion.Diagramming.Export.PdfExporter.Export(Diagram diagram, String filePath)
   at VectorFlow.frmFlow.LoadDiagram() in D:\FlowChart\frmFlow.vb:line 742

I think we are getting much closer now though!!
Barry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDFExporter Memory Leak
Reply #23 - May 15th, 2008 at 6:33pm
Print Post  
Now that looks like some kind of a file system error. What is the name of the exception you are getting?
  
Back to top
 
IP Logged
 
mclellan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Location: London, Ontario
Joined: Feb 11th, 2008
Re: PDFExporter Memory Leak
Reply #24 - May 15th, 2008 at 6:44pm
Print Post  
Sorry Stoyan,

We made it past the pdfexporter problem, than hit one of my own bugs Smiley

I think I am good to go!

Have a great day!

One last thing, is the updated code for the Visio Viewer contained in this last download? I want to go through and verify the lines are connecting properly.


Thanks!
Barry

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PDFExporter Memory Leak
Reply #25 - May 16th, 2008 at 7:34am
Print Post  
Hi Barry,

Yes, this build includes the update for connectors in Visio Viewer.

Stoyan
  
Back to top
 
IP Logged
 
mclellan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 45
Location: London, Ontario
Joined: Feb 11th, 2008
Re: PDFExporter Memory Leak
Reply #26 - May 16th, 2008 at 1:24pm
Print Post  
Thanks!

I'll let you know how I make out on my other Visio thread!

Barry
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint