[IronPython] Application stays in memory even after exit

Dan Eloff dan.eloff at gmail.com
Tue Sep 2 18:28:24 CEST 2008


Do you use threads? Any running non-daemon python thread will prevent
the application from exiting. Threads in python are non-daemon by
default. I don't know what the rules are for .NET threads.

-Dan

On Tue, Sep 2, 2008 at 10:49 AM, cephire <id804097 at gmail.com> wrote:
> Hi:
> If you mean am I closing all the forms, yes. Here is the code snippet
> of both program.py and the form's exit menu item.
> Please note that I also tried self.Close and still it didn't exit from
> the memory. Thank you for your time.
>
>
>
> Program.py
> =========
>
> class mysecs10: # namespace
>
>    @staticmethod
>    def RealEntryPoint():
>
>        Application.EnableVisualStyles()
>        Application.Run(mysecs20.MainForm())
>
> if __name__ == "Program":
>    mysecs10.RealEntryPoint();
>
>
> mainform. exit
> ===========
>
>        @accepts(Self(), System.Object, System.EventArgs)
>        @returns(None)
>        def _exitToolStripMenuItem_Click(self, sender, e):
>            Application.Exit()
>
>
>
> On Sep 2, 1:36 am, Michael Foord <fuzzy... at voidspace.org.uk> wrote:
>> cephire wrote:
>> > Hi all,
>> > I've found out that the application is still in memory even after
>> > closing the application. I exit the application with
>> > Application.Exit().
>>
>> > What should I do to remove the application completely?
>>
>> Which version of IronPython are you using?
>>
>> Have you deleted all references to the form (I assume it is a Windows
>> Forms application)?
>>
>> Michael
>>
>> > Thank you,
>> > Joseph
>> > _______________________________________________
>> > Users mailing list
>> > Us... at lists.ironpython.com
>> >http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>> --http://www.ironpythoninaction.com/http://www.voidspace.org.uk/http://www.trypython.org/http://www.ironpython.info/http://www.theotherdelia.co.uk/http://www.resolverhacks.net/
>>
>> _______________________________________________
>> Users mailing list
>> Us... at lists.ironpython.comhttp://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



More information about the Ironpython-users mailing list