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
Unable to identify cdb.exe dialog.
Re: Unable to identify cdb.exe dialog.
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.
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.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Unable to identify cdb.exe dialog.
Does your Find() code block/hang forever ?
Please try version 2.1.4 which fixes a apphung-related problem.
Regards,
Michael
Ranorex Team
Please try version 2.1.4 which fixes a apphung-related problem.
Regards,
Michael
Ranorex Team