I'm working on a program to analyze a very specialized kind of file that is generated by laboratory equipment [flow cytometer.] For every file opened, I want to have an unlimited number of forms created that will hold graphics displays of the data. I'm using a dynamic array of records to hold the graphics displays and some associated data. So I have a record declaration like:
TlmHistogramData = RECORD
HistogramNumAxes : INTEGER;
ShowAllPoints : BOOLEAN;
Par1, Par2, Par3 : INTEGER;
Resolution : INTEGER;
ItsForm : TlmHistogramFrm; //This form is defined
I have declared a dynamic array of the above records. I have a procedure to add the above record to the array and its form to the list. This code works to make ONE form, but no more.
procedure TlmDataModule.AddHistogram(HistoDetails : TlmHistogramData);
WITH HistoGramList[NumHistograms].ItsForm DO
Anybody got any ideas? This is Kylix, but Delphi code should work. I'm getting an AV fault on the second call to the form's create method.
Thanks in advance....Perran