More stupid exceptions! July 12, 2009 06:36PM | Registered: 15 years ago Posts: 405 |
try { _elements.at(i)->Update(t); } catch (const std::exception& e) { }which could be the problem, the exception is probably being given out instead being caught
static int home() { Debug(" begin home"); struct block HTML = downloadfile("http://google.com/"); Debug("end downfile"); char *text; sprintf(text,"%s", HTML.data); GuiText html("text", 16, (GXColor){0, 0, 0, 255}); html.SetAlignment(0,3); html.SetPosition(0,0); html.SetMaxWidth(screenwidth); GuiTrigger trigDown; trigDown.SetHeldTrigger(-1, WPAD_BUTTON_HOME, PAD_BUTTON_DOWN); html.SetTrigger(&trigDown); HaltGui(); mainWindow->Append(&html); ResumeGui(); bool close = FALSE; while(close) { int ypos = html.GetTop(); int xpos = html.GetLeft(); usleep(THREAD_SLEEP); if(trigDown.Down()) { html.SetPosition(xpos, ypos+1); } else if(trigDown.Up()) { html.SetPosition(xpos, ypos-1); } else if(html.GetState() == STATE_CLICKED) close = 1; } ExitRequested = 1; HaltGui(); mainWindow->Remove(&html); ResumeGui(); return HOME; }I have yet to figure out if i have used Down() correctly or if the trigger related coding is at all correct but it seems that the exception is thrown because a http request is made during the thread is running since networking is thread friendly yet.
Re: More stupid exceptions! July 13, 2009 05:54AM | Registered: 15 years ago Posts: 97 |
Re: More stupid exceptions! July 13, 2009 10:16PM | Registered: 15 years ago Posts: 405 |
Re: More stupid exceptions! July 13, 2009 11:34PM | Registered: 15 years ago Posts: 97 |
Re: More stupid exceptions! July 14, 2009 11:25AM | Registered: 15 years ago Posts: 405 |
Re: More stupid exceptions! July 14, 2009 02:32PM | Registered: 15 years ago Posts: 405 |
Re: More stupid exceptions! July 14, 2009 05:34PM | Registered: 15 years ago Posts: 97 |
Quote
SteelSLasher
yeah i had a look at wiibrowse but if i can finish all the frontend stuff and if they do the parsing isnt that one browser?
Also, they are only working on a parser by looking at the SVN, i should talk with them to see if we should team up or go our own ways
Re: More stupid exceptions! July 14, 2009 08:01PM | Registered: 15 years ago Posts: 405 |
Re: More stupid exceptions! July 14, 2009 08:39PM | Registered: 15 years ago Posts: 97 |
Re: More stupid exceptions! July 14, 2009 08:41PM | Registered: 15 years ago Posts: 405 |