Click here to Skip to main content
15,911,646 members

Comments by Javith khan (Top 5 by date)

Javith khan 22-Sep-14 12:37pm View    
Any help on this would be appreciated.
Thanks.
Javith khan 22-Sep-14 12:36pm View    
Deleted
Hi,
I would like to develop the sample application to generate the Dumpfiles for any application(in which exception occured).

http://blogs.msdn.com/b/dondu/archive/2010/10/24/writing-minidumps-in-c.aspx

I need to know the following values to generate the dumpFile for any process which encountered with exceptions.

currentProcess.Handle,
currentProcess.Id,
currentThread.Id

The first two values, i received using the below snippet.
foreach (Process p in processes)
{
if (p.ProcessName.Equals(processName))
{
handle = p.MainWindowHandle;
id = (uint)p.Id;
break;
}
}

whereas, I am not sure from where i can get the value for currentThread.Id..

In the above blog, they have created the dump file for that particular sample application. Hence they will be able to retrieve all the values required.
But in my case, i am trying to capture all these values for some other application.

Thanks.
Javith khan 22-Sep-14 12:36pm View    
Hi,
I would like to develop the sample application to generate the Dumpfiles for any application(in which exception occured).

http://blogs.msdn.com/b/dondu/archive/2010/10/24/writing-minidumps-in-c.aspx

I need to know the following values to generate the dumpFile for any process which encountered with exceptions.

currentProcess.Handle,
currentProcess.Id,
currentThread.Id

The first two values, i received using the below snippet.
foreach (Process p in processes)
{
if (p.ProcessName.Equals(processName))
{
handle = p.MainWindowHandle;
id = (uint)p.Id;
break;
}
}

whereas, I am not sure from where i can get the value for currentThread.Id..

In the above blog, they have created the dump file for that particular sample application. Hence they will be able to retrieve all the values required.
But in my case, i am trying to capture all these values for some other application.

Thanks.
Javith khan 22-Sep-14 11:25am View    
Hi,

Consider my Application is freezed/hangs due to some exception occured in any of the threads in that application/process.
In this scenario, My Application does not respond and will not be able to proceed further.
Hence, i want to know the current thread at this moment (or) in which thread that exception has occured.

Please feel free if you require any information on the same.

Thanks.
Javith khan 22-Oct-13 2:25am View    
Reason for my vote of 3 \n My Vote of 3