delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/08/19:00:34

From: rmg33058 AT pegasus DOT cc DOT ucf DOT edu (Ryan M Gumbs)
Newsgroups: comp.os.msdos.djgpp
Subject: winallegro and install_int()
Date: 8 Nov 1999 23:34:46 GMT
Organization: University of Central Florida
Lines: 35
Message-ID: <807mmm$13u$1@news.cc.ucf.edu>
NNTP-Posting-Host: pegasus.cc.ucf.edu
X-Trace: news.cc.ucf.edu 942104086 1150 132.170.240.30 (8 Nov 1999 23:34:46 GMT)
X-Complaints-To: news AT news DOT cc DOT ucf DOT edu
NNTP-Posting-Date: 8 Nov 1999 23:34:46 GMT
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hello,

i've been using the most current allegro wip (all3927) and MSVC. 
my code has been crashing when i try to use install_int() to 
install my own custom clock.
here is my code:


void myclock() {
globalclock++;
}

END_OF_FUNCTION(myclock)



main routine() {
allegro_init();
install_timer();
install_int(myclock, 1);
LOCK_VARIABLE(globalclock)
LOCK_FUNCTION(myclock)
...
...
...

}

my code crashed whenever it tries to install the interrupt.
am i using it wrong or this routine simply not working yet
for winallegro?  It works fine with DJGPP and dosallegro.

thanx to all who reply,

Ryan Gumbs.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019