OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29-11-2006, 11:35
jerryfeil
Guest
 
Posts: n/a
Default Export Memory Leak in X3

There seems to be a memory leak when exporting from Draw X3.

This happens with the Export method as well as the ExportEX and ExportBitmap functions.

For Example...

for x = 1 to 100
doc.export "filename.jpg", filetype, other parameters....
next x

causes memory used by CorelDrw to increase.
This didn't happen with CDR12.

Is this a known issue?
Reply With Quote
  #2  
Old 29-11-2006, 12:01
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

I knew this was the case with cdr11.

try this
Code:
for x = 1 to 100
   set doc=ActiveDocument
   doc.export "filename.jpg", filetype, other parameters....
   set doc=nothing
next x
or maybe you'll need to use this:
Code:
dim expF As ExportFilter

for x = 1 to 100
   Set expF = ActiveDocument.ExportBitmap(s, cdrJPEG, cdrCurrentPage, .......)
   expF.Compression = jCompression: expF.Optimized = jOptimized
   expF.SubFormat = jSubFormat: expF.Compression = jCompression: expF.Smoothing = jSmoothing
   expF.Finish
   set expF=Nothing
next
or maybe most hardcore solution is to use winAPI timerproc 100 times - this will ensure that each time a timerproc is done the objects are released
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pdf Export Files Just Rewrite Over And Over sifterbox CorelDRAW/Corel DESIGNER VBA 10 13-12-2011 07:58
SVG Export Filter jabky CorelDRAW/Corel DESIGNER VBA 3 04-05-2008 07:11
Memory leak in PP11 Horst Corel Photo-Paint VBA 0 16-04-2004 09:13
CorelDraw eating up memory dcsquare CorelDRAW/Corel DESIGNER VBA 1 06-06-2003 09:47
Condition #1002 -Listman- 0737 (Wierd memory leaks issues) wbochar CorelDRAW/Corel DESIGNER VBA 6 15-05-2003 16:48


All times are GMT -5. The time now is 00:52.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com