madshi.net Forum Index madshi.net
high quality low level programming
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Embedding madTraceProcess logic in application

 
Post new topic   Reply to topic    madshi.net Forum Index -> madExcept
View previous topic :: View next topic  
Author Message
pjain101



Joined: 14 Apr 2010
Posts: 3

PostPosted: Wed Apr 14, 2010 12:04 pm    Post subject: Embedding madTraceProcess logic in application Reply with quote

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
View user's profile Send private message
madshi
Site Admin


Joined: 21 Mar 2004
Posts: 5908

PostPosted: Wed Apr 14, 2010 6:20 pm    Post subject: Reply with quote

Sure you can. Just check out the madTraceProcess.dpr source code and copy what you need to your diagnostic tool.
Back to top
View user's profile Send private message Send e-mail
pjain101



Joined: 14 Apr 2010
Posts: 3

PostPosted: Tue Jun 29, 2010 9:36 am    Post subject: Reply with quote

Sorry for the late reply but Thanks.

I will check it out.
Back to top
View user's profile Send private message
pjain101



Joined: 14 Apr 2010
Posts: 3

PostPosted: Tue Jun 29, 2010 12:07 pm    Post subject: Embedding madTraceProcess logic in application Reply with quote

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
View user's profile Send private message
madshi
Site Admin


Joined: 21 Mar 2004
Posts: 5908

PostPosted: Wed Jun 30, 2010 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    madshi.net Forum Index -> madExcept All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group