Re: Machine Level Exception Error

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

I corrected AG_Initcore as such:

public function AG_InitCore(object progname, integer flags)  
  atom addr, ret  
    
  if sequence(progname) then  
    addr = allocate_string(progname)  
  else  
    addr = progname  
  end if  
  ret = c_func(xAG_InitCore, {addr, flags})  
  return ret  
end function  

I still get the same error when running this piece of code:

  if (AG_InitCore("dummy", 0) = -1) or  
     (AG_InitGraphics(0) = -1) then  
    printf(2, "Init failed: %s\n", {AG_GetError()}) 
    maybe_any_key() 
    abort (1)  
  end if  

The error happens when running AG_InitGraphics(0) or AG_InitGraphics(allocate_string("dummy")).

Jean-Marc

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

Search



Quick Links

User menu

Not signed in.

Misc Menu