Homebrew My Homebrew App freezes on exit

  • Thread starter Thread starter LawnMeower
  • Start date Start date
  • Views Views 1,747
  • Replies Replies 3

LawnMeower

Well-Known Member
Member
Joined
Apr 18, 2013
Messages
1,787
Reaction score
1,763
Trophies
2
Location
on the cool side of the pillow
Website
lawnmeower.de
XP
3,268
Country
Germany
Hi there,

yesterday I started working on my first own homebrew app for the Wii U. I forked some hello world example and made some changes. Everything worked fine until I realized the app crashes every time I wanna terminate it. No matter if I make WHBProcIsRunning() return false by pressing the Home-button or control the loop with a flag I set to false by any button press :(

Maybe someone more experienced would like to have a look at it: https://github.com/CosmoCortney/WiiU-MungPlex-Gecko

thanks
 
I have no idea of the libraries used for wii u homebrew but I noticed the usage of the function "WHBProcShutdown();" did you keep that in your code?
 
I have no idea of the libraries used for wii u homebrew but I noticed the usage of the function "WHBProcShutdown();" did you keep that in your code?
Yes, it's in the code. I linked the project so it can be easily viewed and tested if someone has the time to do so.
Here's a snippet of the code that calls the said function:


C++:
    OSScreenShutdown();
    WHBProcShutdown();
    WHBLogPrint("Quitting.");
    WHBLogCafeDeinit();
    WHBLogUdpDeinit();

I also took this example as reference but my app still freezes when pressing the Home-button
Post automatically merged:

I used some weird FTDI cable to log what happens to my PC. This is what I got:
Code:
00:05:25:426: MCP: PID 14 requested to disable power transitions
00;05;25;305: DRC HOME Button Pressed!
00;05;25;305: __set_button_state : setting state to 3
00;05;25;315: ProcUI: Received Release Foreground message
00;05;25;369: ProcUI: Releasing foreground
00;05;25;430: port 0 detached

Is there anything out of the ordinary?
 
Last edited by LawnMeower,

Site & Scene News

Popular threads in this forum