Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / [Resolved] Gosu troubles
- By anza Date 2008-12-29 20:02
I wanted to try gosu out, so I just downloaded it (along with boost).  Compiling the GettingStartedOnWindows code works fine, but any attempt to run it crashes immediately:
Unhandled exception at 0x00000000 in BomberPenguin.exe: 0xC0000005: Access violation reading location 0x00000000.

I went ahead and tried to compile gosuDuel code with the same result.

The only thing I can think of is the unmentioned method of linking to fmod.dll.  Normally, you just add fmodvc.lib as additional dependency and drop the fmod.dll wherever the binary is, and this is the method I used.  Since I don't know what "lazily link up against fmod.dll" means, could someone enlighten me if the method I used is not the correct one?
- By jlnr (dev) Date 2009-01-02 00:24
fmodvc.lib should be linked statically into Gosu.lib so you shouldn't have to do anything. What you can do is add /DELAYED= or something similar to the linker flags to instruct it to load FMOD only when the need is there. Missing DLLs shouldn't cause something like this though.

Can you see the call stack when this happens?
- By anza Date 2009-01-02 02:49
   00000000()
   BomberPenguin.exe!Gosu::`anonymous namespace'::windowProc(HWND__ * wnd=0x000802ca, unsigned int message=24, unsigned int wparam=1, long lparam=0)  Line 116 + 0x1b bytes  C++

Those are the only things I see.  I haven't checked out your source code yet, so I'll have to take a look at WindowWin when I get the time.  I'm also going to reinstall XP and see if it works in there (I'm in 2k SP4).
- By anza Date 2009-01-03 18:49
I forgot to update this.  The problem was a simple mistake: I assumed you meant to create an empty project, and not Win32->Console Application->Empty Project -- force of habit.  Works fine in both 2k and XP.
- By jlnr (dev) Date 2009-01-04 14:30
Hmmm, actually it should be Win32 application->Empty Project--does it only work when it also shows a console for you? If so, that'd be a bug :)
- By anza Date 2009-01-04 16:37
This is with the 2005 express edition, so I'm not sure if that's a difference.

The only default options are:
CLR
- Class Library
- CLR Console Application
- CLR Empty Project
- Windows Form Application

Win32
- Win32 Console Application

General
- Empty Project
- Makefile Project

The console app with the
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
works fine, so it isn't a big deal to me.
- By jlnr (dev) Date 2009-01-04 23:06
Ah, I haven't tried the express edition. Thanks for clarifying this, I will link to this thread on the GettingStartedOnWindows page! :)
Up Topic Gosu / Gosu Exchange / [Resolved] Gosu troubles

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill