Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serial Port Help Pin
Chase Davis18-Jun-08 10:20
Chase Davis18-Jun-08 10:20 
GeneralRe: Serial Port Help Pin
Alan N18-Jun-08 13:10
Alan N18-Jun-08 13:10 
QuestionHow to check if keyboard input occurs within a certain time limit? Pin
Michael Zmuda18-Jun-08 9:13
Michael Zmuda18-Jun-08 9:13 
AnswerRe: How to check if keyboard input occurs within a certain time limit? Pin
User 665818-Jun-08 9:21
User 665818-Jun-08 9:21 
QuestionAxWebBrowser question Pin
kozu18-Jun-08 8:51
kozu18-Jun-08 8:51 
AnswerRe: AxWebBrowser question Pin
Judah Gabriel Himango18-Jun-08 11:31
sponsorJudah Gabriel Himango18-Jun-08 11:31 
GeneralRe: AxWebBrowser question Pin
kozu18-Jun-08 11:59
kozu18-Jun-08 11:59 
QuestionGCHandle.Alloc and delegate Pin
Andy Brummer18-Jun-08 7:13
sitebuilderAndy Brummer18-Jun-08 7:13 
I'm using the SetWindowsHookEx Win32 method to set a hook on window activation for my process. It's working fine until garbage collection occurs so I'm trying to pin the delegate using GCHandle.Alloc.

This is failing with an error message that the delegate is nonprimitive and nonblitable even though I've changed the method signature to this:

public delegate IntPtr HProc(IntPtr nCode, IntPtr wParam, IntPtr lParam);


How can I change the delegate so that I can use it, or is there a better approach altogether?


I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon



AnswerRe: GCHandle.Alloc and delegate Pin
carbon_golem18-Jun-08 9:12
carbon_golem18-Jun-08 9:12 
GeneralRe: GCHandle.Alloc and delegate Pin
Andy Brummer18-Jun-08 11:00
sitebuilderAndy Brummer18-Jun-08 11:00 
QuestionClickOnce Pin
Member 391904918-Jun-08 7:07
Member 391904918-Jun-08 7:07 
AnswerRe: ClickOnce Pin
Gareth H18-Jun-08 8:15
Gareth H18-Jun-08 8:15 
Question.NET Remotable Types Pin
conor2018-Jun-08 5:39
conor2018-Jun-08 5:39 
QuestionType casting Pin
indian14318-Jun-08 5:04
indian14318-Jun-08 5:04 
AnswerRe: Type casting Pin
DaveyM6918-Jun-08 5:08
professionalDaveyM6918-Jun-08 5:08 
AnswerRe: Type casting Pin
led mike18-Jun-08 5:21
led mike18-Jun-08 5:21 
AnswerRe: Type casting Pin
Pete O'Hanlon18-Jun-08 8:37
mvePete O'Hanlon18-Jun-08 8:37 
QuestionCustom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 5:01
rcaciopp18-Jun-08 5:01 
AnswerRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
led mike18-Jun-08 5:26
led mike18-Jun-08 5:26 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 6:24
rcaciopp18-Jun-08 6:24 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
darkelv18-Jun-08 6:31
darkelv18-Jun-08 6:31 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 6:48
rcaciopp18-Jun-08 6:48 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
darkelv18-Jun-08 6:58
darkelv18-Jun-08 6:58 
AnswerRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 7:26
rcaciopp18-Jun-08 7:26 
QuestionCulture independant Dates? Pin
Megidolaon18-Jun-08 3:59
Megidolaon18-Jun-08 3:59 

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.