Connecting Tech Pros Worldwide Forums | Help | Site Map

Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"

Ole
Guest
 
Posts: n/a
#1: Aug 18 '06
Hi,

Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug
my C# program from VS2005 - when setting a breakpoint I only see a ring
instead of the normal red dot and when holding the mouse over it I see a
message saying: "The breakpoint will not currently be hit. The specified
module has not been loaded". I have no problem when debugging a normal full
framework application. I have not changed anything in my settings (afaik)
and the problem is also present after a reboot and in a total new and
default project !?!

Searching Google gave no result so any help is highly appriciated.

Thanks
Ole


Bala
Guest
 
Posts: n/a
#2: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Hey,

I've experienced similar behaviour in Visual Studio 2005. The problem
here seems to be the fact that the "modules" being started by the
debugger aren't the same as the source you're lediting and building.

For example (strongly simplified):
I'm editing a project in c:\VS2005\MyProject
I'm building the project to c:\VS2005\MyProject\Bin\Debug

The debugger starts c:\VS2005\OtherProject\Bin\Debug\project.exe

Hence, the wrong project is started!
I solved this issue by recreating the entire project from scratch
(select "New project" from the Visual Studio menu and manually add all
your source files using "Add existing item"). Somehow my project files
were totally f##ked up, so recreating these solved the problem.

Hope this helps,

Alke Wiebenga



Ole schreef:
Quote:
Hi,
>
Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug
my C# program from VS2005 - when setting a breakpoint I only see a ring
instead of the normal red dot and when holding the mouse over it I see a
message saying: "The breakpoint will not currently be hit. The specified
module has not been loaded". I have no problem when debugging a normal full
framework application. I have not changed anything in my settings (afaik)
and the problem is also present after a reboot and in a total new and
default project !?!
>
Searching Google gave no result so any help is highly appriciated.
>
Thanks
Ole
Marc Gravell
Guest
 
Posts: n/a
#3: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


I'm guessing that there are (at least) 2 projects involved, one referencing
the other;

Usually this means that the running app has loaded its dll from elsewhere
(e.g. the GAC) and it doesn't match. Check the references, switching
(temporarily) to project referencing if it helps to debug.

Marc


Bala
Guest
 
Posts: n/a
#4: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"



Ole schreef:
Quote:
Hi,
>
Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug
my C# program from VS2005 - when setting a breakpoint I only see a ring
instead of the normal red dot and when holding the mouse over it I see a
message saying: "The breakpoint will not currently be hit. The specified
module has not been loaded". I have no problem when debugging a normal full
framework application. I have not changed anything in my settings (afaik)
and the problem is also present after a reboot and in a total new and
default project !?!
>
Searching Google gave no result so any help is highly appriciated.
>
Thanks
Ole
Oh, sorry for my previous post. My bad!!! :)
I kinda read over the part where you say that you already tried
starting a new project.

The only reason I can think of is that the debugger is screwing up. It
loads modules which aren't tied to the source you're editing. Have you
checked out the debugger options (symbols etc.) for anything out of the
ordinary?

Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
#5: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Hi,

Did you check if you have the project in Debug and not in release mode?


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Ole" <ole@blabla.comwrote in message
news:Ojqk9gswGHA.4476@TK2MSFTNGP02.phx.gbl...
Quote:
Hi,
>
Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't
debug my C# program from VS2005 - when setting a breakpoint I only see a
ring instead of the normal red dot and when holding the mouse over it I
see a message saying: "The breakpoint will not currently be hit. The
specified module has not been loaded". I have no problem when debugging a
normal full framework application. I have not changed anything in my
settings (afaik) and the problem is also present after a reboot and in a
total new and default project !?!
>
Searching Google gave no result so any help is highly appriciated.
>
Thanks
Ole
>

Ole
Guest
 
Posts: n/a
#6: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


The project is in debug mode. Even if I do create a new empty Smart Device
project and don't do anything else than setting a breakpoint at
"InitializeComponents" I got the problem ?!?

