Re: [fpc-pascal] fpc-xml: SAX_HTML parsing "script" tags

2010-05-16 Thread dmitry boyarintsev
On Mon, May 17, 2010 at 2:53 AM, Lee Jenkins wrote: > What about using CDATA section? There's no support for CDATA in the HTML parser. I'm trying to read arbitrary html files, so there's almost no "

Re: [fpc-pascal] fpc-xml: SAX_HTML parsing "script" tags

2010-05-16 Thread Lee Jenkins
dmitry boyarintsev wrote: Hello Is there any known way to parse html files with: some script with tricky symbols , like "< >" that ruins the parsing tag? What about using CDATA section? -- Warm Regards, Lee ___ fpc-pasca

[fpc-pascal] fpc-xml: SAX_HTML parsing "script" tags

2010-05-16 Thread dmitry boyarintsev
Hello Is there any known way to parse html files with: some script with tricky symbols , like "< >" that ruins the parsing tag? I've not found any better option but to re-implement THTMLReader (copy-paste + modify) and run a custom parser to skip the content of the script tag, and then go-on p

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-16 Thread Roland Schaefer
On 16.05.2010 16:01, Jonas Maebe wrote: > > On 14 May 2010, at 00:18, Roland Schaefer wrote: > >> Now, instead of busy waiting in the main thread loop (even with a Sleep >> inserted), I'd rather have it idle wait until another thread needs to >> synchronize. Is that possible? > > CheckSynchroniz

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-16 Thread Jonas Maebe
On 14 May 2010, at 00:18, Roland Schaefer wrote: > Now, instead of busy waiting in the main thread loop (even with a Sleep > inserted), I'd rather have it idle wait until another thread needs to > synchronize. Is that possible? CheckSynchronize has a parameter "timeout" with the default value 0:

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-16 Thread Roland Schaefer
Allow me to bump this. I'd appreciate any comments, even if it's "Why on earth do you want to do that!?" or something. Thanks Roland On 14.05.2010 00:18, Roland Schaefer wrote: > Hello, > > I have a seemingly simple question which nevertheless is giving me > headaches: I have a main thread which