MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / FormDestroy

Method FormDestroy

source/main.cpp:216–277  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

214}
215//---------------------------------------------------------------------------
216void __fastcall TMainForm::FormDestroy(TObject *Sender)
217{
218 // Save all
219 *AppParams << this << (TStringGrid *)LogSG;
220 AppParams->Values["GotoNewMess"] = aGotoNewLine->Checked;
221
222 AppParams->Values["FontName"] = LogSG->Font->Name;
223 AppParams->Values["FontSize"] = LogSG->Font->Size;
224 AppParams->Values["HighlighProfile"] = HP->CurrentProfile;
225 AppParams->Values["FileNumber"] = FileNumber;
226
227 MessMatch.Save(FilterFile);
228
229 NetTimer->Enabled = false;
230 Timer->Enabled = false;
231
232 TcpServerStop();
233 TcpServerDestroy();
234
235 UdpServerStop();
236 UdpServerDestroy();
237
238 rawout.Close();
239
240 if( TalkingThread )
241 {
242 TalkingThread->Stop();
243 TalkingThread->Terminate();
244 TalkingThread->WaitFor();
245 delete TalkingThread;
246 TalkingThread = NULL;
247 }
248
249 if( ShowAlarmForm )
250 {
251 delete ShowAlarmForm;
252 ShowAlarmForm = NULL;
253 }
254
255 Clear();
256 delete MessList;
257 MessList = NULL;
258
259 delete ProcessRules;
260 ProcessRules = NULL;
261
262 delete HP;
263 HP = NULL;
264
265 delete fdb;
266 fdb = NULL;
267
268 delete LogSG_LivingColumns;
269
270 delete AppParams;
271 AppParams = NULL;
272
273 TSendmailThread::Exit();

Callers

nothing calls this directly

Calls 7

TcpServerStopFunction · 0.85
TcpServerDestroyFunction · 0.85
UdpServerStopFunction · 0.85
UdpServerDestroyFunction · 0.85
StopMethod · 0.80
SaveMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected