473,387 Members | 1,582 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,387 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 678

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: 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.