Machine Level Exception Error

new topic     » topic index » view thread      » older message » newer message

Hi all,

I keep this error, machine level exception from line ffi.e (1065) in function c_func() (signal 11)

public constant xAG_InitCore = define_c_func(core,"+AG_InitCore",{C_STRING,C_UINT},C_INT) 
 
public function AG_InitCore(object name,atom flags) 
 return c_func(xAG_InitCore,{name,flags}) 
end function 
 
public constant xAG_InitGraphics = define_c_func(gui,"+AG_InitGraphics",{C_STRING},C_INT) 
 
public function AG_InitGraphics(sequence driver) 
	return c_func(xAG_InitGraphics,{driver}) 
end function 
 
if AG_InitCore(NULL,0) = -1 then 
	puts(1,"Failed to init AGAR!\n") 
	abort(1) 
end if 
 
if AG_InitGraphics("wgl") = -1 then --error comes from AG_InitGraphics() function 
	puts(1,"Failed to init Graphics!\n") 
	abort(1) 
end if 

https://github.com/JulNadeauCA/libagar/blob/trunk/gui/gui.h -C code attempting to be wrapped

https://libagar.org/man3/AG_InitGraphics - AGAR help files explaining AG_InitGraphics() function

--From ex.er file 
A machine-level exception occurred during execution of this statement (signal 11)  
    rid = 13 
    args = {46100240} 
    fn = 140712873640182 
    cif = 44216672 
    name = {65'A',71'G',95'_',73'I',110'n',105'i',116't',71'G',114'r',97'a', 
112'p',104'h',105'i',99'c',115's'} 
    nargs = 1 
    parg_types = 43064912 
    rtype = 1793360160 
    pargs = 43065360 
    pfree = {43065360,46099120,46099920} 
    arg_types = <no value> 
    i = 1 
    parg = <no value> 
    rtype_size = 8 
    prvalue = 46099920 
    rvalue = <no value> 
    i = 4 

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu