Search

You searched for the word(s): userid:837676

Matching Posts

  • Re: unhandled ObjectDisposedException though exception handler provided

    Following is the stack trace which i got: at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle) at System.Threading.EventWaitHandle.Set() at System.IO.Ports.SerialStream.AsyncFSCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) Also i tried to abort the application using Ctrl + C while it was waiting for some data to be read and timeout
    Posted to IronPython for ASP.NET (Forum) by sheetalp on 11/17/2008
  • unhandled ObjectDisposedException though exception handler provided

    Hi, I am writing a serial port communication application using Iron Python. Following is my code: class serial: def sendMessage( self, entity, command, endstring ): try: BaudRate = 9600 DataBits = 8 comPort = "COM1" #create a serial port instance for the desired port as specified serialPort = System.IO.Ports.SerialPort( comPort ) serialPort.BaudRate = BaudRate serialPort.DataBits = DataBits #open the port serialPort.Close() serialPort.Open() serialPort.ReadTimeout = 30000 serialPort.Write
    Posted to IronPython for ASP.NET (Forum) by sheetalp on 11/17/2008
    Filed under: ASP.NET Python IronPython, IronPython ASP.NET
  • How to get the line number of the code being executed

    I am new to Iron Python and .Net Programming. Please help me in this. I have to display the line number and the file name of the code written in Iron Python. As per my knowledge Iron Python gives the line number only when an exception occurs. Is there any way to get the line number and file name from the stack even if there is no exception ?
    Posted to IronPython for ASP.NET (Forum) by sheetalp on 11/12/2008
    Filed under: IronPython
Page 1 of 1 (3 items)