Exception destruction issue when using Expat parser

Create issue
Issue #285 resolved
Paul Turner created an issue

See this forum thread for info: http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3953

Basically, when using expat, if an exception is thrown with regards to malformed XML, and caught in the application main function, a sefault occurs when destoying the caught exception.

I wonder if this is related to #254

Reproducibility: always

Comments (3)

  1. Paul Turner reporter

    I wasn't able to reproduce this issue on any system. The issue is definitely not related to #254 ;)

    I'm marking this for feedback and will post back in the forum.

  2. Paul Turner reporter

    The issue only happens if the CEGUI::System gets deleted before the caught exception object is destroyed, and it seems it only happens on Win32 platforms. First, see the forum for updated info.

    Basically this issue is caused by the module that originated the exception getting unloaded during system deletion (in this case the expat parser module).

  3. Paul Turner reporter

    I'm now marking this as resolved: "not fixable" since the issue arises within the underlying operating system. The only 'solution' in that regard is not to throw exceptions at all, which is not any kind of solution at all. :-/

  4. Log in to comment