Hi all,

I was in a hurry when posting the previous message to the list about help with compiling Neko.

Now I have time to elaborate my problem. My target system is Windows XP 32bit. I am distributing a Autorun CD that in turn loads a SWHX Application with the Flash plugin embedded. The user has no need to install anything to execute the program.

I have done this kind of work before, and never found a problem.

But now, I have coded a HaXe/Flash AS3 map program that loads a lot of JPG images on demand (when scrolling with the mouse). If the user moves the map, sometimes (not always) the program fails with this alert box:

/- Fatal error in gc --------x-\
|  (X) SuspendThread failed    |
|                    [  OK  ]  |
\------------------------------/

I searched over the mailing lists, forums, blogs, etc. and I found this:

[Neko] Fatal error in gc (Nov 2008)
http://lists.motion-twin.com/pipermail/neko/2008-November/002442.html
http://lists.motion-twin.com/pipermail/neko/2008-November/002443.html

In that thread, Nicolas Cannasse tells that the problem is related to GC.DLL library used and some Antivirus programs. In fact, if I attach a Visual Studio debugger to the program it never fails!

In the same thread, Nicolas suggests:

Nicolas said: "As for your application, if you're not using
mod_neko you can ship a Neko version with the GC_use_DllMain()
commented out and it should work like a charm."

That was I tried, comment the line #120 in alloc.c, inside nekovm_dll project (at Visual Studio Solution).

But, I then faced the following problem: old MSVCRT (6.0) has to be referenced.
http://ncannasse.fr/blog/binaries_backward_compatibility

I have an old Visual C++ 6.0 installation, and therefore I can access the required .lib file, but I can not go any further... The provided Visual Studio 2003 solution does not compile :-(

I do not know how to follow the steps suggested by Matt Campbell on that blog post.

So, I ask you for help with this.

If any of you can compile a Windows Neko executable with that "alloc.c" line commented, and send it to me, I will be very grateful.

Or, if you can guide me to be able to compile Neko with Visual Studio 2008 and MSVCRT60.lib (which I have), I also will be very grateful.

Anyway, if you know this error is already fixed in some HaXe/SWHX/Neko version, can you tell me? I am currently using HaXe 2.0.5, Neko 1.8.1 and SWHX 1.2.0 (all targeting Flash AS3, played with a Flash 10 embedded player).


Thanks for your information and time

Regards

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to