First of all Mamewah is awesome and any help I receive is greatly appreciated.    I have been dealing with this problem myself for quite sometime and would like to get it fixed as my cabinet is 95% completed.   
This doesnt happen all the time nor in every game but basically when playing a game , usually 4 player, but sometimes 2 player,  we will be playing a game,  usually one that requires multiple buttons requiring alot of hits at a time such as fighting games,  the screen cuts into about 3/4 of the screen with mamewah inside of it and back on the main mamewah menu but completely frozen.   I check task manager and it says not responding,  Mame.exe is also running,  I have to end both and start all over,   this is very frustrating,   I know ive f'd up something with the ini or control mappings or something but here is what I have tried so far:
MY setup:   4 players with 7 buttons on 1 and 2,   7 buttons on players 3 and 4 but only 4 are mapped.   No buttons are mapped the same nor to any keys such as CTRL/SHIFT/CAPSLOCK/TAB/INSERT or anything like that,  all numbers and letters.    I am going through an IPAC 4 from Ultimarc  (awesome also by the way).      I have used both the mame defaults and remapped everything in Mame one button at a time and either way it still does the same thing.   
I have searched this forum but cannot find anything related, ive spent countless hours trying to fix it and every time I think I have it fixed it happens again.   Can someone give me any tips?  or an INI file or something that I can use.   MY board is setup almost exactly like a slikstik quad with no spinner or 4 way controller.
Thanks for any help anyone can give me,  you are all the reason ive gotten as far as I have!