Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I ran into a strange problem.

My application runs in the background mostly and comes to foreground on EVT_APP_START. The application goes into background by setting *dwParam to false on EVT_APP_STOP, nothing special there.

Sometimes (50% chance), after the application goes to background, the simulator hangs. If I break the execution into a debugger, the callstack does not contain any of my code, and I can see it runs in some infinite loop from assembly code.

Looking at the OK/Hang executions, brew log shows:

OK run ---------
*z7brewreporter:46 - Going background (EVT_APP_STOP).
*OEMDebug.c:183 - DBGEvent=0x1 cls=0x107DFDC pl=0x0
*AEEShell.c:9202 - #*gCL=17236029
*OEMDebug.c:183 - DBGEvent=0x1 cls=0x107003D pl=0x0
'BREW_Simulator.exe': Unloaded 'C:\Program Files\BREW 3.1.5\extensions\touchmenuctl\touchmenuctl.dll'
'BREW_Simulator.exe': Unloaded 'C:\Program Files\BREW 3.1.5\extensions\brewappmgrtouch\brewappmgrtouch.dll'
*OEM.c:206 - OEMNotify: Idle (cls=0 ctx=0)
*OEM.c:156 - OEMNotify: Can Start? (107003d)
*z7brewreporter:46 - client up for 12 seconds
*OEM.c:156 - OEMNotify: Can Start? (107003d)
*OEM.c:189 - OEMNotify: Activate (cls=107003d ctx=2)

Hanging ----
*z7brewreporter:46 - Going background (EVT_APP_STOP).
*OEMDebug.c:183 - DBGEvent=0x1 cls=0x107DFDC pl=0x0
*OEM.c:206 - OEMNotify: Idle (cls=0 ctx=0)
*OEM.c:156 - OEMNotify: Can Start? (107003d)
*AEEShell.c:3700 - #*p:ECode:102, Key:e02e

The first thing to notice is that "#*gCL=17236029" is not printed when it hangs, but I don't know whether that means anything...

Has anyone run into this problem before, and if so what might've been causing it?

Thanks,
Jian