Forum: Datenbanken
Delphi
by Medium,
5. Dez 2009
Uhm, why then do you use a Database? :)
Forum: Datenbanken
Delphi
by Medium,
5. Dez 2009
In that case, you'd have to write every sub-record/array yourself into the stream, and vice versa when loading. Another option would be to use a flat record that cointains all the fields directly, without structuring in sub-types. Of course this would lead to one looong record that won't be so conviniently usable with array indexes anymore.
I recommend writing a method that takes such a record...
Forum: Datenbanken
Delphi
by Medium,
5. Dez 2009
Line 60: I am not entirely sure about it, but this could be an issue. SizeOf(Monitoring) should be SizeOf(TMonitoring). I've got no Delphi at hand and cannot verify whether SizeOf() on a variable returns the size of it's type, or the size of the pointer to the structure. The latter would be what I belive can be the problem here.
You have it with the type in your loading procedure, but since the...