There is the following part of the code:
procedure TForm1.FormActivate(Sender: TObject); begin DM.TrayIcon1.Visible := true; DM.TrayIcon1.Hint := 'Журнал заявок'; // Убираем с панели задач ShowWindow(Handle, SW_HIDE); // Скрываем программу ShowWindow(Application.Handle, SW_HIDE); // Скрываем кнопку с TaskBar'а SetWindowLong(Application.Handle, GWL_EXSTYLE, GetWindowLong(Application.Handle, GWL_EXSTYLE) or (not WS_EX_APPWINDOW)); end; When compiling, an access violation error occurs (see figure).
Is memory overflow in this procedure possible?
