I receive an error when there is nothing playing and i click the stop button, how can i get rid of this error??
The error says:Object reference not set to an instance of an object.
Please help i need to finish it by Tuesday!
Printable View
I receive an error when there is nothing playing and i click the stop button, how can i get rid of this error??
The error says:Object reference not set to an instance of an object.
Please help i need to finish it by Tuesday!
P.S i use .net 3.5 and VS C#2008
But i really want a perfect app. it says this for the error, as I said, i need to do it quickly!
It's an attachment!
obviously the player (spWave) is null when you didn't click play before, just do this:
if there is a next time, you'll show your code without request. how do you think we can give you an advice whitout even having seen what you've already done :\Code:if(spWave != null)
spWave.Stop();
yeah i'm sorry-really thanks a lot!