Re: Custom C function - is palloc broken?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "Dan \"Heron\" Myers" <heron(at)xnapid(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Custom C function - is palloc broken?
Date: 2008-05-06 00:42:16
Message-ID: 481FA968.10705@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dan "Heron" Myers 2008-05-06 00:47:50 Re: Custom C function - is palloc broken?
Previous Message Klint Gore 2008-05-06 00:05:18 Re: operator is not unique: integer || integer