Re: Custom C function - is palloc broken? - Mailing list pgsql-general

From Craig Ringer
Subject Re: Custom C function - is palloc broken?
Date
Msg-id 481FA968.10705@postnewspapers.com.au
Whole thread Raw
In response to Re: Custom C function - is palloc broken?  ("Dan \"Heron\" Myers" <heron@xnapid.com>)
List pgsql-general
Dan "Heron" Myers wrote:
> Craig Ringer wrote:
>> I've tested this definition and it produces a DLL that links correctly
>> and does so without the warnings of inconsistent DLL linkage produced
>> by the original versions (which declared the function
>> __declspec(dllimport) then defined it).
>
> Did you actually try to use those functions in a query, or did you just
> build the DLL?

I tested the functions, which all worked fine.

> With the changes you suggested, I can still successfully build the DLL
> (I could build it before, as well), but now EVERY function crashes
> Postgres when I try to run it, instead of just the ones that use palloc.

Which compiler did you use?

--
Craig Ringer

pgsql-general by date:

Previous
From: "Dan \"Heron\" Myers"
Date:
Subject: Re: Custom C function - is palloc broken?
Next
From: "Dan \"Heron\" Myers"
Date:
Subject: Re: Custom C function - is palloc broken?