Icon View Incident Report

Serious Serious
Reported By: Martin Larsen
Reported On: 11/26/2000
For: Version 2.04 Build 1
# 670 Using the LoadFromStream Method for In-Memory Tables Does Not Reflect Contents Without Refresh

I have a problem with a memory table. Or, to be more correct, I have solved the problem, I would just like to know why it happens!

Mem.TableName := 'export.dat';
Mem.Open;
Mem.LoadFromStream(M); // Load data from the import stream
CodeSite.SendInteger('Mem', Mem.RecordCount); // This reports 0
records!!!
Mem.AddIndex('IDix', 'ID', [ixUnique]);
Mem.IndexName := 'IDix';
Mem.First; // Here comes error #8965

These lines give me error #8965. However, if I insert Mem.Refresh just after LoadFromStream, the error disappears and the debug line reports the correct number of records.


Resolution Resolution
Fixed Problem on 11/30/2000 in version 2.05 build 1
Image