Oppenhiemer
Programmer
Hi -
I have a problem with dynamic form creation which I think probably relates to ownership issues.
This is the situation, I have 3 forms - the first form is the only one created automatically when the program starts. The other two forms are created using ..
===========================================
Var
POptions : TProgOptions;
begin
POptions := TProgOptions.Create(Nil);
if POptions.showmodal = mrOk then
;
POptions.Free;
===========================================
That sort of code. The problem occurs as follows..
1. Form 1 creates and shows form 2
2. Form 2 creates and shows form 3
3. Form 3 gets a value from the user and tries to update a field on Form 2.
4. This is where an exception occurs. Actually an "Access Violation" error.
Im guessing that its a problem of ownership of some sort. Maybe I need to specify the Parent property for the synamically created forms ? Anyway, any help would be much appreciated..
Opp.
I have a problem with dynamic form creation which I think probably relates to ownership issues.
This is the situation, I have 3 forms - the first form is the only one created automatically when the program starts. The other two forms are created using ..
===========================================
Var
POptions : TProgOptions;
begin
POptions := TProgOptions.Create(Nil);
if POptions.showmodal = mrOk then
;
POptions.Free;
===========================================
That sort of code. The problem occurs as follows..
1. Form 1 creates and shows form 2
2. Form 2 creates and shows form 3
3. Form 3 gets a value from the user and tries to update a field on Form 2.
4. This is where an exception occurs. Actually an "Access Violation" error.
Im guessing that its a problem of ownership of some sort. Maybe I need to specify the Parent property for the synamically created forms ? Anyway, any help would be much appreciated..
Opp.