|
|
| openlayer keeps crashing at Setup::SetupScreen() with vc++ 2005 |
|
av0k23
Member #7,284
May 2006
|
Hi guys, i am having serious problems with closing my game window (always crashes). i decided to switch to vc++ so i can use the debugger but here it compiles but crashes at the Setup::SetupScreen(.. function. can any one help? please. ore send me an empty vc++ openlayer prroject so i can see if its my code (which i doubt it is) i am just getting confused here. Here is the debuggers message
|
|
Fladimir da Gorf
Member #1,565
October 2001
|
Could you compile OL with debugging information so that it'd tell where exactly it crashes? Do the demos work when compiled? Do you have any global Bitmaps or TextRenderers? (those are initialized in SetupScreen) OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Neil Walker
Member #210
April 2000
|
apologies for the thread hi-jack, but (not know if the offline manual has been updated since the last version), I've uploaded 2.1 manual onto the website ps, you have loads of link errors in the manual where it jumps to the textrenderer version of a method instead of a bitmap version. Why not just produce a doxygen version, that way you won't have to update html all the time. pps, I wish you'd make a wiki as some of the documentation is way too ambiguous and unclear. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
|
ixilom
Member #7,167
April 2006
|
I've had exactly (or so I think) same problem. Unfortually I've been too lazy to make a debug version of OL, but I did stick some OlLog() calls in some of the OL .cpp files trying to figure out where it bails out. openlayer.log said:
OpenLayer started up succesfully Auto Loader: Executing 0 pending loading commands I know its not a pretty log, but I did it just for myself so I could try to track down wtf is going on. Here is the part that makes the last line in that log: GarbageCollector.cpp
As you can see, I've added OlLog("std::list") on row 5, it is shown in the log, but not the next OlLog() call. It is quite weird .. and what is even weirder is that I recall it crashing at some other place before. My testing code: (Ignore the apeg stuff, as it never even reaches that part)
I'll try to make a debug version of OL tomorrow if I'm not too tired. ___________________________________________ |
|
av0k23
Member #7,284
May 2006
|
the release version of mine also crashes. if only someone could kindly make a vc++ project template a tried and tested version tht works and is added to your vc++ wen u install ol (ol for vc8 also needs an installer i think. like dev c++ dev paks). thanks for the replys so far |
|
Fladimir da Gorf
Member #1,565
October 2001
|
Neil, it uses my own "doxygen", as I wanted to get it to look exatly as I wanted it to. These days I'd make it in a different way though. A wiki has been planned a long time. But just tell me which part of the documentation needs updating and I'll do something about it. About the problem, I'll try running the demo game through Fortity, maybe it finds something... It's linux only, though (I think) so MSVC binaries won't work. But maybe there's a memory overwrite problem or something, and in GCC it doesn't show for some reason. OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
|
Neil Walker
Member #210
April 2000
|
PM sent Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
|
MiquelFire
Member #3,110
January 2003
|
People got OpenLayer to work on MSVC? How? --- |
|
ixilom
Member #7,167
April 2006
|
Getting to get OpenLayer to work with MSVC is not simple, at least I think so. Keep in mind that you compile everything with the same runtime setting, I've been using /MT (Multi-Threading). Once you got every dependency ready, you can take on OpenLayer itself. c:\temp\build\OpenLayer\ <-- Where you unpacked your OpenLayer zip archive Once you press "OK" in cmake, it might take a good while, seems the program has crashed because nothing happens. I might have missed something trivial, perhaps something very important As for the OP and my reply earlier, I'll look into it later today when I get home. [Edit] Hopefully tomorrow, unless something else fucks up ___________________________________________ |
|
Neil Walker
Member #210
April 2000
|
This thread seems to be following down the path of http://www.allegro.cc/forums/thread/593353/699935#target Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
|
|