Red Gate forums :: View topic - GDI+ error when exporting large PDF
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Dependency Tracker 2
SQL Dependency Tracker 2 forum

GDI+ error when exporting large PDF

Search in SQL Dependency Tracker 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
PCurd



Joined: 20 Feb 2013
Posts: 7
Location: United Kingdom

PostPosted: Wed Mar 05, 2014 1:54 pm    Post subject: GDI+ error when exporting large PDF Reply with quote

When I export PDF Diagram I get the error "A generic error occurred in GDI+" and no PDF is produced. I've been able to export very large diagrams before (although not this particular diagram), but today it seems to be broken.

I can export the PDF Dependency List and that is 1090 pages long. The largest diagram I have been able to export before had a 897 page Dependency List so this isn't that much bigger.

Any ideas?
Back to top
View user's profile Send private message
eddie davis



Joined: 14 Jun 2006
Posts: 924
Location: Red Gate Software

PostPosted: Thu Mar 06, 2014 3:16 pm    Post subject: Reply with quote

Thank you for your forum post and sorry that you have encountered this problem.

The error indicates insufficient disk space but instead crashing with an error to indicate this, it errors out with the Microsoft error "A generic error occurred in GDI+".

By default SQL Dependency Tracker will create a number of temporary files in the Windows temp directory.

You can try setting a new system environment variable called RGTEMP and set the value to be a folder location with plenty of free disk space and then retry the export to pdf.

To set the environment variable:
1. Right-click on My Computer and choose Properties.
2.On the Advanced tab click the Environmental Variables button.
3.Then under User or System variables click New and give the variable name as RGTEMP and the variable value as the path you want the RGTEMP folder to be created.

Many Thanks
Eddie
_________________
Eddie Davis
Technical Support Engineer
Red Gate Software Ltd
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
PCurd



Joined: 20 Feb 2013
Posts: 7
Location: United Kingdom

PostPosted: Thu Mar 06, 2014 5:41 pm    Post subject: Reply with quote

Hi Eddie,

I have 102GB free disk space on the drive in question, I've set up the RGTEMP variable as suggested and opening the file produces around 260MB of files - 185 files. The GDI+ error still occurs and takes less than 2 seconds to come up after I choose a filename so I can't imagine it's chewing up 102GB of data and deleting it in that little time.

Is there anything else than could cause that error?

Thanks,
Back to top
View user's profile Send private message
eddie davis



Joined: 14 Jun 2006
Posts: 924
Location: Red Gate Software

PostPosted: Tue Mar 11, 2014 2:52 pm    Post subject: Reply with quote

Thank you for your reply.

I have added the details of this forum post to a Bug Report whose reference is DT-400 and requested that the SQL Dependency Tracker Product Manager review the report. Sadly I do not known when this bug will be fixed.

You are only second customer in 5 years to report this particular bug, previous report was in May 2009.

I will be maintaining what our Bug Tracking system calls a watch on the bug report submitted, which means I will be notified when a fix for the bug becomes available.

Many Thanks
Eddie
_________________
Eddie Davis
Technical Support Engineer
Red Gate Software Ltd
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
PCurd



Joined: 20 Feb 2013
Posts: 7
Location: United Kingdom

PostPosted: Tue Mar 11, 2014 3:18 pm    Post subject: Reply with quote

Thanks Eddie,

Let me know if I can provide more evidence etc.
Back to top
View user's profile Send private message
trankimanh89



Joined: 26 Mar 2014
Posts: 1

PostPosted: Wed Mar 26, 2014 3:41 am    Post subject: Reply with quote

@eddie davis: Thanks Eddie,

Your advises are very useful for me to over come this problem.
_________________
Tran Kim Anh
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group