Author Topic: ChannelGetLevel after ChannelSetDevice causes System.AccessViolationException  (Read 3039 times)

makrulez

  • Posts: 5
Hi,

using latest Bass 2.4 beta and Bass.Net Api 2.4.0.0 Final in Visual Studio 2008,
after having Initialized all devices,
after using BASS_ChannelSetDevice to change to another device,
the new device starts playing and loops the last frame i got the following error using this function:

Bass.BASS_ChannelGetLevel(strm)

A first chance exception of type 'System.AccessViolationException' occurred.
Trying to read or write protected memory. This is an indication that regular memory is corrupted.

If i comment out the function, the playback is correctly working.

I tried with FLAC and MP3.

Any suggestions? Thanks!

Ian @ un4seen

  • Administrator
  • Posts: 20424
I don't use .Net myself, so I'm not sure, but I don't think it gives any details (location/etc) about crashes? If so, I think I will have to send you a debug version to find out what's happening.

makrulez

  • Posts: 5
I'm ready to solve this problem, send me an e-mail with the attachment or/and the instructions. If you need I can be contacted by MSN.

Thanks