--- Tan Ying Liang <[EMAIL PROTECTED]> wrote: > The thing is that I did not use any statement that involves > MemHandle, it is just a simple program that make sound after > clicking on a button.
What function did you use to make sound? (SndDoCmd? SndPlaySmf? SndPlaySmfIrregardless? SndPlaySmfResource? SndPlaySmfResourceIrregardless? SndPlaySystemSound? Directly programming the hardware speaker?) The most likely problem is that your code calls some function, passing in bad arguments. That function calls some OS function (which may call another...) and eventually something gets a bad handle. There are three options to solving your problem: 1. As I previously said, use the debugger. Look at the stack trace to see which line of your code was the last one called before the error occurred. Then, if you can't figure out how to fix the error, post that code. 2. Guess which code causes the error and post it so we can look at it. 3. Wait until someone on the list guesses what you did wrong. I think Option #1 is your best choice. __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
