Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
QuestionUserControl Pin
nelsonpaixao13-Jul-08 13:25
nelsonpaixao13-Jul-08 13:25 
QuestionInsert image to mysql using c# Pin
SHINOJK13-Jul-08 12:33
SHINOJK13-Jul-08 12:33 
AnswerRe: Insert image to mysql using c# Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:31
professionalVimalsoft(Pty) Ltd13-Jul-08 15:31 
Questionhow to change icon size on the desktop? Pin
isso8713-Jul-08 9:29
isso8713-Jul-08 9:29 
AnswerRe: how to change icon size on the desktop? Pin
DaveyM6913-Jul-08 14:29
professionalDaveyM6913-Jul-08 14:29 
QuestionHandling COM object with an infinite loop Pin
Vitaly Belman13-Jul-08 9:25
Vitaly Belman13-Jul-08 9:25 
AnswerRe: Handling COM object with an infinite loop Pin
Alan Balkany14-Jul-08 4:49
Alan Balkany14-Jul-08 4:49 
AnswerRe: Handling COM object with an infinite loop Pin
Frank Horn14-Jul-08 9:28
Frank Horn14-Jul-08 9:28 
Alan is right there, I'm afraid. There's just no way. You simply cannot kill a thread which is stuck in an unmanaged call. We had this problem too with DCOM calls not guaranteed to return, and had to learn that there is no way to get rid of the calling thread but to kill the process. Calling windows api to abort the thread is out of the question when you have a managed thread cause it will pull the api thread right away from under your managed thread's arse and lead to whatever results. So either you set up a complete process for testing, or you handle the testing within COM (but not in VB6, for lack of threading capabilities, but in C++ with ATL and all that void** stuff).

I don't envy you, if that's any consolation. As Alan said, the best bet would be to avoid all situations where the COM call can hang.
QuestionPassing mouse events over to the parent Pin
-Dy13-Jul-08 8:27
-Dy13-Jul-08 8:27 
AnswerRe: Passing mouse events over to the parent Pin
Luc Pattyn13-Jul-08 9:09
sitebuilderLuc Pattyn13-Jul-08 9:09 
GeneralRe: Passing mouse events over to the parent Pin
-Dy13-Jul-08 11:00
-Dy13-Jul-08 11:00 
GeneralRe: Passing mouse events over to the parent Pin
Frank Horn14-Jul-08 9:39
Frank Horn14-Jul-08 9:39 
QuestionC# vs Java Exception messages Pin
DwR13-Jul-08 5:40
DwR13-Jul-08 5:40 
AnswerRe: C# vs Java Exception messages Pin
Scott Dorman13-Jul-08 6:24
professionalScott Dorman13-Jul-08 6:24 
AnswerRe: C# vs Java Exception messages Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:34
professionalVimalsoft(Pty) Ltd13-Jul-08 15:34 
QuestionGet information about serval given keys is pressed? Pin
panyl13-Jul-08 2:09
panyl13-Jul-08 2:09 
AnswerRe: Get information about serval given keys is pressed? Pin
Guffa13-Jul-08 9:16
Guffa13-Jul-08 9:16 
GeneralRe: Get information about serval given keys is pressed? Pin
panyl13-Jul-08 17:34
panyl13-Jul-08 17:34 
GeneralRe: Get information about serval given keys is pressed? Pin
Luc Pattyn13-Jul-08 18:19
sitebuilderLuc Pattyn13-Jul-08 18:19 
QuestionComboBox Driven DataView FIlter Building Pin
Jammer13-Jul-08 0:54
Jammer13-Jul-08 0:54 
Questionhow to select specific row in DataGrid Pin
Metik13-Jul-08 0:05
Metik13-Jul-08 0:05 
AnswerRe: how to select specific row in DataGrid Pin
panyl13-Jul-08 2:26
panyl13-Jul-08 2:26 
AnswerRe: how to select specific row in DataGrid Pin
Vimalsoft(Pty) Ltd14-Jul-08 5:10
professionalVimalsoft(Pty) Ltd14-Jul-08 5:10 
QuestionSwitch vs If-else Pin
zeeShan anSari12-Jul-08 23:29
zeeShan anSari12-Jul-08 23:29 
AnswerRe: Switch vs If-else Pin
Scott Dorman13-Jul-08 2:24
professionalScott Dorman13-Jul-08 2:24 

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.