PDA

View Full Version : OnMouseMove / Application.Exit() bug?


clueless
02-16-2008, 10:14 AM
I wrote a short function to help when testing AMS progs. I wanted to halt the program code and display a message so I made the message display 'MB_YESNO' so i could include an option to quit the app in the same window.

function dMess( DisplayText )
if Dialog.Message(DisplayText, "Would you like to quit", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1)==6 then
Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Squisher.ogg", true, false);
Application.Exit(0);
end
end
This seems to work fine most of the time untill i call it from OnMouseMove where it refuses to quit.I added the sound to check if Application.Exit() was being called.

Darryl
02-18-2008, 08:20 AM
Thanks, we'll look into that.

REF: 17259