Re: Machine Level Exception Error
- Posted by petelomax 1 week ago
- 151 views
Icy_Viking said...
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
Don't you have to allocate_string(driver) (and free it) and pass that memory address in Euphoria? Or does libffi/C_STRING take care of that?
jmduro's code is passing 0, perhaps "dummy" would be a better test.