Serial Port error - Win 7 64 Bit

Help
Peter Rowe
2011-06-21
2013-05-13
  • Peter Rowe

    Peter Rowe - 2011-06-21

    Hi there,

    I cannot seem to use serial port on Windows 7 64 bit.  If I virtualise WInXP then it works fine.  I have tried all current versions. Error below, I'd be delighted if someone could fix it!!!

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.IO.IOException: The handle is invalid.

       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.Threading.EventWaitHandle.Set()
       at System.Windows.Forms.Control.ThreadMethodEntry.Complete()
       at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
       at System.Windows.Forms.Control.WndProc(Message& m)
       at Poderosa.Forms.MainWindow.WndProc(Message& m) in C:\Documents and Settings\Administrator\My Documents\Poderosa\sourceforge\src\Core\MainWindow.cs:line 201
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll


    Poderosa
        Assembly Version: 0.0.0.0
        Win32 Version: 0.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Poderosa.exe


    Poderosa.Plugin
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Poderosa.Plugin.DLL


    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


    Granados
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Granados.DLL


    Poderosa.Core
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Core/Poderosa.Core.dll


    Poderosa.Macro
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Macro/Poderosa.Macro.dll


    Granados
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Portforwarding/Granados.dll


    Poderosa.PortForwardingCommand
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/PortForwardingCommand/Poderosa.PortForwardingCommand.dll


    Poderosa.Protocols
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Protocols/Poderosa.Protocols.dll


    Poderosa.SerialPort
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/SerialPort/Poderosa.SerialPort.dll


    Poderosa.TerminalEmulator
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/TerminalEmulator/Poderosa.TerminalEmulator.dll


    Poderosa.TerminalSession
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/TerminalSession/Poderosa.TerminalSession.dll


    Poderosa.UI
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/UI/Poderosa.UI.dll


    Poderosa.Usability
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/Usability/Poderosa.Usability.dll


    Poderosa.XZModem
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Poderosa/XZModem/Poderosa.XZModem.dll


    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

     
  • Iwasa Kazmi

    Iwasa Kazmi - 2011-06-22

    I confirmed this issue.
    Seems that the exception was caused by some potential bugs…

    I found that the definition of a structure 'OVERLAPPED' is incorrect in 64 bit environment.
    I fixed the structure, but an incomming data causes another error.

    I will investigate more…

     
  • Iwasa Kazmi

    Iwasa Kazmi - 2011-06-30

    SerialPort plugin has been fixed in 4.3.4b and it will work in 64 bit  CLR.
    Check 4.3.4b.

     
  • Peter Rowe

    Peter Rowe - 2011-07-22

    Many thanks for this, I have been using the special version - which also had this bug - but I will switch back!  Thanks.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks