[IronPython] Load an Ironpython dump

jon vs. python jonvspython at gmail.com
Fri Apr 30 11:56:43 CEST 2010


I do believe that the problem lies in an assembly that's being used.
I'm running the script from IronPython Console, so I guess I'm not doing
poor exception handling.

import timer
import fl

def main():
    mst = fl.FireLaser()
    def poll(src, args):
        try:
            mst.ReadBrokenFiber()
            mst.ReadZoneTemperature(3)
        except Sockets.SocketException:
            print "Poll operation failed"
            try:
                mst.reconnect()
            except Sockets.SocketException:
                print "Reconnect operation failed"
                #next iteration will do
                pass

    tmr = timer.MyTimer(5000,poll)
    tmr.start()
    mst.connect()


if __name__=="__main__":
    print "Module loaded from CLI"
    main()

On Fri, Apr 30, 2010 at 11:20 AM, Lukas Cenovsky <cenovsky at bakalari.cz>wrote:

> Run the program from command line and you should see the exception there.
>
> --
> -- Lukáš
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100430/342036eb/attachment.html>


More information about the Ironpython-users mailing list