delorie.com/archives/browse.cgi | search |
From: | "Nicolas.GASNIER" <Nicolas DOT GASNIER AT wanadoo DOT fr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Allegro mouse fail |
Date: | Thu, 10 Jun 1999 14:30:41 +0200 |
Organization: | Wanadoo, l'internet avec France Telecom |
Lines: | 34 |
Message-ID: | <7joaqv$am7$1@wanadoo.fr> |
References: | <7jmo0b$e1q$1 AT news DOT flashnet DOT it> |
NNTP-Posting-Host: | tnttour9-213.abo.wanadoo.fr |
X-Trace: | wanadoo.fr 929017503 10951 164.138.85.213 (10 Jun 1999 12:25:03 GMT) |
X-Complaints-To: | abuse AT wanadoo DOT fr |
NNTP-Posting-Date: | 10 Jun 1999 12:25:03 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>I've a problem with allegro mouse routine. >I'm programming a game and I try to move a sprite on the screen using the >mouse. >To do this I look for mouse_b & 1 and then I call a member function of >my own class that move the sprite across the screen. >It seems to work fine but after some click (about 10), the program exits >(and it should not do this). The problem should be : - a problem in your source : you must first be sure you called in this order : * allegro_init() * install_timer() * install_mouse() you probably do a very-little-and-indetectable-mistake in your program : the error is probably not where you think it is : check for some tables or drawables or pointers or c++objects or something else you allocated and verify if you don't make an invalide access or initialisation. Many many many problems in so simple programs are due to these kinds of errors. - this could be (and most probably is) a problem with your system configuration Check that you call mouse.com in your autoexec.bat. Check that you have a limited number of resident programs such as himem.sys or emm386.exe (you may not need emm, so you can remove this line frm your config.sys because this is often a source of problems, I know that by experience). The last thing is to try to have a look at eventual error messages at the end of you program (like seg fault with a lot of numbers on the screen). You should post a copy of your autoexec.bat and config.sys so that we can have a look.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |