473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Breakpoints

Ant
Hi,
I have read recently that

"Data break points are not compatible with the common language runtime &
cannot be used in C#"

By a data breakpoint, it means a point where a value changes to false or
simply changes.

However, I checked this out & yet the breakpoint occurs if the value changes
or evaluates to false if I set it to do so.

What does this mean "not compatible" ?

Thanks for any thoughts
Ant
Jun 7 '06 #1
4 2395
See http://msdn2.microsoft.com/en-us/library/350dyxd0.aspx

The reason why they should not make sense in managed code is that objects
move from place to place in memory. The object you thought was ar FF327821
could be interchanged with another object. The data breakpoint actually
monitors the memory at a given location.

Cheers,

Greg Young
MVP - C#
http://geekswithblogs.net/gyoung
"Ant" <An*@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
Hi,
I have read recently that

"Data break points are not compatible with the common language runtime &
cannot be used in C#"

By a data breakpoint, it means a point where a value changes to false or
simply changes.

However, I checked this out & yet the breakpoint occurs if the value
changes
or evaluates to false if I set it to do so.

What does this mean "not compatible" ?

Thanks for any thoughts
Ant

Jun 7 '06 #2
I should add that it can be useful when dealing with unsafe code (i.e pinned
objects).

Cheers,

Greg
"Greg Young" <dr*******************@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP04.phx.gbl...
See http://msdn2.microsoft.com/en-us/library/350dyxd0.aspx

The reason why they should not make sense in managed code is that objects
move from place to place in memory. The object you thought was ar FF327821
could be interchanged with another object. The data breakpoint actually
monitors the memory at a given location.

Cheers,

Greg Young
MVP - C#
http://geekswithblogs.net/gyoung
"Ant" <An*@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
Hi,
I have read recently that

"Data break points are not compatible with the common language runtime &
cannot be used in C#"

By a data breakpoint, it means a point where a value changes to false or
simply changes.

However, I checked this out & yet the breakpoint occurs if the value
changes
or evaluates to false if I set it to do so.

What does this mean "not compatible" ?

Thanks for any thoughts
Ant


Jun 7 '06 #3
Ant
Thanks for your reply. I think I understand why it shouldn't be used,
(managed code shifts the address around) but in practice, I can't seem to get
it to cause any erroneous results. What situation could cause a problem. i.e.
How could I set this up to actually see a problem occuring. I've tried it by
incrementing a local variable but can't seem to see any problems.

It's no big deal but I'm just curious.

Thanks anyway for your ideas & the link.
Ant

"Greg Young" wrote:
I should add that it can be useful when dealing with unsafe code (i.e pinned
objects).

Cheers,

Greg
"Greg Young" <dr*******************@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP04.phx.gbl...
See http://msdn2.microsoft.com/en-us/library/350dyxd0.aspx

The reason why they should not make sense in managed code is that objects
move from place to place in memory. The object you thought was ar FF327821
could be interchanged with another object. The data breakpoint actually
monitors the memory at a given location.

Cheers,

Greg Young
MVP - C#
http://geekswithblogs.net/gyoung
"Ant" <An*@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
Hi,
I have read recently that

"Data break points are not compatible with the common language runtime &
cannot be used in C#"

By a data breakpoint, it means a point where a value changes to false or
simply changes.

However, I checked this out & yet the breakpoint occurs if the value
changes
or evaluates to false if I set it to do so.

What does this mean "not compatible" ?

Thanks for any thoughts
Ant



Jun 8 '06 #4
You drop deep into the magic that is the runtime on this one.

I would imagine you would have to cause heap fragmentation (and a re-order)
to get this to occur. I am unaware of a deterministic way to have this
happen but I assure you that someone much more in depth with the CLR has
written a blog post. I would check the CLR member blogs to see if you might
be able to find this.

I will try poking around a bit later to see if I can find one .. never had
to do this before but it is interesting :)

Cheers,

Greg Young
MVP - C#
http://geekswith blogs.net/gyoung
"Ant" <An*@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Thanks for your reply. I think I understand why it shouldn't be used,
(managed code shifts the address around) but in practice, I can't seem to
get
it to cause any erroneous results. What situation could cause a problem.
i.e.
How could I set this up to actually see a problem occuring. I've tried it
by
incrementing a local variable but can't seem to see any problems.

It's no big deal but I'm just curious.

Thanks anyway for your ideas & the link.
Ant

"Greg Young" wrote:
I should add that it can be useful when dealing with unsafe code (i.e
pinned
objects).

Cheers,

Greg
"Greg Young" <dr*******************@hotmail.com> wrote in message
news:Oj**************@TK2MSFTNGP04.phx.gbl...
> See http://msdn2.microsoft.com/en-us/library/350dyxd0.aspx
>
> The reason why they should not make sense in managed code is that
> objects
> move from place to place in memory. The object you thought was ar
> FF327821
> could be interchanged with another object. The data breakpoint actually
> monitors the memory at a given location.
>
> Cheers,
>
> Greg Young
> MVP - C#
> http://geekswithblogs.net/gyoung
> "Ant" <An*@discussions.microsoft.com> wrote in message
> news:99**********************************@microsof t.com...
>> Hi,
>> I have read recently that
>>
>> "Data break points are not compatible with the common language runtime
>> &
>> cannot be used in C#"
>>
>> By a data breakpoint, it means a point where a value changes to false
>> or
>> simply changes.
>>
>> However, I checked this out & yet the breakpoint occurs if the value
>> changes
>> or evaluates to false if I set it to do so.
>>
>> What does this mean "not compatible" ?
>>
>> Thanks for any thoughts
>> Ant
>
>


Jun 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: fred | last post by:
What has happened to my breakpoints? Whenever I start my application from the IDE in Visual Studio then all of the breakpoints show a "?" and a comment says "The breakpoint will not currently be...
2
by: Jozef | last post by:
Hello, I'm coding a windows form, and up until now, the breakpoints have worked fine. For some reason, now when I run the program, the breakpoints fail and the code continues running. I have...
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.....
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
5
by: Jerry Spence1 | last post by:
In VB6 you could set a breakpoint when a variable had changed value. I can't find this in VB2005. Is it there somewhere? -Jerry
1
by: theresegt1 | last post by:
Does anyone know why VS 2005 might skip breakpoints when debugging through the browser? It's a new installation so no configurations other than 'set startup project' and 'set startup page' have...
1
by: Jeff | last post by:
Hey How can I get a list of breakpoints in Visual Studio 2005, while the loaded solution is in Edit mode (not running or not debugging)... I'm trying to learn thousands of uncommented C# code...
2
by: =?Utf-8?B?TG9zdCBJbiBUaGUgV29vZHM=?= | last post by:
I've seen a ton of posts about similar problems, but none of the solutions were effective. I've been maintaining this VB code for 3 years, and this is the first time this has happened. It seems...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.