OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16-04-2004, 09:13
Horst
Guest
 
Posts: n/a
Default Memory leak in PP11

Hi,
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:
Code:
'Original picture is already in memory.
CorelScript.EditCopy   'Copy it
   CorelScript.EditPasteDocument   'create new document
   Line Input #1, text
   WriteIntoPicture(text)
   NameFile=f(text)
   CorelScript.FileSave NameFile, cdrJPEG, 3
   CorelScript.FileClose
Loop
(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:
Application.Optimization=true
but this is rejected as an error as it is not a valid Application method.
Anyone can help me to solve this memory leak?
Thanks
Horst
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
how to use pp11 comands in vba dnvrdave Corel Photo-Paint VBA 4 19-08-2004 10:35
Many CorelScript methods not working in PP11 feldgendler Corel Photo-Paint VBA 2 24-04-2004 13:41
Layer rotate without anti aliasing (PP11) joexx Corel Photo-Paint VBA 2 19-03-2004 01:08
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 18:54.


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