Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Bug that TGrid occasionally changes TDataSet link
Wed, Jan 16 2019 2:46 PMPermanent Link

erickengelke

Avatar

There appears to be an infrequent and weird bug that when you save/compile/reload/who-knows a form, there is a non-zero chance that TGrid's DataSet entry may change from the correct value to a different dataset on the current form.  I've had this happen 4 times in the last 12 months.  

My applications have a LOT of forms, and often multiple TDataSets on each form.  So it seems to hit this bigger projects more often.  I have not been able to replicate it on small projects, but on a project with 40 forms it happens sometimes, and now I'm getting  pretty fast at fixing them.  

Sorry I cannot give a sequence that will demonstrate this phenomenon, but after 4 times of the same symptoms when I know I haven't changed datasets myself, I'm pretty sure it wasn't me.  

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Jan 17 2019 11:58 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<< Sorry I cannot give a sequence that will demonstrate this phenomenon, but after 4 times of the same symptoms when I know I haven't changed datasets myself, I'm pretty sure it wasn't me. >>

If you reproduce this, please let me know.  Unfortunately, there's not much I can do until then.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Jan 18 2019 8:48 AMPermanent Link

Walter Matte

Tactical Business Corporation

Erick

I have found that when I am working on a project, and then I open a single unit from another project just to cut and paste code, if that unit has the same name and datasetname as a unit in the project I am working on, I lose TDatsetName on Grid and other components on the unit in the project with the same name.

It got me twice... now I am hopefully more careful.

Walter
Fri, Jan 18 2019 11:45 AMPermanent Link

erickengelke

Avatar

> I have found that when I am working on a project, and then I open a single unit from another project just to cut
> and paste code, if that unit has the same name and datasetname as a unit in the project I am working on, I lose
> TDatsetName on Grid and other components on the unit in the project with the same name.
>
>It got me twice... now I am hopefully more careful.

This could be related.  I purposefully don't open forms from other projects, but I am switching forms a lot in the same project.  What is weird is that it uses a different dataset from the same form, it's not gibberish or empty, but different.

Sorry for the fuzzy details Tim, I'm hoping I or someone will find a reproducible sequence or some clues.

Thanks
Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image