[HACKERS] Visual C++ function issues

2007-02-15 Thread fishware
Hi, I'm trying to implement the add_one sample in the PG docs using VC++ (for purposes of debugging). After some pain (had to add the dllexport declspec below), I am able to get the CREATE FUNCTION command to recognize the library and function. However, the function blows up. I am able to

Re: [HACKERS] Visual C++ function issues

2007-02-15 Thread Peter Eisentraut
[EMAIL PROTECTED] wrote: Digging into this, I find that the fcinfo struct being passed to me as an address of 0x02 - that looks a little non-sensical to me. Perhaps you forgot PG_FUNCTION_INFO_V1(). -- Peter Eisentraut http://developer.postgresql.org/~petere/