Ошибка another instance already exists

На чтение 4 мин. Просмотров 85 Опубликовано 15.12.2019

Сегодня расскажем как исправить ошибку при запуске игры Euro Truck Simulator 2 «Another instance is already running». Инструкция так же подойдёт для других игрушек с площадки Стим и других клиентов. В начале кратко расскажем о возможных причинах такой ошибки, а ниже дадим рекомендации как исправить проблему.

Another instance is already running error

Содержание

  1. Причины ошибки
  2. Как исправить Another instance is already running
  3. Заключение
  4. 3 Answers 3

Причины ошибки

Кому интересен перевод ошибки? Окно с предупреждение сообщает: «Ошибка запуска. Копия приложения уже запущена». Причин тут несколько:

  • Вы уже запустили игру двойным кликом или из лаунчера, а потом запустили игру второй раз. Таким образом в системе появилось два процесса.
  • В системе завис процесс игры ETS 2 или «TruckersMP лаунчера».
  • Если у вас слабый ПК нажмите ОК и ждите запуска либо перезапускаем компьютер. Если ошибка повторяется — читаем дальше.

Если дело в зависшем процессе — откройте Диспетчер задач (Ctrl+alt+Del) или клик ПКМ на панели задач — «Диспетчер задач». Находим процесс TruckersMP, нажимаем правой и выбираем «Завершить процесс» или «закрыть задачу» в зависимости от версии операционной системы.

Запускаем Диспетчер задач

Как исправить Another instance is already running

Поскольку ошибку вызывает зависший процесс — самый простой способ перезагрузка ПК. После перезагрузки сначала запускаем Steam, а потом пробуем запустить лаунчер игры, саму игру.
Если процесс зависают каждый раз тут лучше перестраховаться и поступить как советуют на форумах и переустановить лаунчер.

  • Нажимаем клавишу Виндовс + R на клавиатуре. Или Пуск — Выполнить.
  • Набираем в строке «%programdata%» и жмем Enter(набираем без кавычек).
  • Находим и удаляем папку «TruckersMP».
  • Далее открываем папку C:Program Files и удаляем оттуда лаунчер «TruckersMP Launcher».
  • Идем на сайт truckersmp.com загружаем его и переустанавливаем.
  • Запускаем лаунчер с правами Администратора и нажимаем «Установить доступные обновления».
  • Перезапускаем компьютер и пробуем запустить игру.

Так же игроки пигут, что помогает загрузка и установка Microsoft Directx 9, скачать можно по этой ссылке с официального сайта Майрософт: Microsoft DirectX® 9.0c. Русский язык присутствует.

Заключение

Надеюсь вы разобрались как исправить оршибку при запуске ETS 2 «Another instance is already running error». Похожим образом можно исправить ошибки при запуске игр из Стима. Первым делом проверяем и завершаем процесс игры или лаунчера. Потом обновляем их, перезагружаем ПК и пробуем запустить. Напишите в комментариях какой из способов помог вам. Если у вас схожие ошибки- пишите в комментарии к этой странице и мы поможем найти решение.

Иногда при запуске какой либо игры можно получить ошибку «Another instance of game already running». Часто, для устранение данной ошибки пользователи прибегают к проверенному традиционному способу, а именно, перезагрузке ПК. Однако ошибка устраняется весьма просто.

Данное сообщение говорит о том, что другой экземпляр игры уже запущен. Это происходит, когда после предыдущего закрытия игры, ее процесс остается.

Стоит зайти в Диспетчер задач (Ctrl+ Alt+ Delet) и в списке процессов найти процесс игры и завершить его. Теперь можно вновь запускать игру и ошибка не возникнет.

I keep running into this strange problem. It almost seems to be random but I run my application and open a form, do some work with it and close it. The next time I go to open another isntance of that form I get an error message about the form already existing. This is very odd and I haven’t been able to constantly reproduce the error.

If it helps I’m using Delphi 6 still. Is there some known reason why this is happening or what I can do to prevent it?

3 Answers 3

Are you sure the form is not being hidden when it is closed?

That is the default for MDI forms, but I have seen other people do the same (to speed up re-showing the form).

Edit (thanks Cosmin Prund for the comment!):

