EncoderLAME.Start error with Bass.Net 2.4.18.2

Started by yafiyeo,

yafiyeo

Upgrading .NET app to Bass.Net 2.4.18.2 (With 17 worked, same code) I get this error, when calling Start EncoderLAME (l):

System.BadImageFormatException
  HResult=0x8007000B
  Mensaje = Se ha intentado cargar un programa con un formato incorrecto. (0x8007000B)
(in English, should be "Trying to load a program with incorrect format")
  Origen = Bass.Net
  Seguimiento de la pila: (stack)
   en Un4seen.Bass.AddOn.Enc.BassEnc.BASS_Encode_StartUnicode(Int32 chan, String cmdline, BASSEncode flags, ENCODEPROC proc, IntPtr user)
   en Un4seen.Bass.Misc.EncoderLAME.Start(ENCODEPROC proc, IntPtr user, Boolean paused)

   bool grabaONo = l.Start(null, IntPtr.Zero, false);
   if (!grabaONo) MessageBox.Show("Error al iniciar la grabación");
           

I cannot see definition for BASS_Encode_StartUnicode, so Is that the problem?

Thanks in advance

radio42

ou probably mixing 32 and 64 bit? E.g. your app is 64bit but you are using a native 32bit (bassenc.dll) library - or vice versa?

yafiyeo