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);
eight
Application.CreateForm (TInForm, InForm);
InFOrm.ShowModal;
except
Application.MessageBox ("Error creating form",
"Warning", MB_OK or MB_ICONEXCLAMATION);
end;
finally
.....................
inForm.Release;
eight
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.57 MB
Time: 0.022 c
We answer immediately.
Don
2002-02-19 13:13
2002.04.01
Delphi 5 and C ++ Builder


We answer immediately.
mishaa1
2002-01-31 01:21
2002.04.01
win api


We answer immediately.
Fredericco
2002-03-21 12:45
2002.04.01
Does anyone know if the next thing is possible: write a class in dll and then use it?


We answer immediately.
Dolphin
2002-03-22 02:25
2002.04.01
How to determine if there is a file on the server.


We answer immediately.
DimaIv
2002-03-20 09:04
2002.04.01
There is a groupbox with an inscription inside it is the ProgressBar





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 Español 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