Issue trying to create an event queue in Allegro 5 C++

  allegro, allegro5, c++

I’m trying to create an event queue in Allegro using ALLEGRO_EVENT_QUEUE but I get an error of infringement for trying to read a location 0x0000.
This is the error message (it’s in Spanish):
Excepción no controlada en 0x7BE755AF (allegro-5.0.10-monolith-md.dll) en Geometry World.exe: 0xC0000005: Infracción de acceso al leer la ubicación 0x00000000.

This is the code in the line where the error appears.

ALLEGRO_EVENT_QUEUE* colaEventos = al_create_event_queue();

Really appreciate any help

Source: Windows Questions C++

LEAVE A COMMENT