I'm bringing you the news. I will try to solve the mysterie tomorrow.
But if you have an idea on what's happening, do not hesitate to make
me save my time ( I have already lost a full week on this ).
Pascal
>_______________________________________________
>wx-users mailing list
>wx-u...@lists.wxwindows.org
>http://lists.wxwindows.org/mailman/listinfo/wx-users
Stefan
I've had problems where missformed HTML pages crash wxHtmlWindow. Take the
output of Micro$oft Power Point or Word and it crashes all most every time if
used as the input to wxHtmlWindow. Its not wxHtmlWindow's fault. Microsoft
fails all validation tests and such, at http://www.w3c.org/ .
Use 'tidy' from http://www.w3c.org to make sure you feed wxHtmlWindows only
valid HTML.
Stefan
-----Original Message-----
From: wx-user...@lists.wxwindows.org
[mailto:wx-user...@lists.wxwindows.org]On Behalf Of Guillermo
Rodriguez Garcia
Sent: Freitag, 24. August 2001 12:12
To: wx-u...@lists.wxwindows.org
Subject: RE: wxHtml crashes my program no more
Weren't we going to change this to use delayed initialisation instead?
At 11:33 AM 8/24/01 +0200, Stefan Csomor wrote:
>actually if you have the debugger enabled you should have received an error
>message on the log window, telling that the OpenTransport initialization
>failed, if you have a newer system the tcp/ip autoconnect should not happen
>automatically since you can tell it to open the connection only when
needed.
>
>Stefan
>
>-----Original Message-----
>From: wx-user...@lists.wxwindows.org
>[mailto:wx-user...@lists.wxwindows.org]On Behalf Of Pascal Baspeyras
>Sent: Freitag, 24. August 2001 10:42
>To: wx-u...@lists.wxwindows.org
>Subject: wxHtml crashes my program no more
>
>
>At last, I found out why my program crashed as soon as I used a
>wxHtmlWindow !!
"Stefan Csomor" <cso...@advancedconcepts.ch> wrote:
> actually if you have the debugger enabled you should have received an error
> message on the log window, telling that the OpenTransport initialization
> failed, if you have a newer system the tcp/ip autoconnect should not happen
> automatically since you can tell it to open the connection only when needed.
The debugger does not send me any error message on the log window.
All it says about OpenTransport is that NavigationLib, OTInetLib,
OTClientUtilLib, OTUtilityLib and OTGlobalLib are loaded.
If the program exits when I don't have a modem installed, it's because
its initialisation fails, because wxModule::InitializeModules returned
FALSE, becauseGSocket_Init() returned FALSE, because
OTOpenInternetServices() returned a null InetSvcRef.
I didn't get what you meant by 'newer system'.
All I know is that I am before all interested in wxHtml to build a
nice interface, and I'd also like to use it as a web browser, but only
when desired...
There is not yet in my program any line of code about any internet
facilities !! But at the same time, I don't see any member function in
wxHtmlWindows to choose from working online or offline. This is a
point I definitively have to dig: how wxHtmlWindow interacts with
sockets.
Bob Paddock <bpad...@csonline.net> wrote:
> I've had problems where missformed HTML pages crash wxHtmlWindow. Take the
> output of Micro$oft Power Point or Word and it crashes all most every time if
> used as the input to wxHtmlWindow. Its not wxHtmlWindow's fault. Microsoft
> fails all validation tests and such, at http://www.w3c.org/ .
>
> Use 'tidy' from http://www.w3c.org to make sure you feed wxHtmlWindows only
> valid HTML.
Thanks for the 'tidy' info, I may need it later.
> Guillermo Rodriguez Garcia <gui...@iies.es> asked me what system I was
> using:
> This problem occurs when I am working on my macintosh Powerbook 5300
> with Mac OS 8.6 + wxWindows 2.3.1 + Codewarrior 5.3 + Universal
> Interfaces 3.4, but I guess it would be the same with an older version
> of wxWindows, or with the latest CVS version ( still to be checked ).
> But when I compile the same lines of code on my PC, wxHtmlWindow runs
> without trying to connect to the internet, which seems more normal to
> me.
absolutely agreed, you can init the winsock without connecting, but you
couldn't init opentransport in some versions without tcp/ip trying to
connect to the internet (in case of no LAN tcp/ip setting). when you open
the tcp/ip control panel, after clicking <options> on the lower right, you
have the option to check <load only when needed> checking this option
avoided having the tcp/ip dial-in module starting a connection directly when
initialized instead of only when the first real socket connection was
opened. in which OT version this was changed is not known to me anymore, but
I should do a late init for this anyway, so I'll change the code anyway
> Thus, the difference must be in the project settings, or in the
> setup.h file I used to compile the library, or somewhere else ...
>
>
> "Stefan Csomor" <cso...@advancedconcepts.ch> wrote:
>> actually if you have the debugger enabled you should have received an error
>> message on the log window, telling that the OpenTransport initialization
>> failed, if you have a newer system the tcp/ip autoconnect should not happen
>> automatically since you can tell it to open the connection only when needed.
>
> The debugger does not send me any error message on the log window.
> All it says about OpenTransport is that NavigationLib, OTInetLib,
> OTClientUtilLib, OTUtilityLib and OTGlobalLib are loaded.
> If the program exits when I don't have a modem installed, it's because
> its initialisation fails, because wxModule::InitializeModules returned
> FALSE, becauseGSocket_Init() returned FALSE, because
> OTOpenInternetServices() returned a null InetSvcRef.
> I didn't get what you meant by 'newer system'.
> All I know is that I am before all interested in wxHtml to build a
> nice interface, and I'd also like to use it as a web browser, but only
> when desired...
> There is not yet in my program any line of code about any internet
> facilities !! But at the same time, I don't see any member function in
> wxHtmlWindows to choose from working online or offline. This is a
> point I definitively have to dig: how wxHtmlWindow interacts with
> sockets.
wxHtml handles everything through the use of file handlers, for the net the
fs_inet is responsible for handling the protocols that go outside
Stefan
Sorry for the trouble,
G.