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


  • Posts: 5

using latest Bass 2.4 beta and Bass.Net Api 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:


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: 21333
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.


  • 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.