Hook the OnClose event of your form, and look what the value of the CloseAction parameter is. If it is caHide , then the form is hidden.

A temporary hack might be to assign caFree to the CloseAction , but a better solution is to watch the stack in your OnClose event handler to see how you ended up there, and what is causing the CloseAction to be caHide in the first place.

Note: in these situations you often want to see what the VCL does. So it is wise to enable the debug DCUs for your project; see this blog article how to do that (search for debug DCUs in the link).

I restarted my computer and that allowed me to delete the temporary files from Local. 

Went through the command prompt and deleted the folder from regedit. 

Deleted from AppData/LocalLow/GameLabs.

Installed the launcher and this time unchecked the box to have it launch automatically, for good luck. 

Double clicked on the desktop shortcut and got back to the login screen, so that’s progress!

Successfully remembered my login info and got to the screen with the ships on it. 

This time I did not check the box to have it put a shortcut on my start menu, but I got a notification that I can find the launcher in my system tray, so maybe that was my problem from the start? 

Game finished installing, hit play and got started just fine. Closed the window so now we’ll see if the problem starts again. 

Double clicked on my desktop shortcut and got the game started again so I think that did it!

Just tried it again and the error came up but then it worked anyway. 

Сегодня расскажем как исправить ошибку при запуске игры Euro Truck Simulator 2 «Another instance is already running». Инструкция так же подойдёт для других игрушек с площадки Стим и других клиентов. В начале кратко расскажем о возможных причинах такой ошибки, а ниже дадим рекомендации как исправить проблему.

Another instance is already running error

Причины ошибки

Кому интересен перевод ошибки? Окно с предупреждение сообщает: «Ошибка запуска. Копия приложения уже запущена». Причин тут несколько:

  • Вы уже запустили игру двойным кликом или из лаунчера, а потом запустили игру второй раз. Таким образом в системе появилось два процесса.
  • В системе завис процесс игры ETS 2 или «TruckersMP лаунчера».
  • Если у вас слабый ПК нажмите ОК и ждите запуска либо перезапускаем компьютер. Если ошибка повторяется — читаем дальше.

Если дело в зависшем процессе — откройте Диспетчер задач (Ctrl+alt+Del) или клик ПКМ на панели задач — «Диспетчер задач». Находим процесс TruckersMP, нажимаем правой и выбираем «Завершить процесс» или «закрыть задачу» в зависимости от версии операционной системы.

Запускаем Диспетчер задач

Как исправить Another instance is already running

Поскольку ошибку вызывает зависший процесс — самый простой способ перезагрузка ПК. После перезагрузки сначала запускаем Steam, а потом пробуем запустить лаунчер игры, саму игру.
Если процесс зависают каждый раз тут лучше перестраховаться и поступить как советуют на форумах и переустановить лаунчер.

  • Нажимаем клавишу Виндовс + R на клавиатуре. Или Пуск — Выполнить.
  • Набираем в строке «%programdata%» и жмем Enter(набираем без кавычек).
  • Находим и удаляем папку «TruckersMP».
  • Далее открываем папку C:Program Files и удаляем оттуда лаунчер «TruckersMP Launcher».
  • Идем на сайт truckersmp.com загружаем его и переустанавливаем.
  • Запускаем лаунчер с правами Администратора и нажимаем «Установить доступные обновления».
  • Перезапускаем компьютер и пробуем запустить игру.

Так же игроки пигут, что помогает загрузка и установка Microsoft Directx 9, скачать можно по этой ссылке с официального сайта Майрософт: Microsoft DirectX® 9.0c. Русский язык присутствует.

Заключение

Надеюсь вы разобрались как исправить оршибку при запуске ETS 2 «Another instance is already running error». Похожим образом можно исправить ошибки при запуске игр из Стима. Первым делом проверяем и завершаем процесс игры или лаунчера. Потом обновляем их, перезагружаем ПК и пробуем запустить. Напишите в комментариях какой из способов помог вам. Если у вас схожие ошибки- пишите в комментарии к этой странице и мы поможем найти решение.

I keep running into this strange problem. It almost seems to be random but I run my application and open a form, do some work with it and close it. The next time I go to open another isntance of that form I get an error message about the form already existing. This is very odd and I haven’t been able to constantly reproduce the error.

