Re: Wrapping FastCGI - Function howto?
- Posted by Bernie Ryan <xotron at blue?rog.c?m> Apr 23, 2008
- 653 views
Jeremy Cowgar wrote: > > Bernie Ryan wrote: > > > > Jeremy: > > > > pEnv should be just a pointer not a allocated location > > > > pEnv = allocate(4) > > Bernie, > > I have the simple wrappings down with Euphoria, but how do I give it just a > pointer? > > -- Jeremy: When you see a ** this means a POINTER to a 4-byte location in memory that contains the POINTER that the function will use. When you see a SINGLE * this means a POINTER that the function will use directly. Because I am not familiar with code you are wrapping I don't know where you obtain the Env pointer to pass to your function. But the reason a machine exception error is generaly occuring is because you are not passing the correct parameter and you are pointing to a illegeal memory location when you call the function. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan