kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

Unable to load any html file with lazarus 1.0 #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
reproduce steps
1.Create a new project with a htmlViewer component and a Button
2.write an onclick handler for the button to load an html file
    if OpenDialog1.Execute then HtmlViewer1.LoadFromFile(OpenDialog1.FileName);

What is the expected output? What do you see instead?

At this point I should be able to see my html file on screen all I get is a 
runError 219 inside StyleUN at line 4115.

Which version of the product are you using? Which compiler version are you
using? On which operating system?
Product version 113.r306
Compiler Version Lazarus 1.0, fpc 2.6.0
OS Windows 7 32 bit.

Please attach test html files and screenshots, if appropriate.
Please provide any additional information:

Original issue reported on code.google.com by Virtual....@gmail.com on 14 Sep 2012 at 8:56

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for posting this issue.

It is a matter of range checks. Usually the compiler options "range check" has 
to be switched off for HtmlViewer. Although I switched it off I could reproduce 
the error.

OrphanCat

Original comment by OrphanCat on 3 Oct 2012 at 7:30

GoogleCodeExporter commented 9 years ago
... and the runerror 219 you posted is detected because of compiler option -CR. 
I'll remove the ThtStringListOpener.

Original comment by OrphanCat on 3 Oct 2012 at 8:10

GoogleCodeExporter commented 9 years ago
Issue 199 has been merged into this issue.

Original comment by OrphanCat on 7 Oct 2012 at 3:17

GoogleCodeExporter commented 9 years ago
r318 fixes this issue.

Original comment by OrphanCat on 7 Oct 2012 at 3:19