If it helps I’m using Delphi 6 still. Is there some known reason why this is happening or what I can do to prevent it?

3 Answers 3

Are you sure the form is not being hidden when it is closed?

That is the default for MDI forms, but I have seen other people do the same (to speed up re-showing the form).

Edit (thanks Cosmin Prund for the comment!):

Hook the OnClose event of your form, and look what the value of the CloseAction parameter is. If it is caHide , then the form is hidden.

A temporary hack might be to assign caFree to the CloseAction , but a better solution is to watch the stack in your OnClose event handler to see how you ended up there, and what is causing the CloseAction to be caHide in the first place.

Note: in these situations you often want to see what the VCL does. So it is wise to enable the debug DCUs for your project; see this blog article how to do that (search for debug DCUs in the link).

Иногда при запуске какой либо игры можно получить ошибку «Another instance of game already running». Часто, для устранение данной ошибки пользователи прибегают к проверенному традиционному способу, а именно, перезагрузке ПК. Однако ошибка устраняется весьма просто.

Данное сообщение говорит о том, что другой экземпляр игры уже запущен. Это происходит, когда после предыдущего закрытия игры, ее процесс остается.

Стоит зайти в Диспетчер задач (Ctrl+ Alt+ Delet) и в списке процессов найти процесс игры и завершить его. Теперь можно вновь запускать игру и ошибка не возникнет.


Go to Spellbreak


r/Spellbreak

Become the Ultimate Battlemage! Spellbreak is a multiplayer action-spellcasting game where you unleash your inner battlemage. Master elemental magic to fit your playstyle and cast powerful spell combinations to dominate other players across the Hollow Lands.




Members





Online



ERROR: «Another instance of launcher client already exist»

Upon trying to launch Spellbreak, clicking on the launcher icon makes this error appear. I’ve tried running as an admin and looked at task manager to see if it was running and it apparently hasn’t. Any ideas as to how to fix this?


This article was contributed by
Alexey Busygin.

Environment: Windows 9x/Me/NT/2000, Visual C++ 6

Sometimes you need to detect whether another instance of your application already exists. For example popular program ICQ detects existence of another instance and shows alert message. How can you add the same functionality to your program?

MSDN shows two ways: to use FindWindow() function or to create a mutex. A third method is to use hPrevInstance parameter of the WinMain() function, but this will work only in outdated Win16-based applications.

Using the FindWindow() Function

The FindWindow() function retrieves a handle to the top-level window whose class name and window name match the specified parameters. If we have another instance of application running and this application have a window and we know at least this window’s class name or title, when we could get this window’s handle.

The convenience of this method is that if our application changes its window’s title during the execution, we could find window with knowledge only about window class name.

This method of detecting instance is convenient and in most cases it is quite enough only to use it. But when your program doesn’t have any windows or by some reason you don’t know window class name and title, using of this method will give you no result. You will have to use the second, and as I suppose, the most reliable method.

Creating a Mutex

MSDN authors offer this method. This method consists of following operations. Create a uniquely named mutex using the CreateMutex() function. CreateMutex() will succeed even if the mutex already exists, but the GetLastError() function will return ERROR_ALREADY_EXISTS. This indicates that another instance of your application exists, because it created the mutex first.

The following function implements this method.


HANDLE CreateOneAppMutex(LPCTSTR lpName)
{
HANDLE hMutex;


hMutex = CreateMutex(NULL, TRUE, lpName);

switch(GetLastError())
{
case ERROR_SUCCESS:

break;

case ERROR_ALREADY_EXISTS:

hMutex = NULL;
break;

default:

break;
}

return hMutex;
}

Demo Project

To demonstrate those methods I wrote a very simple application, which detects whether another instance already exists by creating a mutex. If another instance found, the application retrieves its window’s handle using FindWindow() function and brings another instance window to the front.

Downloads

Download demo project – 9 Kb

Возможно, вам также будет интересно:

  • Ошибка android приложение system не отвечает
  • Ошибка android waiting for device
  • Ошибка an error occurred while checking
  • Ошибка android process acore как исправить на леново
  • Ошибка an error occurred while attempting

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии