Author Topic: Why is this happening?  (Read 125 times)

dmorocampo

  • Posts: 4
Why is this happening?
« on: 4 Sep '24 - 12:42 »
System.TypeInitializationException was unhandled
  HResult=-2146233036
  Message=Se produjo una excepción en el inicializador de tipo de 'Un4seen.Bass.Bass'.
  Source=Bass.Net
  TypeName=Un4seen.Bass.Bass
  StackTrace:
       en Un4seen.Bass.Bass.BASS_Init(Int32 device, Int32 freq, BASSInit flags, IntPtr win)
       en StreamTest.frmTag.frmTag_Load(Object sender, EventArgs e) en \Samples\VB\StreamTest\frmTag.vb:línea 466
       en System.Windows.Forms.Form.OnLoad(EventArgs e)
       en System.Windows.Forms.Form.OnCreateControl()
       en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       en System.Windows.Forms.Control.CreateControl()
       en System.Windows.Forms.Control.WmShowWindow(Message& m)
       en System.Windows.Forms.Control.WndProc(Message& m)
       en System.Windows.Forms.Form.WmShowWindow(Message& m)
       en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException:
       HResult=-2146233052
       Message=No se puede cargar el archivo DLL 'bass': No se puede encontrar el módulo especificado. (Excepción de HRESULT: 0x8007007E)
       Source=Bass.Net
       TypeName=""
       StackTrace:
            en Un4seen.Bass.Bass.BASS_SetConfig(BASSConfig option, Int32 newvalue)
            en Un4seen.Bass.Bass.InitBass()
            en Un4seen.Bass.Bass..cctor()
       InnerException:

Ian @ un4seen

  • Administrator
  • Posts: 26077
Re: Why is this happening?
« Reply #1 on: 4 Sep '24 - 13:49 »
That looks like the BASS.DLL file couldn't be found. It should be placed alongside your EXE and BASS.NET.DLL. Also make sure it is the one that matches your project's "Platform target" setting.

dmorocampo

  • Posts: 4
Re: Why is this happening?
« Reply #2 on: 5 Sep '24 - 13:59 »
Everything ok, thanks

dmorocampo

  • Posts: 4
Re: Why is this happening?
« Reply #3 on: 5 Sep '24 - 20:16 »
The errors I had are because I do not have Bass.Net registered, it is a shame, I am in Cuba and it is impossible for me to send any cash outside. .vshost.exe Warning: 0 : You are using an unregistered version of BASS.NET! (c) 2009-2023 radio42, Bernd Niedergesäß - All rights reserved. :-[

Ian @ un4seen

  • Administrator
  • Posts: 26077
Re: Why is this happening?
« Reply #4 on: 6 Sep '24 - 14:11 »
I don't think being unregistered should cause any errors, but you can get a freeware registration key for BASS.Net from here:

   http://bass.radio42.com/bass_register.html