EricDraven
Programmer
Hi all, bit of a problem!
Im trying to make a program which is basically a slide show of pictures accompanyed by music related to the pictures by the year they were taken. Ive utilised the mediaplayer component to do this but once started, the procedure I have written runs right through the music and photos (as it should) without the user being able to quit the procedure. Because of this I decided a thread was the right way to go which means that the user can exit at any time right! Wrong, The thread termination only seems to work when the current sing has finished playing which is bearable but delphi is producing a win32 error when closing down the program. Using the debugger I have narrowed this down to the Thread but this is the first time Ive used one so Im not entirely sure about the correct way they should be used. Any help, advice, pointers, hair replacement formulas would be greatly apprecated!
Cheers Eric
Im trying to make a program which is basically a slide show of pictures accompanyed by music related to the pictures by the year they were taken. Ive utilised the mediaplayer component to do this but once started, the procedure I have written runs right through the music and photos (as it should) without the user being able to quit the procedure. Because of this I decided a thread was the right way to go which means that the user can exit at any time right! Wrong, The thread termination only seems to work when the current sing has finished playing which is bearable but delphi is producing a win32 error when closing down the program. Using the debugger I have narrowed this down to the Thread but this is the first time Ive used one so Im not entirely sure about the correct way they should be used. Any help, advice, pointers, hair replacement formulas would be greatly apprecated!
Cheers Eric