473,320 Members | 2,088 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.

Bug: wrong values in debug windows (locals, watch,...)

Hello,

to reproduce the follwoing steps, "managed DirectX" must be installed.
Despite, this is not a DirectX but an IDE problem (at least in VB.Net). As
nobody answered in m.p.vsnet.ide and m.p.vsnet.debugging, I try it here.

1. Create a new WindowsApplication
2. Add references to
- Microsoft.DirectX.dll
- Microsoft.DirectX.Direct3D.dll
3. In the form's code window add

Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D

and

Private Sub Form1_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load

Dim pp As New PresentParameters
Dim mat1, mat2, mat3 As Matrix
mat1 = Matrix.Identity
mat2 = Matrix.Identity
mat3 = Matrix.Identity

mat1 = Matrix.Multiply(mat2, mat3)

End Sub

(note: Whether or not the code makes sense does not matter. It's the IDE's
behavior I'm describing)

4. set a break point at the line "mat1 = Matrix.Identity"
5. Start and wait til the break point is hit
6. open the locals window and open variable pp

Bug: All members are displayed as "error: can not obtain value"
Now, try also: In the immediate window, execute
Msgbox("test")
You'll get a message that the "expression can not be evaluated". This
message does not makes sense.

Now stop the application and remove the last line (containing
Matrix.Multiply). Restart and examine variable pp again: The problem does
not show up anymore. Now you can also try the Msgbox and it works how it
should.

This is a major issue that makes it almost impossible to debug managed
DirectX applications because it's the same in the watch and quick-watch
windows.
--
Armin

Nov 22 '05 #1
0 836

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

Similar topics

0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 241 open ( -6) / 2622 closed (+26) / 2863 total (+20) Bugs : 764 open ( +6) / 4453 closed (+38) / 5217 total (+44) RFE : 150 open...
0
by: Armin Zingler | last post by:
Hello, to reproduce the follwoing steps, "managed DirectX" must be installed. Despite, this is not a DirectX but an IDE problem (at least in VB.Net). As nobody answered in m.p.vsnet.ide and...
4
by: news.microsoft.com | last post by:
Hi, In the debug Auto and Locals window the value that has changed becomes highlighted in red, BUT the Watch window does no highlighting, why the inconsistency? Would it not be better if this...
0
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
2
by: tstephan | last post by:
I am debugging a small app that normally runs in a few MB. When debugging the code below, my app bloats to 1GB (and more if I let it). Assembly ara = AppDomain.CurrentDomain.GetAss­emblies();...
5
by: Anton Noll | last post by:
We are using Visual Studio 2003.NET (C++) for the development of our software in the fields digital signal processing and numerical acoustics. One of our programs was working correctly if we are...
6
by: Niklaus | last post by:
Hi, Can someone point out what is wrong with this code ? How can i make it better optimize it. When run it gives me seg fault in linux. But windows it works fine(runs for a long time). Do we...
6
by: dbuchanan | last post by:
Hello, Is this a bug? Is there some kind of work around? I want to add default values for a few columns in my datagridview I found the "DefaultValuesNeeded" event for the datagridview I...
2
by: Johann Schuler | last post by:
Let's say I have a Person class with a private int age member variable. I have a get and set accessor for the Age property. When I am running the code in debug mode, I would like to have a debug...
1
by: webmaster | last post by:
Dumb Noob question for sure. I've looked for the answer in two intro books and a cbt, and maybe I'm just missing it. I see when I do an F5 to debug and run my code ( a simple console...
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
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
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...

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.