How do I see if the file it actually tries to debug is the same file as the
project file?

Thanks for your replies!
Ole

"Bala" <a_Wiebenga@hotmail.comwrote in message
news:1155908824.053141.276760@74g2000cwt.googlegro ups.com...
Quote:
>
Ole schreef:
>
Quote:
>Hi,
>>
>Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't
>debug
>my C# program from VS2005 - when setting a breakpoint I only see a ring
>instead of the normal red dot and when holding the mouse over it I see a
>message saying: "The breakpoint will not currently be hit. The specified
>module has not been loaded". I have no problem when debugging a normal
>full
>framework application. I have not changed anything in my settings (afaik)
>and the problem is also present after a reboot and in a total new and
>default project !?!
>>
>Searching Google gave no result so any help is highly appriciated.
>>
>Thanks
>Ole
>
Oh, sorry for my previous post. My bad!!! :)
I kinda read over the part where you say that you already tried
starting a new project.
>
The only reason I can think of is that the debugger is screwing up. It
loads modules which aren't tied to the source you're editing. Have you
checked out the debugger options (symbols etc.) for anything out of the
ordinary?
>

Ole
Guest
 
Posts: n/a
#7: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Have just tried a new project on a Pocket PC 2003 - there it works fine!
this means that it is only on my windows 5.0 device that debug doesn't work
(anymore - it used to).

Thanks
Ole


"Ole" <ole@blabla.comwrote in message
news:uXFlPNtwGHA.2384@TK2MSFTNGP02.phx.gbl...
Quote:
The project is in debug mode. Even if I do create a new empty Smart Device
project and don't do anything else than setting a breakpoint at
"InitializeComponents" I got the problem ?!?
>
How do I see if the file it actually tries to debug is the same file as
the project file?
>
Thanks for your replies!
Ole
>
"Bala" <a_Wiebenga@hotmail.comwrote in message
news:1155908824.053141.276760@74g2000cwt.googlegro ups.com...
Quote:
>>
>Ole schreef:
>>
Quote:
>>Hi,
>>>
>>Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't
>>debug
>>my C# program from VS2005 - when setting a breakpoint I only see a ring
>>instead of the normal red dot and when holding the mouse over it I see a
>>message saying: "The breakpoint will not currently be hit. The specified
>>module has not been loaded". I have no problem when debugging a normal
>>full
>>framework application. I have not changed anything in my settings
>>(afaik)
>>and the problem is also present after a reboot and in a total new and
>>default project !?!
>>>
>>Searching Google gave no result so any help is highly appriciated.
>>>
>>Thanks
>>Ole
>>
>Oh, sorry for my previous post. My bad!!! :)
>I kinda read over the part where you say that you already tried
>starting a new project.
>>
>The only reason I can think of is that the debugger is screwing up. It
>loads modules which aren't tied to the source you're editing. Have you
>checked out the debugger options (symbols etc.) for anything out of the
>ordinary?
>>
>
>

Ole
Guest
 
Posts: n/a
#8: Aug 18 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Have now tried to reinstall the SDK for the windows ce 5.0 device - it still
doesn't work. Any clue at all? Where can I find information concerning the
debug structure in VS2005 like what information does the .pdb file hold, how
is it generated, are there more files that are used for debug (the folder
contains a file that is called: "514c36bf-c13e-4091-a3a7-1e566227b20d" is
that used for debug) and etc. Please help!!!

Thanks,
Ole

"Ole" <ole@blabla.comwrote in message
news:Ojqk9gswGHA.4476@TK2MSFTNGP02.phx.gbl...
Quote:
Hi,
>
Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't
debug my C# program from VS2005 - when setting a breakpoint I only see a
ring instead of the normal red dot and when holding the mouse over it I
see a message saying: "The breakpoint will not currently be hit. The
specified module has not been loaded". I have no problem when debugging a
normal full framework application. I have not changed anything in my
settings (afaik) and the problem is also present after a reboot and in a
total new and default project !?!
>
Searching Google gave no result so any help is highly appriciated.
>
Thanks
Ole
>

