DLR Hosting, IronPython Engine shutdown issues

View: New views
3 Messages — Rating Filter:   Alert me  

DLR Hosting, IronPython Engine shutdown issues

by matan keret :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,
 
In the old IronPython hosting API there used to be a simple pyEngine.Shutdown() command.
And then for cleanup we used: pyEngine.Dispose()
 
What is the equivalent in the new hosting API's? (am using IronPython 2.0.3)
I found that there is something like: pyEngine.Runtime.Shutdown();
 
Does that do the same as the old Shutdown() method?
And what can I use instead of the Dispose() command that doesn't seem to exist anymore?
 
Thanks,
  Matan

_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: DLR Hosting, IronPython Engine shutdown issues

by Dino Viehland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

pyEngine.Runtime.Shutdown() is the equivalent.  As far as Python is concerned the only interesting thing this does is run sys.exitfunc if it’s been set - there’s some other stuff that happens but it’s logging and some cleanup which will happen on its own.  So there’s no need to really call a Dispose type method.

 

From: users-bounces@... [mailto:users-bounces@...] On Behalf Of matan keret
Sent: Friday, November 13, 2009 6:09 AM
To: Discussion of IronPython
Subject: [IronPython] DLR Hosting, IronPython Engine shutdown issues

 

Hi everyone,

 

In the old IronPython hosting API there used to be a simple pyEngine.Shutdown() command.

And then for cleanup we used: pyEngine.Dispose()

 

What is the equivalent in the new hosting API's? (am using IronPython 2.0.3)

I found that there is something like: pyEngine.Runtime.Shutdown();

 

Does that do the same as the old Shutdown() method?

And what can I use instead of the Dispose() command that doesn't seem to exist anymore?

 

Thanks,

  Matan


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: DLR Hosting, IronPython Engine shutdown issues

by matan keret :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK thank you for the fast reply!

On Fri, Nov 13, 2009 at 7:23 PM, Dino Viehland <dinov@...> wrote:

pyEngine.Runtime.Shutdown() is the equivalent.  As far as Python is concerned the only interesting thing this does is run sys.exitfunc if it’s been set - there’s some other stuff that happens but it’s logging and some cleanup which will happen on its own.  So there’s no need to really call a Dispose type method.

 

From: users-bounces@... [mailto:users-bounces@...] On Behalf Of matan keret
Sent: Friday, November 13, 2009 6:09 AM
To: Discussion of IronPython
Subject: [IronPython] DLR Hosting, IronPython Engine shutdown issues

 

Hi everyone,

 

In the old IronPython hosting API there used to be a simple pyEngine.Shutdown() command.

And then for cleanup we used: pyEngine.Dispose()

 

What is the equivalent in the new hosting API's? (am using IronPython 2.0.3)

I found that there is something like: pyEngine.Runtime.Shutdown();

 

Does that do the same as the old Shutdown() method?

And what can I use instead of the Dispose() command that doesn't seem to exist anymore?

 

Thanks,

  Matan


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com