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 15-07-2010, 13:26
mwhouser
Guest
 
Posts: n/a
Default Memory and CorelDRAW X4 VBA

I am writing a program in C# using CorelDRAW X4 VBA.

I've noticed that after some time, the memory usage on the CorelDRW.exe process has grown by quite a bit.

I am being very careful to release all objects I allocate.

I've tried simplifying things by just creating a loop that calls IDrawApplication.CreateDocument() and IDrawDocument.Close() over and over.

Memory inches higher and higher over time.

Is there something I am missing with closing Corel documents? Or does X4 have some bugs that it does not clean up everything it should?

Thanks,
...Matt
Reply With Quote
  #2  
Old 29-07-2010, 17:17
lnfagf
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mwhouser View Post
I am writing a program in C# using CorelDRAW X4 VBA.

I've noticed that after some time, the memory usage on the CorelDRW.exe process has grown by quite a bit.

I am being very careful to release all objects I allocate.

I've tried simplifying things by just creating a loop that calls IDrawApplication.CreateDocument() and IDrawDocument.Close() over and over.

Memory inches higher and higher over time.

Is there something I am missing with closing Corel documents? Or does X4 have some bugs that it does not clean up everything it should?

Thanks,
...Matt
Hi Matt,

I am having the same issue. Have you found a solution? You can reduce the memory usage shown in the task bar by minimizing and maximizing CorelDraw. But that does not release the memory that X4 is holding. Eventually CD will crash due to lack of memory. I have a macro the will run 200 cycles and another 200 more in X3 with crashing. X4 chokes at 60 or so cycles. I even hard coded the minimizing and maximizing in the macro. Hoping that it will solve the memory issue.

Luis
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
Get Shape.Copy() pointer in memory (c#) ! lebaron CorelDRAW/Corel DESIGNER VBA 1 07-02-2008 10:40
Export Memory Leak in X3 jerryfeil CorelDRAW/Corel DESIGNER VBA 1 29-11-2006 12:01
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
Memory leak in PP11 Horst CorelDRAW/Corel DESIGNER VBA 0 31-12-1969 18:29


All times are GMT -5. The time now is 04:35.


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