Click here to Skip to main content
16,005,141 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# and networking with Ethernet Bridge... Pin
Russell Jones21-Nov-06 21:07
Russell Jones21-Nov-06 21:07 
QuestionResources in design-time Pin
Anton Afanasyev21-Nov-06 13:56
Anton Afanasyev21-Nov-06 13:56 
QuestionThreads and KeyBoard Hook Pin
ranzask21-Nov-06 13:24
ranzask21-Nov-06 13:24 
AnswerRe: Threads and KeyBoard Hook Pin
Judah Gabriel Himango21-Nov-06 13:29
sponsorJudah Gabriel Himango21-Nov-06 13:29 
GeneralRe: Threads and KeyBoard Hook Pin
ranzask21-Nov-06 13:39
ranzask21-Nov-06 13:39 
GeneralRe: Threads and KeyBoard Hook Pin
Judah Gabriel Himango21-Nov-06 15:39
sponsorJudah Gabriel Himango21-Nov-06 15:39 
GeneralRe: Threads and KeyBoard Hook Pin
ranzask21-Nov-06 22:00
ranzask21-Nov-06 22:00 
GeneralRe: Threads and KeyBoard Hook Pin
Judah Gabriel Himango22-Nov-06 5:44
sponsorJudah Gabriel Himango22-Nov-06 5:44 
IIRC is "if I recall correctly". Smile | :)


When you pass a delegate instance in for the lpfn parameter of SetWindowsHookEx, make that delegate be a field in your class so that it doesn't get disposed; as I recall, since the object is being passed into a native method, then never used again, the garbage collector cleans up the delegate, causing your hook to fail. So one thing to check is make sure the delegate you pass into SetWindowsHookEx stays alive.

Windows may have some mechanism so that if the process eating the keyboard is not responding (i.e. busy do to lots of work) it may send out the key events to other processes. Can you make your work occur on another thread, thus keeping the hook procedure thread free? That'd be ideal.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: God-as-Judge, God-as-Forgiver
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


QuestionError CS1705 Pin
jimNLX21-Nov-06 10:27
jimNLX21-Nov-06 10:27 
AnswerRe: Error CS1705 Pin
George L. Jackson21-Nov-06 12:54
George L. Jackson21-Nov-06 12:54 
QuestionRemoting and controlling access to properties Pin
Wjousts21-Nov-06 7:51
Wjousts21-Nov-06 7:51 
AnswerRe: Remoting and controlling access to properties Pin
ednrgc21-Nov-06 8:46
ednrgc21-Nov-06 8:46 
AnswerRe: Remoting and controlling access to properties Pin
ednrgc21-Nov-06 8:54
ednrgc21-Nov-06 8:54 
GeneralRe: Remoting and controlling access to properties Pin
Wjousts21-Nov-06 11:04
Wjousts21-Nov-06 11:04 
QuestionWndProc Pin
vincent3121-Nov-06 7:45
vincent3121-Nov-06 7:45 
QuestionRead whole file into memory or just parts that are needed? Pin
Mike Bluett21-Nov-06 7:15
Mike Bluett21-Nov-06 7:15 
AnswerRe: Read whole file into memory or just parts that are needed? Pin
Steve Maier21-Nov-06 9:19
professionalSteve Maier21-Nov-06 9:19 
GeneralRe: Read whole file into memory or just parts that are needed? Pin
Mike Bluett21-Nov-06 9:58
Mike Bluett21-Nov-06 9:58 
GeneralRe: Read whole file into memory or just parts that are needed? Pin
Steve Maier21-Nov-06 10:38
professionalSteve Maier21-Nov-06 10:38 
Questionhow to highlight syntax after loading a file into a richtextbox Pin
veluru krishna21-Nov-06 7:12
veluru krishna21-Nov-06 7:12 
AnswerRe: how to highlight syntax after loading a file into a richtextbox Pin
ednrgc21-Nov-06 8:55
ednrgc21-Nov-06 8:55 
AnswerRe: how to highlight syntax after loading a file into a richtextbox Pin
Pete O'Hanlon21-Nov-06 9:36
mvePete O'Hanlon21-Nov-06 9:36 
Questionbuffer object and sample rate (directx) Pin
qkhader21-Nov-06 7:11
qkhader21-Nov-06 7:11 
Questionhow to get all controls of a perticular form Pin
Amar Chaudhary21-Nov-06 6:35
Amar Chaudhary21-Nov-06 6:35 
AnswerRe: how to get all controls of a perticular form Pin
Russell Jones21-Nov-06 7:01
Russell Jones21-Nov-06 7:01 

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.