473,394 Members | 1,870 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,394 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

Jul 19 '05 #1
0 1287

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

Similar topics

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...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.