Menu

System.DllNotFoundException: hid.dll

Morpheus
2018-05-10
2018-05-13
  • Morpheus

    Morpheus - 2018-05-10

    Hi,
    I just downloaded the last version and I get this error:

    ~/programs/Tiny_Multi_Bootloader+_v0.11.2$ mono TinyMultiBootloader+.exe
    System.DllNotFoundException: hid.dll
    at (wrapper managed-to-native) OaktreeLab.USBDevice.Native:HidD_GetHidGuid (System.Guid&)
    at OaktreeLab.USBDevice.HIDSimple.Open (System.UInt32 vid, System.UInt32 pid) [0x0001f] in <d707c44071504cd1b92497a1ca6b7225>:0
    at TinyPicBootloader.Form1.Form1_Load (System.Object sender, System.EventArgs e) [0x00013] in <d707c44071504cd1b92497a1ca6b7225>:0
    at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00022] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0
    at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00029] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0

    on the same system where versione 0.11.0 is working properly.
    Any suggestion?

     
  • Anobium

    Anobium - 2018-05-10

    I will sort the download out. you are missing hid.

     
  • Anobium

    Anobium - 2018-05-10

    I just figured. What Operating System? I need a clue.

     
  • Morpheus

    Morpheus - 2018-05-11

    Debian GNU/Linux 9.4 (stretch)
    mono 4.6.2.7+dfsg-1
    kernel 4.9.65

     

    Last edit: Morpheus 2018-05-11
  • Anobium

    Anobium - 2018-05-11

    Well we have a choice - we find the equivelent of HID.DLL or we change the source code to support Linux without the recently added USB support. I would like to do the later. Should only take a few minutes.

    So, the HID.DLL is the OakTree USB driver - is there anything like this for Linux?

     
  • Morpheus

    Morpheus - 2018-05-11

    In Linux HID devices are handled by the kernel directly with no need to install specific drivers.
    The relevant modules I found are: hid.ko, usbhid.ko and hid_generic.ko.
    Also a link that explains a bit is:
    http://www.linux-usb.org/USB-guide/x194.html
    For me it would be ok the option without the USB support, since I only use serial (to be more precise FTDI USB->serial).

     
    • Anobium

      Anobium - 2018-05-11

      New source uploaded.

      Use the define LINUX then compile. Test please.

       
  • Morpheus

    Morpheus - 2018-05-11

    I downloaded the code via svn and looked in tinypicbootload-svncode/source/v11/Tiny Multi Bo(v0.11.3)/sources_soft_PC, but I really have no idea on how to build it. I am only used to Makefile or buuild instructions as steps written in a text file. Sorry but I am no expert in mono/.NET. If you have some link to a guide I could try..

     
    • Anobium

      Anobium - 2018-05-11

      Sure, open the source. Look for //define LINUX remove the //. Compile.

       
  • Morpheus

    Morpheus - 2018-05-11

    Ok, that is no problem: what I do not know is how to compile :)

     
    • Anobium

      Anobium - 2018-05-12

      Are you asking me to compile the Linux specific build for you? I can do this.

       
  • Morpheus

    Morpheus - 2018-05-13

    If you are willig to provide a (Linux specific) compiled version, similar to the ones downloadable as zip packages it would be great, and I could test immediately.
    (because I really have no idea on how to compile this kind of sources without a Makefile or detailed build instructions)

     

    Last edit: Morpheus 2018-05-13
  • Anobium

    Anobium - 2018-05-13

    Try this. Let me know if this works. I cannot text.

    Evan

     
  • Morpheus

    Morpheus - 2018-05-13

    Thanks for the binary version!
    Seems I still have some problem: it crashes with:

    $ mono TinyMultiBootloader+.exe  
    Unhandled Exception:
    System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
      at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x0009b] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
      at System.Drawing.Image.CreateFromHandle (System.IntPtr handle) [0x00008] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
      at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, System.Boolean keepAlive) [0x00017] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
      at System.Drawing.Icon.GetInternalBitmap () [0x00036] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
      at System.Drawing.Icon.ToBitmap () [0x0001b] in <1917aa1c39d94b1a91807b8cd9f03350>:0 
      at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap ()
      at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd hwnd, System.Drawing.Icon icon) [0x00021] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
      at System.Windows.Forms.XplatUIX11.SetIcon (System.IntPtr handle, System.Drawing.Icon icon) [0x0000d] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
      at System.Windows.Forms.XplatUI.SetIcon (System.IntPtr handle, System.Drawing.Icon icon) [0x00000] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
      at System.Windows.Forms.Form.CreateHandle () [0x00095] in <d5b72d15d4f7424c8a1538e3f19ec2e3>:0 
    ....
    

    I checked and I had already installed on my system:
    libgdiplus/stable,now 4.2-1+b1 amd64 [installato, automatico]

     

    Last edit: Morpheus 2018-05-14

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.