By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,088 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,088 IT Pros & Developers. It's quick & easy.

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

P: n/a
Ole
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
Aug 18 '06 #1
Share this Question
Share on Google+
10 Replies


P: n/a
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:
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
Aug 18 '06 #2

P: n/a
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
Aug 18 '06 #3

P: n/a

Ole schreef:
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?

Aug 18 '06 #4

P: n/a
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" <ol*@blabla.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
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

Aug 18 '06 #5

P: n/a
Ole
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_********@hotmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
>
Ole schreef:
>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?

Aug 18 '06 #6

P: n/a
Ole
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" <ol*@blabla.comwrote in message
news:uX**************@TK2MSFTNGP02.phx.gbl...
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_********@hotmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
>>
Ole schreef:
>>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?


Aug 18 '06 #7

P: n/a
Ole
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" <ol*@blabla.comwrote in message
news:Oj**************@TK2MSFTNGP02.phx.gbl...
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

Aug 18 '06 #8

P: n/a
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:
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
Aug 19 '06 #9

P: n/a
Ole
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" <Ga***@discussions.microsoft.comwrote in message
news:1B**********************************@microsof t.com...
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:
>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

Aug 19 '06 #10

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

Best regards
Ole

"Ole" <ol*@blabla.comwrote in message
news:O2****************@TK2MSFTNGP02.phx.gbl...
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" <Ga***@discussions.microsoft.comwrote in message
news:1B**********************************@microsof t.com...
>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:
>>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


Aug 19 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.