[Scummvm-devel] merged Dragon History into trunk
Denis Kasak
denis.kasak at gmail.com
Sun Sep 27 16:35:06 CEST 2009
On Sun, Sep 27, 2009 at 15:41, Maple Syrup <mapleysyrup at gmail.com> wrote:
> I compiled ScummVM for mingw32 with the draci engine enabled. I get a
> runtime error. "This application has requested the Runtime to terminate it
> in an unusual way. Please contact the application's support team for more
> information."
>
> I can run all the other engines fine. I also had this problem when I
> compiled the draci engine with the GSOC branch.
I had similar problems with running Draci on Windows. After quite some
time, I traced the bug to draci/script.cpp where I initialize a static
const array of struct GPL2Command (inside the
Script::setupCommandList() method). Each of these structs contains a
Common::String which should get initialized to the command's name. For
some reason, each of the structs' Strings ends up using the same
storage (alternatively, each struct gets the same Common::String
instance; I can't remember exactly) when compiled with mingw. When I
changed the Common::String member to a char *, all the problems went
away.
I have been really busy so I forgot to check this code in. I don't
have access to it right now, but I'll be able to commit it later
today.
In the meantime, any ideas what could be causing this? I guess it's an
obscure mingw bug because the engine works fine with gcc on Linux.
--
Denis Kasak
More information about the Scummvm-devel
mailing list