[webkit-dev] Windows setjmp/longjmp issue

SCU Rock scurock at gmail.com
Tue Apr 27 14:33:32 PDT 2010

   In WebCore/platform/image-
decoders/jpeg/JPEGImageDecoder.cpp (
and png/PNGImageDecoder.cpp, setjmp and longjmp are called. This causes this
code unportable to Windows environment. At
http://msdn.microsoft.com/en-us/library/xe7acxfb%28VS.80%29.aspx, it is
mentioned that "setjmp and longjmp do not support C++ object semantics". My
understanding is that WebKit has been ported to Windows for three years. Can
someone educate me on how current Chrome and Safari work on Windows? Why
does such a basic problem exist but without being seen? Do they use the
above image decoder files? I tried to run a program linked with a prebuilt
Windows WebKit library and it crashes at setjmp() when accessing a jpeg
file. Can this problem be fixed?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100427/45eb5c88/attachment.html>

More information about the webkit-dev mailing list