Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Midas/TClientDataSet    [ Add a report in this area ]  
Report #:  5646   Status: Closed
Nested TClientDataSet deletion fails if child has CloneCursor has been invoked
Project:  Delphi Build #:  4.453
Version:    7.0 Submitted By:   Brian Moelk
Report Type:  Basic functionality failure Date Reported:  8/15/2003 9:37:45 AM
Severity:    Infrequently encountered problem Last Updated: 6/27/2006 12:28:14 PM
Platform:    95, 98, 2000, NT, XP Internal Tracking #:   195888
Resolution: Fixed (Resolution Comments) Resolved in Build: : 7.0.8.1
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Error message: 'cannot delete master record with details' received in spite of deleting child records within the BeforeDelete event of the parent.
Steps to Reproduce:
1. Download and unzip the test case app from Attachments.
2. Open the test case app in D7 and click Run.
3. Follow the on screen steps.
Workarounds
call MergeChangeLog on the Child TClientDataSet after you have deleted all its rows.

---------

call MergeChangeLog on the Child TClientDataSet after you have deleted all its rows.

---------

call MergeChangeLog on the Child TClientDataSet after you have deleted all its rows.
Attachment
5646.zip
Comments

Dave Rowntree at 8/18/2003 2:44:33 AM -
Please would yo provide a zipped up compilable test case app in Attachments, And in Steps, describe how to use the app to demonstrate the problem.

Thank you.

Dave Rowntree at 2/11/2004 8:21:19 AM -
Never mind, I did it myself.

This was your original Steps content:
"
Will provide steps if necessary.

This appears to be the same bug as discussed here:

http://groups.google.com/groups?q=delphi+nested+%22cannot+delete+master+record+with+details%22+clonecursor&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3c5fee22_2%40dnews&rnum=1

http://tinyurl.com/k4tf
"

Dave Rowntree at 5/11/2004 3:35:13 AM -
Fixed in Midas.dll

Server Response from: CODE1