Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Debugger/Evaluator    [ Add a report in this area ]  
Report #:  11874   Status: Closed
The Evaluate/Modify window and Hint hangs when evaluating a Field of a ClientDataSet using FieldByName method
Project:  Delphi Build #:  8.1
Version:    7.0 Submitted By:   Sistemas de Informaci?n Empresar User
Report Type:  Basic functionality failure Date Reported:  4/6/2005 4:39:45 AM
Severity:    Serious / Highly visible problem Last Updated: 2/9/2006 3:35:56 PM
Platform:    All versions Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description

If you use Dataset.Fields[xxxxx].AsString the correct value gets displayed, but if you try DataSet.FieldByName(FieldName).AsString the Evaluate/Modify windows stops responding.

You can press Ctrl+F2 to End the debugging session.

These symptoms appear after installing d7_ent_upd1_1.exe
Steps to Reproduce:
Create a project that uses a client dataset (in our case we use TClientDataSet, TProvider, TADOQuery, TADOConnection and SQL Server 2000).

Place a breakpoint in a line of code that assings a value to a field of the client dataset.

DataSet.FieldByName('Code').AsString = 'x';

When the debugger stops in the breakpoint, move the mouse cursor over then AsString. The tooltip shows [Evaluating....] but doesn't shows nothing.

If you press Ctrl+F7 and try to evaluate DataSet.Fields[0].AsString, the correct value is shown, but if you try to evaluate DataSet.FieldByName('Code').AsString then window stops responding

In both cases you can stop the debugger with Ctrl+F2
Workarounds
You can modify the source code to store the value in a temp variable, but is a tedious way of debuggiong.
Attachment
None
Comments

None

Server Response from: ETNACODE01