[Gtk-sharp-list] Geckosharp html size limit with RenderData

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Jun 26 20:02:02 EDT 2006

On 6/26/06, Brandon Clark <frothingpickle at gmail.com> wrote:
> I have embedded geckosharp into a gtk application and I am displaying
> dynamically generated html using the RenderData method of the webcontrol
> widget. Generally this works well however I was wondering if there was a
> limit to the size of the html string that can be passed to the RenderData
> method? I am generated relatively large html documents in memory to be
> displayed and I have found that past a certain threshold the gecko widget
> hangs the entire application and I am forced to kill the app. The threshold
> seems to be about 64Kb. Is there anyway around this or am I forced to stay
> within this limit?

It's a libgtkmozembed bug AFAIK. You can write a temporary page to
disc instead -- this is what MonoDoc does. Another workaround is to
use a C++/XPCOM layer with P/Invoke, if you're prepared to add an
unmanaged dependency.

Michael Hutchinson

More information about the Gtk-sharp-list mailing list