Unable to identify cdb.exe dialog.

Ask general questions here.
cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

Unable to identify cdb.exe dialog.

Post by cancerion » Thu Sep 17, 2009 7:46 am

Hi,

In my application I am using windows debugging tool to create dumps for a crash (if any) during MS Outlook automation suite execution. I have installed windows debugging tools to “C:”
Whenever a crash happened, it launches cdb.exe to create a dump and cdb.exe remains there. I want to identify cdb.exe console dialog and close it.

But I am unable to identify cdb.exe console dialog. My application got hang. It hung during debugging also. I tried with object repository as well as with RxPath. Even I am unable to enumerate all open dialogs if cdb.exe console dialog exists.

I tried to query this dialog using class name as mentioned below:

IList<Ranorex.Form> frmCrash = Host.Local.Find<Ranorex.Form>("//Form[@class='ConsoleWindowClass']", 10000);


Title of cdb.exe console dialog is:” C:\Program Files\Debugging Tools for Windows (x86)\cdb.exe”

Class Name: ConsoleWindowClass

Please provide some suggestion/feedback to solve this issue.

Thanks,
Sachin

cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

Re: Unable to identify cdb.exe dialog.

Post by cancerion » Thu Sep 17, 2009 8:44 am

Adding to above scenario

If cdb.exe console dialog is present, I am not able to enumerate all dialogs present, but if able to enumerate is cdb.exe console dialog is not present.
//Code used to enumerate all open dialogs
IList<Ranorex.Form> arr = Host.Local.FindChildren<Ranorex.Form>();
//Code used to get cdb.exe using RxPath
Ranorex.Form frmCrash = Host.Local.FindSingle<Ranorex.Form>("/form[@title~'" + “cdb.exe” + "']", 60000);

If I spy with RanorexSpy.exe I will get cdb’s window’s text as
/form[@title~'^C:\\Program\ Files\\Debuggin']. I see a special character \ in cdb’s dialog title (between Program Files) when I spy with RanorexSpy. It could be a problem with this.

This was working fine with Ranorex 1.5.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Unable to identify cdb.exe dialog.

Post by Support Team » Thu Sep 17, 2009 2:16 pm

Does your Find() code block/hang forever ?
Please try version 2.1.4 which fixes a apphung-related problem.

Regards,
Michael
Ranorex Team