7.02 crashes with Assertions ON
7.02 crashes with Assertions ON
If I compile your source into my project it crashes with an Assert:
---------------------------
Debugger Exception Notification
---------------------------
Project PA.exe raised exception class EAssertionFailed with message 'Assertion failure (D:\VCL\UniDAC\Source\MemData.pas, line 8013)'.
---------------------------
Break Continue Help
---------------------------
:0000000000410DA6 @RaiseAtExcept + $106
:00000000008E907C CSAssertErrorHandler + $16C
:0000000000411A9C @Assert + $1C
MemData.TBlockManager.Create
MemData.TMemData.Create
CRAccess.TCRRecordSet.Create
IBCClassesUni.TGDSRecordSet.Create
IBCClassesUni.TGDSConnection.GetDatabaseParameters
IBCClassesUni.TGDSConnection.Connect('')
DBAccess.TCustomDAConnection.DoConnect
---------------------------
Debugger Exception Notification
---------------------------
Project PA.exe raised exception class EAssertionFailed with message 'Assertion failure (D:\VCL\UniDAC\Source\MemData.pas, line 8013)'.
---------------------------
Break Continue Help
---------------------------
:0000000000410DA6 @RaiseAtExcept + $106
:00000000008E907C CSAssertErrorHandler + $16C
:0000000000411A9C @Assert + $1C
MemData.TBlockManager.Create
MemData.TMemData.Create
CRAccess.TCRRecordSet.Create
IBCClassesUni.TGDSRecordSet.Create
IBCClassesUni.TGDSConnection.GetDatabaseParameters
IBCClassesUni.TGDSConnection.Connect('')
DBAccess.TCustomDAConnection.DoConnect
Re: 7.02 crashes with Assertions ON
Unfortunately, we could not reproduce the problem.
In order to get a detailed answer, please compose a small sample demonstrating the issue and send it to us using the contact form https://www.devart.com/company/contactform.html including scripts for creating and filling database objects. Also please specify the exact versions of the used Firebird and IDE.
In order to get a detailed answer, please compose a small sample demonstrating the issue and send it to us using the contact form https://www.devart.com/company/contactform.html including scripts for creating and filling database objects. Also please specify the exact versions of the used Firebird and IDE.
Re: 7.02 crashes with Assertions ON
Change the first line in Dac.inc to:ViktorV wrote:Unfortunately, we could not reproduce the problem.
In order to get a detailed answer, please compose a small sample demonstrating the issue and send it to us using the contact form https://www.devart.com/company/contactform.html including scripts for creating and filling database objects. Also please specify the exact versions of the used Firebird and IDE.
Code: Select all
{$B-} {$Z4} {$C+}
Re: 7.02 crashes with Assertions ON
Thank you for the information. We have reproduced the issue and investigation is in progress. We will inform you when we have any results.
Re: 7.02 crashes with Assertions ON
To solve the issue, please try to change the code in MemData.pas module:
to
Code: Select all
TItemHeader = packed record
Block: PBlockHeader;
Prev: PItemHeader;
Next: PItemHeader;
Rollback: PItemHeader;
Status: TItemStatus;
UpdateResult: TUpdateRecAction;
Order,
SavedOrder: integer;
Flag: byte;
FilterResult: TItemFilterState;
end;
Code: Select all
TItemHeader = packed record
Block: PBlockHeader;
Prev: PItemHeader;
Next: PItemHeader;
Rollback: PItemHeader;
Status: TItemStatus;
UpdateResult: TUpdateRecAction;
Order,
SavedOrder: integer;
Flag: byte;
FilterResult: TItemFilterState;
{$IFOPT Z+}{$ELSE}
AlignByte: byte; // for align struct size only: SizeOf(TItemHeader) mod 2 = 0
{$ENDIF}
end;
Re: 7.02 crashes with Assertions ON
Hello Viktor, thanks but I assume this will be in the upcoming release, so I'll just wait for that. This was only an issue when I needed to send out an app with assertions on for remote client testing.ViktorV wrote:To solve the issue
Re: 7.02 crashes with Assertions ON
The new UniDAC release is planned for next week.