Click here to Skip to main content
15,886,919 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionNarayanan [modified] Pin
Narayanan chidambaram25-May-10 20:26
Narayanan chidambaram25-May-10 20:26 
AnswerRe: Narayanan Pin
Hristo-Bojilov25-May-10 20:40
Hristo-Bojilov25-May-10 20:40 
AnswerRe: Narayanan Pin
Abhinav S25-May-10 20:46
Abhinav S25-May-10 20:46 
AnswerRe: Narayanan Pin
Dave Kreskowiak26-May-10 2:09
mveDave Kreskowiak26-May-10 2:09 
AnswerRe: Narayanan Pin
LloydA11130-May-10 11:26
LloydA11130-May-10 11:26 
QuestionNET Framework 3.5 Configuration tool in VISTA Pin
NarVish25-May-10 19:34
NarVish25-May-10 19:34 
AnswerRe: NET Framework 3.5 Configuration tool in VISTA Pin
Hristo-Bojilov25-May-10 20:37
Hristo-Bojilov25-May-10 20:37 
QuestionHow to handle windows message in my .NET layer? Pin
cmartono25-May-10 17:06
cmartono25-May-10 17:06 
Hi All,
I am creating a .NET layer "X" (a dll) to be used as an "api" to my other .NET applications that can be either a window or a console. This layer "X" uses an unmanage c++ code that sends windows-messages using ::SendMessage / ::PostMessage. So i thought I created a System.Window.window instance (and hide the window) in Layer X so that Layer X can receive and handle the window messages from the unmanage code.

The problem:
The receive message works, but now Layer X can not close itself. Even after the application that uses it terminates, somehow the process left hanging because Layer X is unable to clean itself up and have a hidden window hanging. I put "window.Close()" in Layer X's ~Destructor. But the ~Destructor itself is never invoked. I think it's a chicken and egg problem.

Comments and suggestion are highly appreciated.

-Chris
AnswerRe: How to handle windows message in my .NET layer? Pin
Luc Pattyn25-May-10 17:23
sitebuilderLuc Pattyn25-May-10 17:23 
GeneralRe: How to handle windows message in my .NET layer? Pin
cmartono25-May-10 17:59
cmartono25-May-10 17:59 
GeneralRe: How to handle windows message in my .NET layer? Pin
Luc Pattyn25-May-10 18:06
sitebuilderLuc Pattyn25-May-10 18:06 
Questionhow to set Tag property of validationresult from WCF ValidationFault Pin
MurtuzaJ25-May-10 3:33
MurtuzaJ25-May-10 3:33 
Questionanother clarification about using static methods and instantiated methods for threads Pin
prasadbuddhika24-May-10 18:24
prasadbuddhika24-May-10 18:24 
AnswerRe: another clarification about using static methods and instantiated methods for threads Pin
Luc Pattyn24-May-10 18:48
sitebuilderLuc Pattyn24-May-10 18:48 
AnswerRe: another clarification about using static methods and instantiated methods for threads Pin
prasadbuddhika25-May-10 2:21
prasadbuddhika25-May-10 2:21 
Questionneed a clarification about inheritence Pin
prasadbuddhika24-May-10 2:53
prasadbuddhika24-May-10 2:53 
AnswerRe: need a clarification about inheritence Pin
Abhinav S24-May-10 3:07
Abhinav S24-May-10 3:07 
AnswerRe: need a clarification about inheritence Pin
Luc Pattyn24-May-10 5:00
sitebuilderLuc Pattyn24-May-10 5:00 
AnswerRe: need a clarification about inheritence Pin
prasadbuddhika24-May-10 17:41
prasadbuddhika24-May-10 17:41 
AnswerRe: need a clarification about inheritence Pin
NetQuestions24-May-10 19:16
NetQuestions24-May-10 19:16 
GeneralRe: need a clarification about inheritence Pin
prasadbuddhika24-May-10 22:59
prasadbuddhika24-May-10 22:59 
Questionxml to gridview [modified] Pin
Tomlor198022-May-10 2:49
Tomlor198022-May-10 2:49 
AnswerRe: xml to gridview Pin
Abhinav S22-May-10 3:01
Abhinav S22-May-10 3:01 
AnswerRe: xml to gridview Pin
Not Active22-May-10 3:02
mentorNot Active22-May-10 3:02 
AnswerRe: xml to gridview Pin
Not Active22-May-10 3:04
mentorNot Active22-May-10 3:04 

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.