Click here to Skip to main content
15,902,445 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change the Properties.Settings.Default user Pin
Skippums8-Jan-08 7:42
Skippums8-Jan-08 7:42 
GeneralRe: Change the Properties.Settings.Default user Pin
Christopher Stratmann8-Jan-08 7:52
Christopher Stratmann8-Jan-08 7:52 
GeneralRe: Change the Properties.Settings.Default user Pin
Skippums8-Jan-08 8:14
Skippums8-Jan-08 8:14 
GeneralChanging colors of listview items.. Pin
Dio228-Jan-08 7:23
Dio228-Jan-08 7:23 
GeneralRe: Changing colors of listview items.. Pin
cola19738-Jan-08 8:41
cola19738-Jan-08 8:41 
GeneralThreading Advice/Solutions Pin
paul90388-Jan-08 6:11
paul90388-Jan-08 6:11 
GeneralRe: Threading Advice/Solutions Pin
led mike8-Jan-08 7:00
led mike8-Jan-08 7:00 
GeneralRe: Threading Advice/Solutions Pin
Patrick Etc.8-Jan-08 7:17
Patrick Etc.8-Jan-08 7:17 
paul9038 wrote:
If, however the video plays to the end I can't restart the player as the previous thread doesn't seem to have terminated properly.


This should provide some clue as to what's going on. First, you should allow the thread to exit if playback completes (I can infer that you're doing this, I'm just making sure). While you could probably manage to keep the thread alive and consume new playback requests, it is probably much easier to simply let the thread exit and create a new thread when you want to start a new playback.

With that in mind, if your thread is using any unmanaged resources that it doesn't release when the thread exits, the thread will hang when it attempts to exit. I've run into this on multiple occasions. If your thread doesn't seem to be terminating properly, I would look at the resources you're using in that thread and make sure any objects you use are properly Dispose()'d if their documentation says to do so.


It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

QuestionHow to access click event of the controlbox item close 'X' of a form Pin
eoswin8-Jan-08 5:43
eoswin8-Jan-08 5:43 
GeneralRe: How to access click event of the controlbox item close 'X' of a form Pin
Not Active8-Jan-08 5:47
mentorNot Active8-Jan-08 5:47 
GeneralRe: How to access click event of the controlbox item close 'X' of a form Pin
eoswin8-Jan-08 10:55
eoswin8-Jan-08 10:55 
Question[Message Deleted] Pin
sven-it8-Jan-08 5:20
sven-it8-Jan-08 5:20 
GeneralRe: Problem with OpenFiledialog - C# CompactFramework Pin
Not Active8-Jan-08 5:48
mentorNot Active8-Jan-08 5:48 
GeneralWindow.status Bar Pin
A.Asif8-Jan-08 4:40
A.Asif8-Jan-08 4:40 
GeneralRe: Window.status Bar Pin
Judah Gabriel Himango8-Jan-08 6:06
sponsorJudah Gabriel Himango8-Jan-08 6:06 
GeneralRe: Window.status Bar Pin
A.Asif8-Jan-08 6:43
A.Asif8-Jan-08 6:43 
GeneralRe: Window.status Bar Pin
Judah Gabriel Himango8-Jan-08 8:29
sponsorJudah Gabriel Himango8-Jan-08 8:29 
GeneralRe: Window.status Bar Pin
A.Asif8-Jan-08 9:09
A.Asif8-Jan-08 9:09 
GeneralFrom VB6 to C# Pin
haolan8-Jan-08 4:07
haolan8-Jan-08 4:07 
GeneralRe: From VB6 to C# Pin
led mike8-Jan-08 4:57
led mike8-Jan-08 4:57 
GeneralRe: From VB6 to C# Pin
haolan9-Jan-08 0:10
haolan9-Jan-08 0:10 
GeneralRe: From VB6 to C# Pin
Ennis Ray Lynch, Jr.8-Jan-08 6:58
Ennis Ray Lynch, Jr.8-Jan-08 6:58 
GeneralRe: From VB6 to C# Pin
Paul Conrad8-Jan-08 17:30
professionalPaul Conrad8-Jan-08 17:30 
GeneralRe: From VB6 to C# Pin
ChandraRam9-Jan-08 1:00
ChandraRam9-Jan-08 1:00 
Generalproblem in creating xsd/dtd files Pin
chanzeb8-Jan-08 4:00
chanzeb8-Jan-08 4:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.