| View previous topic :: View next topic |
| Author |
Message |
pjain101
Joined: 14 Apr 2010 Posts: 3
|
Posted: Wed Apr 14, 2010 12:04 pm Post subject: Embedding madTraceProcess logic in application |
|
|
Hello,
I have an server application which is causing problem at client site.
It is hanging sometime but I can't use Freeze feature as their are certain operation which do take some time to process.
For now, I am giving madTraceProcess.exe to client to get the stack of the hanged server.
But it is not feasible to give the madTraceProcess application everytime.
Can I build the madTraceProcess like functionality in the application (my diagnostic application for client) which I can give me the stack of hanged server?
Regards,
Piyush |
|
| Back to top |
|
 |
madshi Site Admin
Joined: 21 Mar 2004 Posts: 5908
|
Posted: Wed Apr 14, 2010 6:20 pm Post subject: |
|
|
| Sure you can. Just check out the madTraceProcess.dpr source code and copy what you need to your diagnostic tool. |
|
| Back to top |
|
 |
pjain101
Joined: 14 Apr 2010 Posts: 3
|
Posted: Tue Jun 29, 2010 9:36 am Post subject: |
|
|
Sorry for the late reply but Thanks.
I will check it out. |
|
| Back to top |
|
 |
pjain101
Joined: 14 Apr 2010 Posts: 3
|
Posted: Tue Jun 29, 2010 12:07 pm Post subject: Embedding madTraceProcess logic in application |
|
|
I have gone through the code and it is quite complex for my usage (most of the stuff I am not able to understand).
I know the exe path of my server and my diagnostic application will run under administrative privileges.
Can you give/tell me some easy way to get the stack trace?
Regards,
Piyush |
|
| Back to top |
|
 |
madshi Site Admin
Joined: 21 Mar 2004 Posts: 5908
|
Posted: Wed Jun 30, 2010 12:49 pm Post subject: |
|
|
| The madTraceProcess code is not that complicated. Search for "please choose which process you want to trace" in the source code. What is you need is just the 40 lines of source code right below that. |
|
| Back to top |
|
 |
|