Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Down

How to grind the form? Find similar branches


Ivan_A   (2002-03-20 01:26) [0]

An attempt to kill an available form with the Release or Free method calls Access Violation. If, without killing, re-call Create + Showmodal for it, it starts successfully. How to fight?



Doom   (2002-03-20 02:01) [1]

And how do you know that it is available? Maybe she has not been created yet and you want to kill? And tell me if you can in more detail, but it is not completely clear what exactly you have in the vila.



Ivan_A   (2002-03-20 02:39) [2]

> Doom
Criterion of available-nosti: on the tab Project >> Options form is defined as accessible. At first it was auto-create and there were no problems. It is created and killed as follows:
try
try
......................
InForm: = TInForm. Create (Self);
or
Application.CreateForm (TInForm, InForm);
InFOrm.ShowModal;
except
Application.MessageBox ("Error creating form",
"Warning", MB_OK or MB_ICONEXCLAMATION);
end;
finally
.....................
inForm.Release;
or
InForm.Free;
end;



MBo   (2002-03-20 05:29) [3]

where does free come from? from the handler of the form being killed is not worth it.
most reliable Action: = caFree install



Ivan_A   (2002-03-20 12:41) [4]

> MBo
I tried to kill and not from the form handler. The result does not change. About Action did not understand. This is a reference to the object of the TActionList component. But Action: = MyActtion does not start the procedure.



Alx2   (2002-03-20 12:47) [5]

> Ivan_A © (20.03.02 12: 41)
> But Action: = MyActtion does not start the procedure for execution.

Here about another Action. Which lives in OnClose.



yaJohn   (2002-03-20 13:34) [6]

Shamanism ... With a similar problem helped me
InForm: = TInForm.Create ( nil );
и only inForm.Release; no Free



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Top





Memory: 0.56 MB
Time: 0.05 c
1-163
Max
2002-03-22 08:32
2002.04.01
Delphi 5 + W2k


1-98
Satyr
2002-03-21 13:57
2002.04.01
Dynamic Packet Connection


6-271
anmak
2001-11-02 16:49
2002.04.01
socket


3-5
sniknik
2002-03-05 16:27
2002.04.01
Update request


4-352
Relict
2002-02-01 11:14
2002.04.01
add your line to the system tray





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish