473,320 Members | 2,158 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,320 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 2389
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.