Hi aehimself,
In your last version of ZMemTable, empty cells are filled with zeros for numeric fields and with data from an
adjacent cell for string fields(after SaveSoFile-LoadFromFile)
Michał
Search found 1311 matches
- 10.11.2021, 08:52
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
- 09.11.2021, 13:32
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, I guess you're wrong about the ControlsCodePage. See how your extended example works: uses ...ZDatasetUtils... procedure TForm1.Button12Click(Sender: TObject); var ms:TMemoryStream; begin ZMemTable2.ControlsCodePage:=cCP_UTF16; ZMemTable2.Close; ZMemTable2.FieldDefs.Clear; ZMemTable2.F...
- 07.11.2021, 22:35
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, 1. None of my tables exceed 100MB. 2. In versions from svn this error also occurs in D10.3.3-Win32 and in Win64 it does not want to load from a file. 3. I meant the distinction between cCP_UTF16, cDynamic, cGET_ACP, cCP_UTF8 which produce different streams and files 4. Currently for D1...
- 07.11.2021, 21:57
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, Jan, Duplicate SaveToStream and LoadFromStream in svn7702. I still have 'Stream read error' in DXE2-Win32. For example, in such a table FB2.5 (100000 Records): SET SQL DIALECT 3; CREATE TABLE ELEMENTY100 ( NRELEMENTU INTEGER NOT NULL, NRKON INTEGER, NRDOK INTEGER, NRFRAGDOK INTEGER, NA...
- 07.11.2021, 09:54
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself,
I noticed (in DXE2-Win32) that two errors appear with LoadFromFile: 'Stream read error' and 'Out of memory' depending on TMemTable - ControlCodePage cCP_UTF16, cDynamic, cGET_ACP.
ADD: I think the encoding information should be saved and used in stream and file?
Michał
I noticed (in DXE2-Win32) that two errors appear with LoadFromFile: 'Stream read error' and 'Out of memory' depending on TMemTable - ControlCodePage cCP_UTF16, cDynamic, cGET_ACP.
ADD: I think the encoding information should be saved and used in stream and file?
Michał
- 06.11.2021, 18:22
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, Jan, This could be a question of new field types in D2006, D2007 and DXE2 compared to D7?: procedure TZAbstractRODataset.CheckFieldCompatibility(Field: TField; AFieldDef: TFieldDef); const {EH: hint all commented types are the fields the RowAccessor can't handle -> avoid stack killing ...
- 06.11.2021, 15:08
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, Still "Stream read error" reading from disk Delphi XE2-Win32. I use this method: I am connecting to a database (right now Firebird) with a lot of different tables. It clones them sequentially from ZTable to ZMemTable, writing to and reading from disk. As for the size, the tab...
- 06.11.2021, 08:26
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, It seems to compile in D2006 and DX2 but the SaveToFile file is 2 times larger and with LoadFromFile it gets 'Stream read error'. If Self.Fields[b] Is TBlobField Then Begin ms := TMemoryStream.Create; Try ms.CopyFrom(AStream, ReadInt); <<<<<<<<<<<<<================= AFTER THIS LINE ms....
- 05.11.2021, 22:13
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself,
For both Delphi2006 and Delphi DX2:
[DCC Error] ZMemTable.pas(681): E2008 Incompatible types -- AStream.Write(buf^, Length(buf));
Michał
For both Delphi2006 and Delphi DX2:
[DCC Error] ZMemTable.pas(681): E2008 Incompatible types -- AStream.Write(buf^, Length(buf));
Michał
- 05.11.2021, 20:08
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, For Delphi2006: [Pascal Error] ZMemTable.pas(544): E2003 Undeclared identifier: 'ReadData' [Pascal Error] ZMemTable.pas(674): E2003 Undeclared identifier: 'WriteData' [Pascal Error] ZMemTable.pas(715): E2035 Not enough actual parameters -- AStream.CopyFrom(ms); [Pascal Error] ZMemTable...
- 05.11.2021, 14:51
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself, Jan,
Maybe to adopt the 'kjteng' version to anything ?!?
Michał
Maybe to adopt the 'kjteng' version to anything ?!?
Michał
- 05.11.2021, 10:49
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi kjteng ,
For me it works on:
Lazarus 2.0.8-Win32,
Lazarus 2.0.12-Win64,
and Lazarus 2.2RC2(FPC 3.2.2)-Win64(Win11),
Delphi 2006,
but creates larger files that are not compatible with aehimself version for Delphi.
Michał
For me it works on:
Lazarus 2.0.8-Win32,
Lazarus 2.0.12-Win64,
and Lazarus 2.2RC2(FPC 3.2.2)-Win64(Win11),
Delphi 2006,
but creates larger files that are not compatible with aehimself version for Delphi.
Michał
- 02.11.2021, 08:11
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Records.
But you threw up an even more interesting idea of extracting specific records from the indicated fields.
Such a microSQL.
Michał
But you threw up an even more interesting idea of extracting specific records from the indicated fields.
Such a microSQL.
Michał
- 01.11.2021, 22:24
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi ashimself,
The procedure "SaveToFile from i to j" and "MergeFromFile from i to j" with and without fielddefs would be handy.
Michał
The procedure "SaveToFile from i to j" and "MergeFromFile from i to j" with and without fielddefs would be handy.
Michał
- 01.11.2021, 21:27
- Forum: ZeosLib 7.3/8.0 Forum
- Topic: zMemtable
- Replies: 122
- Views: 7894
Re: zMemtable
Hi aehimself,
Now it runs in D10.3.3 Win32 / Win64 and loads data from each other
Michał
Now it runs in D10.3.3 Win32 / Win64 and loads data from each other
Michał