OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

Thread Tools Search this Thread Display Modes
Old 16-04-2004, 10:13
Posts: n/a
Default Memory leak in PP11

I have a prog which reads a text from a file and writes it in a .JPG picture.
Checking at the same time the available memory, I see that after repeating this operation 80 times, memory goes down by 20MB.
But I must repeat this operation 1000 times and I have 100MB only available.
I'm using PP11.
My prog looks like this:
'Original picture is already in memory.
CorelScript.EditCopy   'Copy it
   CorelScript.EditPasteDocument   'create new document
   Line Input #1, text
   CorelScript.FileSave NameFile, cdrJPEG, 3
(I'm sorry I haven't been able to find "clean" VBA instructions and had to call CorelScript)
Note that the .JPG picture has 12KB only (380KB uncompressed in memory)
I 've seen that Alex suggested time ago to a similar problem to add following line:
but this is rejected as an error as it is not a valid Application method.
Anyone can help me to solve this memory leak?
Reply With Quote

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
how to use pp11 comands in vba dnvrdave Corel Photo-Paint VBA 4 19-08-2004 11:35
Many CorelScript methods not working in PP11 feldgendler Corel Photo-Paint VBA 2 24-04-2004 14:41
Layer rotate without anti aliasing (PP11) joexx Corel Photo-Paint VBA 2 19-03-2004 02:08
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

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

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