When I use this command in Visual Basic Pro 6 it does not seam to erase the variable SoundPlaying to 0.
result = FMOD_Sound_Release(SoundPlaying)
You say to use this when exiting the program
If Sound Then result = FMOD_Sound_Release(Sound) ERRCHECK (result) End If If System Then result = FMOD_System_Close(System) ERRCHECK (result) result = FMOD_System_Release(System) ERRCHECK (result) End If
But when I trace the program the statment If Sound Then returns true and then the statement result = FMOD_Sound_Release(Sound) kills the VB6 programming IDE and gives an error message: The instruction at “0x0000002c” referenced memory at “0x0000002c”. The memory could not be “read”
But if I comment out these statements the program works fine.
'If Sound Then ' result = FMOD_Sound_Release(Sound) ' ERRCHECK (result) ' End If
- You must login to post comments