MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

CiroConsentino
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM
Re: Mame minimizing
04/21/17 08:43 PM



Quote:


When I play a game it suddenly minimizes, and plays on with sound, like something is stealing focus.



Emu Loader is not the one doing it. The frontend doesn't steal focus while the emulator is running.
You can check the "RunProcess()" function in EL's source code (uMain.pas file). You'll see that this function enters in an endless loop, waiting for the emulator to be
closed by the user. I followed the implementation rules recommended by Microsoft.

This exec code 3221225786 is a result of termination of app by "Ctrl+C":
Here's what I found:

Code:

3221225786
0xC000013A
-1073741510 The application terminated as a result of a CTRL+C. Indicates that the application has been terminated either by user's keyboard input CTRL+C or CTRL+Break or closing command prompt window.


Source:
Code:

http://www.febooti.com/products/automation-workshop/online-help/events/run-dos-cmd-command/exit-codes/



The lose focus is probably caused by a program running in the background.
It might also be caused by a corrupt mame.exe. Where did you get the new MAME ? Always get new MAME builds from mamedev.org for safety.

I have a similar weird error code if MSI Afterburner is running while trying to run MAME. MAME crashes and game doesn't run...
Closing that app and running the emulator again, MAME work without errors.

Emu Loader uses WinAPI CreateProcessW() to execute mame.exe with full path. Its implementation is compatible even with Windows 10.
Please make sure to enable Run Game Confirmation Dialog in frontend's main menu and check the full command line that will run.

Also, make sure to uncheck all checkboxes of Hide Command Prompt Box in preferences screen, General tab.

What programs do you have running in the background ? Since you disabled the anti-virus, it's not the one causing problems with MAME.


Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]

Edited by CiroConsentino (04/21/17 08:46 PM)






Entire thread
Subject Posted by Posted on
* Mame minimizing erling1000 04/21/17 05:58 PM
. * Re: Mame minimizing krick  04/29/17 08:02 PM
. * Re: Mame minimizing MooglyGuy  04/21/17 06:23 PM
. * Re: Mame minimizing erling1000  04/21/17 07:11 PM
. * Re: Mame minimizing B2K24  04/21/17 07:55 PM
. * Re: Mame minimizing CiroConsentino  04/21/17 08:43 PM
. * Re: Mame minimizing erling1000  04/29/17 12:33 PM
. * Re: Mame minimizing Envisaged0ne  04/29/17 05:59 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 167 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1694