Bug Report B194719
Visible to All Users

Bug procedure TdxCustomMemData.InternalOpen

created 14 years ago

use SetDefaultFields(true)
procedure TdspFIBQuery.InternalOpen;
begin
  TestDataBaseTransaction;
  if FieldCount < 2 then
    SetDefaultFields(true);
  inherited InternalOpen;
end;
--> FRecInfoOfs inaccurate
Change
Index: C:/Eigene Dateien/RAD Studio/Projekte/kauf_lib/DevExpress6/Source/dxmdaset.pas
===================================================================
--- C:/Eigene Dateien/RAD Studio/Projekte/kauf_lib/DevExpress6/Source/dxmdaset.pas     (Revision 136)
+++ C:/Eigene Dateien/RAD Studio/Projekte/kauf_lib/DevExpress6/Source/dxmdaset.pas     (Arbeitskopie)
@@ -2260,18 +2260,18 @@
   FCurRec := -1;
   FFilterCurRec := -1;

  • BookmarkSize := SizeOf(Integer);
  • InternalInitFieldDefs;
  • if DefaultFields then CreateFields;

FRecInfoOfs := 0;
   for i := 0 to FieldCount - 1 do
     if not Fields[i].IsBlob then
       Inc(FRecInfoOfs, GetDataSize(Fields[i]) + 1);

FRecBufSize := FRecInfoOfs + SizeOf(TdxRecInfo);
- BookmarkSize := SizeOf(Integer);

- InternalInitFieldDefs;
-
- if DefaultFields then CreateFields;
-
   for i := 0 to FieldCount - 1 do
    if not Fields[i].IsBlob then
      FData.Add(Fields[i]);
Bernd
Steps to Reproduce:

  1. Compile and run the sample
Comments (3)
DevExpress Support Team 14 years ago

    Hello Bernd,
    I apologize, but it is unclear to us where the problem lies. Could you please provide us with a small sample project and step-by-step instructions on how to reproduce your problem?
    Thanks,
    Valdemar

      My sample Project
      Bernd

      DevExpress Support Team 14 years ago

        Hello Bernd,
        We have investigated your sample. I apologize, it is unclear what behavior you want to achieve. Please explain your requirements in greater detail.
        We should note that you are using protected undocumented methods. So, we cannot guarantee that they will work correctly. Also, in your sample, you did not create columns, but are trying to access them.
        Thanks,
        Valdemar

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.