1. Arguments to C Routines Must be Atoms

Where do I start to try and fix this error? :/

-=ck
"Programming in a state of EUPHORIA."

new topic     » topic index » view message » categorize

2. Re: Arguments to C Routines Must be Atoms

cklester wrote:
> 
> Where do I start to try and fix this error? :/

It sounds like you are trying to pass a sequence to a C routine.

If the C routine needs a 'string' it usually means that it
needs the address of a string that is stored in RAM.

So instead of ...

  c_proc(theProc, "my string data")

try ...

  atom X
  X = allocate_string("my string data")
  c_proc(theProc, {X})
  free(X)


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

3. Re: Arguments to C Routines Must be Atoms

Derek Parnell wrote:
> 
> cklester wrote:
> > 
> > Where do I start to try and fix this error? :/
> 
> It sounds like you are trying to pass a sequence to a C routine.
> 
> -- 
> Derek Parnell
> Melbourne, Australia

Yeah, that was it. Thanks, Derek! :)


-=ck
"Programming in a state of EUPHORIA."

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu