![]() |
#1
|
|||
|
|||
![]()
I currently develop an application in VB.NET and in one part of the app it repeats a find and replace. The method used is CorelDRAW.Page.TextReplace
After each iteration I can see via Task Manager memory being consumed by this method. Unfortunately closing the document after the process has completed does not release the memory thereby requiring the user to close CorelDRAW completely to reacquire the spent memory. Since I can clearly see the issue is with the method itself and not in my code I am posting this here in the hopes someone from Corel could address it. You can replicate this by simply putting the method in a loop, like below: (Make sure you have one line of text on your page with the number zero as the text) Code:
Sub ProveMemoryLoss() Dim iFindString As String = "" Dim iCounter As Integer = 0 Dim CorelPage As CorelDRAW.Page Dim cApplication As CorelDRAW.Application cApplication = New CorelDRAW.Application CorelPage = cApplication.ActiveDocument.ActivePage For iCounter = 1 To 10000 CorelPage.TextReplace((iCounter - 1).ToString, iCounter.ToString, False) Next End Sub Any comments or suggestions welcomed. What I need is a way to get this fixed by Corel... |
#2
|
||||
|
||||
![]()
I'd be interested to hear what is going on here as well.
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#3
|
|||
|
|||
![]()
I think this may be part of the problem...
Code:
cApplication = New CorelDRAW.Application Code:
cApplication = Nothing |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Memory and CorelDRAW X4 VBA | mwhouser | CorelDRAW/Corel DESIGNER VBA | 1 | 29-07-2010 18:17 |
Memory leak in PP11 | Horst | Corel Photo-Paint VBA | 0 | 16-04-2004 10:13 |
CorelDraw eating up memory | dcsquare | CorelDRAW/Corel DESIGNER VBA | 1 | 06-06-2003 10:47 |
Condition #1002 -Listman- 0737 (Wierd memory leaks issues) | wbochar | CorelDRAW/Corel DESIGNER VBA | 6 | 15-05-2003 17:48 |
Memory leak in PP11 | Horst | CorelDRAW/Corel DESIGNER VBA | 0 | 31-12-1969 19:29 |