Gavin
Guest
 
Posts: n/a
#9: Aug 19 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Did you install a newer version of .NET CF 2 on your WM 5.0 device? If you
did you'll need to update your PC too or VS will continue using the older
version and so cannot debug.

"Ole" wrote:
Quote:
Hi,
>
Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug
my C# program from VS2005 - when setting a breakpoint I only see a ring
instead of the normal red dot and when holding the mouse over it I see a
message saying: "The breakpoint will not currently be hit. The specified
module has not been loaded". I have no problem when debugging a normal full
framework application. I have not changed anything in my settings (afaik)
and the problem is also present after a reboot and in a total new and
default project !?!
>
Searching Google gave no result so any help is highly appriciated.
>
Thanks
Ole
>
>
>
Ole
Guest
 
Posts: n/a
#10: Aug 19 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Hi Gavin,

Yes I did update the CF 2 on the Windows CE device to the latest version
(actually I made the CE with Platform Builder with the juli update). How do
I install the corresponding Compact Framework for my VS2005 and where do I
find it ?

Thanks
Ole

"Gavin" <Gavin@discussions.microsoft.comwrote in message
news:1B8EA9F2-2861-4BB9-BAF2-C191D8CD5755@microsoft.com...
Quote:
Did you install a newer version of .NET CF 2 on your WM 5.0 device? If you
did you'll need to update your PC too or VS will continue using the older
version and so cannot debug.
>
"Ole" wrote:
>
Quote:
>Hi,
>>
>Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't
>debug
>my C# program from VS2005 - when setting a breakpoint I only see a ring
>instead of the normal red dot and when holding the mouse over it I see a
>message saying: "The breakpoint will not currently be hit. The specified
>module has not been loaded". I have no problem when debugging a normal
>full
>framework application. I have not changed anything in my settings (afaik)
>and the problem is also present after a reboot and in a total new and
>default project !?!
>>
>Searching Google gave no result so any help is highly appriciated.
>>
>Thanks
>Ole
>>
>>
>>

Ole
Guest
 
Posts: n/a
#11: Aug 19 '06

re: Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"


Found it:
http://www.microsoft.com/downloads/d...DisplayLang=en
IT WORKS!!!
Thanks Gavin - you made my day!

Best regards
Ole

"Ole" <ole@blabla.comwrote in message
news:O2%23pRT2wGHA.4872@TK2MSFTNGP02.phx.gbl...
Quote:
Hi Gavin,
>
Yes I did update the CF 2 on the Windows CE device to the latest version
(actually I made the CE with Platform Builder with the juli update). How
do I install the corresponding Compact Framework for my VS2005 and where
do I find it ?
>
Thanks
Ole
>
"Gavin" <Gavin@discussions.microsoft.comwrote in message
news:1B8EA9F2-2861-4BB9-BAF2-C191D8CD5755@microsoft.com...
Quote:
>Did you install a newer version of .NET CF 2 on your WM 5.0 device? If
>you
>did you'll need to update your PC too or VS will continue using the older
>version and so cannot debug.
>>
>"Ole" wrote:
>>
Quote:
>>Hi,
>>>
>>Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't
>>debug
>>my C# program from VS2005 - when setting a breakpoint I only see a ring
>>instead of the normal red dot and when holding the mouse over it I see a
>>message saying: "The breakpoint will not currently be hit. The specified
>>module has not been loaded". I have no problem when debugging a normal
>>full
>>framework application. I have not changed anything in my settings
>>(afaik)
>>and the problem is also present after a reboot and in a total new and
>>default project !?!
>>>
>>Searching Google gave no result so any help is highly appriciated.
>>>
>>Thanks
>>Ole
>>>
>>>
>>>
>
>

Closed Thread