Python threading



I am wondering what happens to a thread in python in relation to
win32com extensions.

If I create a new thread, that uses the Dispatch method from win32com,
what happens to the memory allocated in that thread when the thread is
done. Will the Dispatch release the memory it created, or will the
memory remain?

The problem rises from the fact that Dispatch does not seem to release
memory correctly every time. If I include the commands in a thread by
themselves, will the thread clean up ALL memory it used after it is
done?

I did try the pythoncom.CoUnitialize() to release memory, but it
doesn't seem to work (it does work about 30-45 seconds after the
command is run).

Any input is greatly appreciated (on the thread issue or how to use
the pythoncom.CoUnitiliaze() to make it release memory right away).

Thank you in advance!

.



Relevant Pages

  • Re: Updated Neon+
    ... from "Dispatch Table Trimming" that's all they are talking about. ... So Neon+ would use about 100K for the same due to trimming. ... Not very large in this day of 1-2 GIG memory machines. ... The Java core is rather large for something called a "core" ...
    (comp.lang.forth)
  • Re: Python threading
    ... win32com extensions. ... If I create a new thread, that uses the Dispatch method from win32com, ... Will the Dispatch release the memory it created, ... memory allocator, if that's what you are thinking. ...
    (comp.lang.python)
  • Re: Problem with Threads memory (possible bug)
    ... Problem with Thread's memory " ... |I have a window, and dispatch all keyboard events to Ruby's block. ...
    (comp.lang.ruby)
  • Re: Cant free the memory after unloading the userform
    ... You should use those commands in place of the one that you have. ... horrible hanging about in memory afterwards. ... Set myform = New YourFormName ... Unload myform ...
    (microsoft.public.word.vba.general)
  • Re: HP49g+ suited to my needs? Seeking advice
    ... devote to learning to use it.... ... functions, with hard to remember commands for doing things, and no easy menu ... for jogging one's memory... ... there are reasonably decent documents for learning how to do much ...
    (comp.sys.hp48)