| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Zeugswetter Andreas SB SD <ZeugswetterA(at)spardat(dot)at> |
| Cc: | Key88 SF <key88sf(at)hotmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: PQescapeBytea on Win32 |
| Date: | 2003-03-22 03:30:20 |
| Message-ID: | 200303220330.h2M3UKm17542@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I have modified the patch to call it PQfreemem(), in case there are other
cases we need to free libpq memory.
Patch attached and applied.
---------------------------------------------------------------------------
Zeugswetter Andreas SB SD wrote:
>
> > Actually this isn't even working for me. I just compiled the libpq dll with
> > /MT (multithreaded), and I still get corruption in my app. I even tried
> > libpq compiled with multithreaded-debug (/MTd), which my app is using now,
> > and still same problem.
>
> No, you need to use multithreaded DLL (/MD in VC6) for both the dll and your program,
> then it works.
> But since that is not optimal (can't use debug runtime unless you have a second
> debug dll (/MDd)), I also think a callback function would be good to have in addition
> to linking libpq.dll with /MD.
>
> Informix e.g. supplies SqlFreeMem( void * MemAddr, int FreeType );
>
> Andreas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| Attachment | Content-Type | Size |
|---|---|---|
| unknown_filename | text/plain | 2.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Russ Mercer | 2003-03-22 04:18:22 | UltraSQL Win32 source code/patches? |
| Previous Message | Bruce Momjian | 2003-03-22 02:13:31 | Re: installcheck failure |