|
runtime errors? |
ITAmember
Member #10,095
August 2008
|
I have a windows vista laptop and I am using Dev-C++ compiler. When I type this code in: #include <allegro.h> int main(void) I then set the proget type to Win32 GUI (I'm running a 32 bit vista OS) and type Microsoft Visual C++ Runtime Libray This happens whenever I run a program that has used Allegro. Please help! |
Dario ff
Member #10,065
August 2008
|
mmm... why Windows Vista always makes programs all crappy??? T_T it only causes problems. The code would seem to work; just try to make a program in XP and then run it Windows Vista, all I can say:: TranslatorHack 2010, a human translation chain in a.cc. |
LennyLen
Member #5,313
December 2004
|
Quote: mmm... why Windows Vista always makes programs all crappy It doesn't. Many of us have had no problems writing and compiling for Vista. The only people who appear to have problems are those that don't follow instructions carefully.
|
BAF
Member #2,981
December 2002
|
Dev-C++ causes more problems than Vista. |
Tobias Dammers
Member #2,604
August 2002
|
Dev-C++ uses MinGW as its compiler, which relies on a bug in the OS that was present in windows 95 through XP, but has been fixed for Vista. Therefor, MinGW is broken on Vista, unless you use a patch that is available somewhere (which is basically a broken replacement for the fixed dll Vista provides). Then, to rule out your allegro install as the culprit, try compiling and running the most basic Hello World in text mode (console program). --- |
BAF
Member #2,981
December 2002
|
You can install Visual Studio express (at least the 2005 version) on a bastard copy of the OS, IIRC. |
ITAmember
Member #10,095
August 2008
|
When I try to compile the same program in Visual C++ 2008 I get the same error message. I then get a series of error messages: Unhandled exception at 0x77979cac in allegro.exe: 0xC0000142: DLL Initialization Failed. --- allegro.exe has triggered a breakpoint --- The application falied to initialize properly (0x0). Click OK to terminate the application. --- Windows has triggered a breakpoint in allegro.exe. This may be due to a corruption of the heap, which indicates a bug in allegro.exe or any of the DLLs it has loaded. This may also be due to the user pressing F12 while allegro.exe has focus. The output window may have more diagnostic information. --- 'allegro.exe': Loaded 'C:\Users_____\Documents\Visual Studio 2008\Projects\allegro\Debug\allegro.exe', Symbols loaded. *** A stack buffer overrun occurred in "c:\Users_____\Documents\Visual Studio 2008\Projects\allegro\Debug\allegro.exe" : This is usually the result of a memory copy to a local buffer or structure where the size is not properly calculated/checked. Windows has triggered a breakpoint in allegro.exe. This may be due to a corruption of the heap, which indicates a bug in allegro.exe or any of the DLLs it has loaded. This may also be due to the user pressing F12 while allegro.exe has focus. The output window may have more diagnostic information. This may be due to a corruption of the heap, which indicates a bug in allegro.exe or any of the DLLs it has loaded. This may also be due to the user pressing F12 while allegro.exe has focus. The output window may have more diagnostic information. |
Matthew Leverton
Supreme Loser
January 1999
|
Don't mix incompatible versions of the C runtime. |
ITAmember
Member #10,095
August 2008
|
Matthew Leverton said: Don't mix incompatible versions of the C runtime. What do you mean by that, and how would I go about fixing it? |
|