knowledge-database (beta)

Current group: comp.soft-sys.wxwindows

LoadPage issue

LoadPage issue  
Paul Marculescu
From:Paul Marculescu
Subject:LoadPage issue
Date:Fri, 21 Jan 2005 22:07:36 +0000 (UTC)
Hello all,

I have an application that calls LoadPage on a wxHtmlWindow each x
seconds, triggered by a wxTimer of which owner is the frame in which
the html control resides.
After a few seconds, in debug mode, the program stops with an
assertion failure about "wxYield called recursively". The call stack
looks like this (VStudio 7):

NTDLL.DLL!77f813b1()
myapp.exe!wxTrap() Line 510 C++
myapp.exe!wxOnAssert(const char * szFile=0x00833188, int nLine=1311,
const char * szCond=0x00833178, const char * szMsg=0x0083315c) Line
632 C++
myapp.exe!wxAssert(int cond=0, const char * szFile=0x00833188, int
nLine=1311, const char * szCond=0x00833178, const char *
szMsg=0x0083315c) Line 520 + 0x15 C++
myapp.exe!wxApp::Yield(bool onlyIfNeeded=false) Line 1311 + 0x27 C++
myapp.exe!wxYield() Line 1168 + 0x1b C++
myapp.exe!wxSocketBase::_Wait(long seconds=-1, long milliseconds=0,
int flags=2) Line 727 + 0x11 C++
myapp.exe!wxSocketBase::WaitForWrite(long seconds=-1, long
milliseconds=0) Line 759 C++
myapp.exe!wxSocketBase::_Write(const void * buffer=0x00d285fc,
unsigned int nbytes=65) Line 533 + 0x17 C++
myapp.exe!wxSocketBase::Write(const void * buffer=0x00d285fc,
unsigned int nbytes=65) Line 489 + 0x10 C++
myapp.exe!wxHTTP::BuildRequest(const wxString & path={...},
wxHTTP::wxHTTP_Req req=wxHTTP_GET) Line 230 C++
myapp.exe!wxHTTP::GetInputStream(const wxString & path={...}) Line
333 + 0xe C++
myapp.exe!wxURL::GetInputStream() Line 321 + 0x18 C++
myapp.exe!wxInternetFSHandler::OpenFile(wxFileSystem &
__formal={...}, const wxString & location={...}) Line 116 + 0x8 C++
myapp.exe!wxFileSystem::OpenFile(const wxString & location={...})
Line 373 + 0x13 C++
myapp.exe!wxHtmlWinParser::OpenURL(wxHtmlURLType
type=wxHTML_URL_PAGE, const wxString & url={...}) Line 234 + 0x13 C++
myapp.exe!wxHtmlWindow::LoadPage(const wxString & location={...})
Line 266 + 0x23 C++
myapp.exe!MyFrame::LoadBanner(bool fromTimer=false) Line 598 + 0x1e C++
myapp.exe!MyFrame::OnTimer(wxTimerEvent & __formal={...}) Line 618 C++
myapp.exe!wxEvtHandler::SearchEventTable(wxEventTable & table={...},
wxEvent & event={...}) Line 956 C++
myapp.exe!wxEvtHandler::ProcessEvent(wxEvent & event={...}) Line
870 + 0x13 C++
myapp.exe!wxTimerBase::Notify() Line 131 C++
myapp.exe!wxProcessTimer(wxTimer & timer={...}) Line 135 C++
myapp.exe!wxTimerProc(HWND__ * __formal=0x00000000, HWND__ *
__formal=0x00000000, int idTimer=31467, HWND__ * __formal=0x00000000)
Line 143 + 0xe C++
USER32.DLL!77e3a420()
USER32.DLL!77e1442e()
USER32.DLL!77e174d4()
USER32.DLL!77e1480f()
USER32.DLL!77e2ef86()
USER32.DLL!77e1a7ba()
USER32.DLL!77e33552()
USER32.DLL!77e441d4()
USER32.DLL!77e34110()
NTDLL.DLL!77fa64f6()

In release mode, the application consumes all CPU.

Variables:
- OS: Windows 2000 Professional SP4
- WX: 2.4.2 (same behaviour with 2.5.3)
- VStudio 7.1

Any ideas around this issue?

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
   

Copyright © 2006 knowledge-database   -   All rights reserved