Click here to Skip to main content
15,908,015 members
Home / Discussions / C#
   

C#

 
QuestionHow to connect from PDA to server web Pin
AlexB476-Nov-08 23:39
AlexB476-Nov-08 23:39 
Questioncancel an event Pin
prasadbuddhika6-Nov-08 23:14
prasadbuddhika6-Nov-08 23:14 
AnswerRe: cancel an event Pin
Pete O'Hanlon6-Nov-08 23:21
mvePete O'Hanlon6-Nov-08 23:21 
AnswerRe: cancel an event Pin
prasadbuddhika6-Nov-08 23:21
prasadbuddhika6-Nov-08 23:21 
GeneralRe: cancel an event Pin
DaveyM696-Nov-08 23:38
professionalDaveyM696-Nov-08 23:38 
QuestionDesign report by PrinPreviewDialog? Pin
kieu duc khuong6-Nov-08 23:11
kieu duc khuong6-Nov-08 23:11 
AnswerRe: Design report by PrinPreviewDialog? Pin
Dave Kreskowiak7-Nov-08 3:09
mveDave Kreskowiak7-Nov-08 3:09 
QuestionUnmanaged thread in C# Pin
__DanC__6-Nov-08 22:55
__DanC__6-Nov-08 22:55 
I'm using a DLL written in C++ which creates a processing thread which processes items added to a queue from other threads. This works well from unmanaged code but I am now trying to use the DLL in a managed application. The thread is created and runs as expected processing items passed to it from C#, the problem occurs when I try to call Application.Run(dialog) or dialog.ShowDialog(). The form is destroyed immediately so it simply flashes on the screen and disappears. This does not happen when the unmanaged thread is not running.

The loop within the C++ thread is simply:

while( true )
{
    WaitForSingleObject(hEvent);
    while( !queue.empty() )
    {
        DoProcess(queue.front());
    }
}


And the thread is created with:

g_hThread = CreateThread(NULL, NULL, ThumbnailThreadProc, NULL, 0, &g_nThreadId);


Is there a reason for this behaviour?
AnswerRe: Unmanaged thread in C# Pin
leppie6-Nov-08 22:57
leppie6-Nov-08 22:57 
QuestionHow to call a javascript function in pageload Pin
Kolluri Swapna6-Nov-08 22:44
Kolluri Swapna6-Nov-08 22:44 
AnswerRe: How to call a javascript function in pageload Pin
leppie6-Nov-08 22:55
leppie6-Nov-08 22:55 
Questionaccessing array Pin
B876-Nov-08 22:27
B876-Nov-08 22:27 
AnswerRe: accessing array Pin
Giorgi Dalakishvili6-Nov-08 22:29
mentorGiorgi Dalakishvili6-Nov-08 22:29 
JokeRe: accessing array Pin
selcuks6-Nov-08 22:49
selcuks6-Nov-08 22:49 
GeneralRe: accessing array Pin
B876-Nov-08 23:12
B876-Nov-08 23:12 
GeneralRe: accessing array Pin
selcuks7-Nov-08 1:45
selcuks7-Nov-08 1:45 
QuestionC# resources ???? Pin
shaveen6-Nov-08 21:07
shaveen6-Nov-08 21:07 
AnswerRe: C# resources ???? Pin
J4amieC6-Nov-08 22:11
J4amieC6-Nov-08 22:11 
QuestionRe: C# resources ???? Pin
nelsonpaixao7-Nov-08 13:42
nelsonpaixao7-Nov-08 13:42 
Questionwindows service Desktop intraction option enable true Pin
vishnukamath6-Nov-08 20:24
vishnukamath6-Nov-08 20:24 
AnswerRe: windows service Desktop intraction option enable true Pin
leppie6-Nov-08 22:53
leppie6-Nov-08 22:53 
AnswerRe: windows service Desktop intraction option enable true Pin
Giorgi Dalakishvili7-Nov-08 1:30
mentorGiorgi Dalakishvili7-Nov-08 1:30 
QuestionBuild Error Mystery Pin
Roger Wright6-Nov-08 19:54
professionalRoger Wright6-Nov-08 19:54 
GeneralRe: Build Error Mystery Pin
nelsonpaixao7-Nov-08 13:46
nelsonpaixao7-Nov-08 13:46 
QuestionDisplaying values of one form to another form Pin
B876-Nov-08 18:26
B876-Nov-08 18:26 

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.