Mail Archives: djgpp/1999/11/09/06:00:50
Ryan M Gumbs writes:
> i've been using the most current allegro wip (all3927) and MSVC.
Questions about Windows compilers don't really belong on a djgpp
newsgroup: it would be better to ask this on the Allegro list.
> allegro_init();
> install_timer();
> install_int(myclock, 1);
> LOCK_VARIABLE(globalclock)
> LOCK_FUNCTION(myclock)
You really ought to lock the memory _before_ you install the
interrupt, not just after! But you don't actually need to lock
memory in Windows, anyway (those functions are noops).
> my code crashed whenever it tries to install the interrupt.
Do the Allegro test programs and examples also crash? Assuming
that they are ok, I'd suggest you start with something like
extimer.c, and try to figure out whatever you are doing
differently to it. Or post a small but complete example source,
so we can actually compile and test your code.
Shawn Hargreaves.
- Raw text -