Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
QuestionHow to know if unmanaged object is not in memory? Pin
AksharRoop18-Mar-10 21:26
AksharRoop18-Mar-10 21:26 
Problem Statement: How to know if unmanaged com object is deleted from memory.

Problem Description: I have unmanaged object instance in one class. When closing application this object is is destructed from other part of code. And it also comes to point where object is member of class to do some final clear stuff. When it tried to access this com object (which has already been deleted from memory) it throws memory access violation error.

Is there any way to know if this object still exist?

Thanks,
AksharRoop
AnswerRe: How to know if unmanaged object is not in memory? Pin
Som Shekhar19-Mar-10 1:19
Som Shekhar19-Mar-10 1:19 
GeneralRe: How to know if unmanaged object is not in memory? Pin
AksharRoop19-Mar-10 2:55
AksharRoop19-Mar-10 2:55 
GeneralRe: How to know if unmanaged object is not in memory? Pin
Dave Kreskowiak19-Mar-10 3:00
mveDave Kreskowiak19-Mar-10 3:00 
GeneralRe: How to know if unmanaged object is not in memory? Pin
Som Shekhar19-Mar-10 3:05
Som Shekhar19-Mar-10 3:05 
QuestionAny freeware event calendar develop in .NET 1.1 ???? Pin
mimimimilaw18-Mar-10 20:52
mimimimilaw18-Mar-10 20:52 
AnswerMessage Closed Pin
18-Mar-10 21:59
stancrm18-Mar-10 21:59 
GeneralRe: Any freeware event calendar develop in .NET 1.1 ???? Pin
mimimimilaw18-Mar-10 22:36
mimimimilaw18-Mar-10 22:36 
GeneralRe: Any freeware event calendar develop in .NET 1.1 ???? Pin
Alex Manolescu20-Mar-10 5:41
Alex Manolescu20-Mar-10 5:41 
QuestionDisplay variable value in Crystal Report Text Box Pin
mjawadkhatri18-Mar-10 20:43
mjawadkhatri18-Mar-10 20:43 
AnswerRe: Display variable value in Crystal Report Text Box Pin
Anubhava Dimri18-Mar-10 21:51
Anubhava Dimri18-Mar-10 21:51 
QuestionMessage Removed Pin
18-Mar-10 20:40
zafax_18-Mar-10 20:40 
AnswerRe: search items inside datagridview Pin
clfalh18-Mar-10 22:44
clfalh18-Mar-10 22:44 
GeneralRe: search items inside datagridview Pin
zafax_19-Mar-10 1:03
zafax_19-Mar-10 1:03 
GeneralRe: search items inside datagridview Pin
clfalh19-Mar-10 15:47
clfalh19-Mar-10 15:47 
GeneralRe: search items inside datagridview Pin
zafax_19-Mar-10 19:34
zafax_19-Mar-10 19:34 
QuestionProblem to add new type to external assembly via System.Reflection.Emit Pin
hdv21218-Mar-10 20:38
hdv21218-Mar-10 20:38 
QuestionHow to run a process forever Pin
Xelalem18-Mar-10 20:20
Xelalem18-Mar-10 20:20 
AnswerRe: How to run a process forever Pin
Calla18-Mar-10 20:50
Calla18-Mar-10 20:50 
GeneralRe: How to run a process forever Pin
Xelalem18-Mar-10 22:36
Xelalem18-Mar-10 22:36 
GeneralRe: How to run a process forever Pin
Mirko198018-Mar-10 22:50
Mirko198018-Mar-10 22:50 
GeneralRe: How to run a process forever Pin
Calla18-Mar-10 22:56
Calla18-Mar-10 22:56 
AnswerRe: How to run a process forever Pin
Anubhava Dimri18-Mar-10 21:54
Anubhava Dimri18-Mar-10 21:54 
GeneralRe: How to run a process forever Pin
Xelalem18-Mar-10 22:38
Xelalem18-Mar-10 22:38 
GeneralRe: How to run a process forever Pin
Richard MacCutchan18-Mar-10 22:45
mveRichard MacCutchan18-Mar-10 22:45 

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.