Re: Problem freeing components with .free



TeChNoInSiDe wrote:

User can open any quantity of image folders, and all components are
created dynamically. In the case, if user choose to save all image of
one specific folder, then I need to destroy them and reposition other
folders and images. In fact I can set only visibility, but because of
high volume of folders being treated at same time, I think some old
computers on my office would crash if i don't clear unnecessary
memory, not to talk about other modifications i'll need to make, where
the timer would be more helpful.

No system will crash due to a lack of RAM. Virtual memory is in use since Win 3.0.

I was just wondering if there is no trick or workaround to get rid of
this problem!

OH on TComponent.Owner property:
Indicates the component that is responsible for streaming and freeing this component.

IMO this should work for you, instead of X.Free:
X.Owner.RemoveComponent(X);

DoDi
.



Relevant Pages

  • Windows XP: "video thumbnail extractor" crashing
    ... don't know if the crash is related to certain folders or certain ... By 'crash' I mean that the desktop freezes for about a minute. ... ShellExView to disable this extension. ...
    (uk.comp.homebuilt)
  • Re: Windows XP: "video thumbnail extractor" crashing
    ... don't know if the crash is related to certain folders or certain ... By 'crash' I mean that the desktop freezes for about a minute. ... ShellExView to disable this extension. ... If you've installed any codec packs, ...
    (uk.comp.homebuilt)
  • Re: Boy, did I stir up a hornets nest!
    ... folders and files immediately; your hard drive is failing" - or words ... It may be worth it to invest $40 in a HD and use the machine as a second ... The term 'crash' is most often used for a s/w malfunction of some ...
    (microsoft.public.windows.vista.general)
  • Re: how to truly back up windows mail messages?
    ... re-load them after a crash (or inhto another computer)? ... client found the folders and imported them in a couple of clicks. ...
    (microsoft.public.windows.vista.mail)
  • Re: Boy, did I stir up a hornets nest!
    ... I got the message "Back up your folders ... your hard drive is failing" - or words to that ... The term 'crash' is most often used for a s/w malfunction of some ... type.....almost all of which can be resolved w/o having to buy a new ...
    (microsoft.public.windows.vista.general)