Any ideas.
Thanks.
--
Scott H.
and make sure that you are using the proper debugger
that matches the registry key and the bit-ness of the process you are
running
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Scott H." <Sco...@discussions.microsoft.com> wrote in message
news:DEF96062-29B7-40B6...@microsoft.com...
The proper registry keys are set in HKLM\Software\wow6432\Microsoft\Windows
NT\CurrentVersion\AeDebug.
The Debugger value is set to "c:\Program Files (x86)\Debugging Tools For
Windows\windbg.exe" -p %ld -e %ld -g
And there are keys set in the HKLM\Software\wow6432\Microsoft\Windows
NT\CurrentVersion\Image File as well.
There is nothing in HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image
File or AeDebug.
I start Windbg from a command prompt where C:\Program Files (x86)\Debugging
Tools for Windows is in the path, so I must be using the 32 bit debugger. I
never installed the 64 bit version.
Does this mean the debugger is looking for a 64 bit application? I still do
not understand why I receive an error when I try and debug my 32 bit
application.
I have tried this on two different machines with the same results. I do have
this working on a machine using Vista Ultamite x32.
--
Scott H.
> I start Windbg from a command prompt where C:\Program Files (x86)\Debugging
> Tools for Windows is in the path, so I must be using the 32 bit debugger. I
> never installed the 64 bit version.
And so you have installed a 32-Bit debugger and it has registered for
32-Bit applications.
> Does this mean the debugger is looking for a 64 bit application?
No. 64-Bit apps are not looking into the wow6432 subkey...
> I still do not understand why I receive an error when I try and debug my 32 bit
> application.
What error do you receive?
> I have tried this on two different machines with the same results. I do have
> this working on a machine using Vista Ultamite x32.
Is you application 32-Bit or 64-Bit?
Greetings
Jochen
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Scott H." <Sco...@discussions.microsoft.com> wrote in message
news:884CD492-D893-433A...@microsoft.com...
> I suspect you have a conflicting set of debugger specifications
> (for example, you are using a path with spaces under
> `Image File Execution Options\<imagename.exe>\Debugger = <path with spaces>)
It seems that this is an restriction in the "Debugger" keyword:
For example see:
http://support.microsoft.com/kb/238788/en-us
<quote>
Note: The path that points to the WinDBG debugger must not contain any
spaces or file extensions. For example, windbg, as shown in the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image
File Execution Options\yourCGI.exe "Debugger"="C:\windbg"
</quote>
--
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jochen Kalmbach [MVP]" <nospam-Joch...@holzma.de> wrote in message
news:OoTFH4wT...@TK2MSFTNGP02.phx.gbl...
> I suspect you have a conflicting set of debugger specifications
> (for example, you are using a path with spaces under
> `Image File Execution Options\<imagename.exe>\Debugger = <path with spaces>)
You as small addition:
To be sure, you need to create the "Image File Execution Options" in
*both* nodes (normal and wow6432); because the process which calls
"CreateProcess" determins what node will be read.
So if your _launching_ program ist 64-Bit, it looks in the "normal"
node; if you _launching_ progranm is 32-Bit it will look into the
wow6432 node!
See: Inside 'Image File Execution Options' debugging
http://blogs.msdn.com/greggm/archive/2005/02/21/377663.aspx
There are several keys found under Image File Execution Options:
ApplicationVerifierGlobalSettings
DINXOptions
IEInstl.exe
MyAppliction.exe
COM
Core
Exceptions
Handles
Heaps
Locks
Memory
RPC
ThreadPool
TLS
The String Value Debugger exists under MyApplication.exe with the path
pointing to windbg.exe
--
Scott H.
Remove any key from under `Image File Execution Options` related to your
image
from both the native native registry and the wow3264node.
Create only this
`Image File Excution Options\notepad.exe`
Debuggers = REG_SZ c:\debuggers\ntsd.exe -g -G
From a 64-bit command prompt, start notepad.exe
Repeat the exercise from a 32-bit command prompt
(start %windir%\syswow64\cmd.exe), after
you have created the relevant keys under wow3264node.
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Scott H." <Sco...@discussions.microsoft.com> wrote in message
news:1DA97797-0C42-4309...@microsoft.com...
When I open a 64-bit command prompt and type notepad.exe, an additional
command prompt opens with debug info such as symbol path and module
information and so on. This of course also opens a session of notpad.
When I execute notepad from a 32-bit command prompt, only a session of
notepad opens.
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Scott H." <Sco...@discussions.microsoft.com> wrote in message
news:FC33C636-3712-44B1...@microsoft.com...