I've seen some code that did just that on exit but I think there's a problem
with that.  According to the folks that do the platinum certification
testing for Palm (and if I read their test kit properly),  leaving text in
the clipboard is appropriate for copying from one app to another.  I think
they even test to make sure your app does this.  

So anyway, clearing the clipboard should eliminate the errors but when build
a release version of the application I should leave it and it's not a memory
leak.  Right?

-Paul

Paul A. Dugas   OnSite: voice 404.635.8026      fax 404.635.8001
Computer & Systems Engineer     Office: voice 770.926.1270      fax
770.926.4737
Contractor for the Ga. Dept. of Transportation  Email:
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://georgia-navigator.com/ <http://georgia-navigator.com/>   Web:
http://pauld.dugas.com/ <http://pauld.dugas.com/> 


                -----Original Message-----
                From:   Alan Pinstein [mailto:[EMAIL PROTECTED]]
                Sent:   Monday, March 29, 1999 1:24 PM
                To:     [EMAIL PROTECTED]
                Subject:        Re: Clipboard and Memory.  Leaking?

                The clipboard is in the Dynamic heap, so I guess it could
appear to leak
                even if it's not.  Try copying something very SMALL to the
clipboard before
                exiting.


                Alan Pinstein
                Synergy Solutions, Inc.
                http://www.synsolutions.com
                1-800-210-5293


                >A quick one...
                >
                >I've been using some code I saw earlier to compress and
report the heap size
                >and the beginning and end of my program in an attempt to
detect memory
                >leaks.  While adding support for cut/copy/paste in my text
fields, I noticed
                >I'm getting heap size differences on exit whenever I
cut/copy from a text
                >field.  Is this supposed to happen?  Where is the clipboard
memory?  Am I
                >really leaking?
                >
                >-Paul
                >
                >Paul A. Dugas  OnSite: voice 404.635.8026      fax
404.635.8001
                >Computer & Systems Engineer    Office: voice 770.926.1270
fax
                >770.926.4737
                >Contractor for the Ga. Dept. of Transportation Email:
                >mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
                >http://georgia-navigator.com/
<http://georgia-navigator.com/>         Web:
                >http://pauld.dugas.com/ <http://pauld.dugas.com/>


                

Reply via email to