0
0

Hi,

I get the following error from the Update() function when a song has ended… Doing a little research, I find that I get this exception after a song has been played twice in a row (or two different songs have been played in a row!)

Object reference not set to an instance of an object.

[code:32l43xzt]************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at FMOD.CHANNEL_CALLBACK.Invoke(IntPtr channelraw, CHANNEL_CALLBACKTYPE type, Int32 command, UInt32 commanddata1, UInt32 commanddata2)
at FMOD.System.FMOD_System_Update(IntPtr system)
at FMOD.System.update() in c:\documents and settings\rmh14\my documents\visual studio projects\testfmodapp\fmod.cs:line 1529
at TestFModApp.FrmMain.tmrUpdate_Tick(Object sender, EventArgs e) in c:\documents and settings\rmh14\my documents\visual studio projects\testfmodapp\form1.cs:line 811
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032

CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll

TestFModApp
Assembly Version: 1.0.2342.22851
Win32 Version: 1.0.2342.22851

CodeBase: file:///C:/Documents%20and%20Settings/rmh14/My%20Documents/Visual%20Studio%20Projects/TestFModApp/bin/Debug/TestFModApp.exe

System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032

CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll

System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032

CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll

System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
—————————————-[/code:32l43xzt]

Any ideas? For those who are interested, my code can be found [url=http://www.cs.waikato.ac.nz/~rmh14/Form1.cs:32l43xzt]here[/url:32l43xzt]

Any input on where I have erred would be appreciated!

  • You must to post comments
0
0

Hi,

I just compiled the source code you linked to and wasn’t able to reproduce the problem you have. I went to "Choose File!" and then played a song lots of times in a row (as well as different songs).

I can only suggest making sure you are using the latest version of fmod and also that the fmod.cs version matches the version of fmod you are using.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.