Skip navigation.
 
mlRe: How to track down this memory problem?
FROM : Nir Soffer
DATE : Sat Jul 22 14:33:47 2006

On 22/07/2006, at 09:06, Adam Knight wrote:

> My program (Notae) uses Cocoa classes to download a web page and 
> render it as an attributed string, for one of its features.  This 
> works.  However, certain sites cause problems in that when you 
> switch to the note that has that data the program will crash. 
> Reliably.  With the same backtrace.  In Apple's code.


Maybe try to use WebKit instead of a TextView?

I remember that in older os versions, the text system supported only 
html 3.2, and I guess that the underlaying code is not well tested as 
WebKit. Trying to feed real life html (mostly broken in so many ways) 
into the text system is very optimistic.

Another option can be to tidy the html before you feed it into the 
text system, this is general practice for processing real life html.

http://tidy.sourceforge.net/


Best Regards,

Nir Soffer

Related mailsAuthorDate
mlHow to track down this memory problem? Adam Knight Jul 22, 08:06
mlRe: How to track down this memory problem? Michael Watson Jul 22, 08:41
mlRe: How to track down this memory problem? Andy Lee Jul 22, 09:58
mlRe: How to track down this memory problem? Nir Soffer Jul 22, 14:33
mlRe: How to track down this memory problem? Adam Knight Jul 22, 18:34
mlRe: How to track down this memory problem? Adam Knight Jul 22, 18:37
mlRe: How to track down this memory problem? Adam Knight Jul 22, 21:05