|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.231 2007/02/16 16:37:29 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.232 2007/02/19 22:06:23 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="libpq">
|
4 | 4 | <title><application>libpq</application> - C Library</title>
|
@@ -2617,9 +2617,13 @@ void PQfreemem(void *ptr);
|
2617 | 2617 | <function>PQescapeBytea</function>,
|
2618 | 2618 | <function>PQunescapeBytea</function>,
|
2619 | 2619 | and <function>PQnotifies</function>.
|
2620 |
| - It is needed by Microsoft Windows, which cannot free memory across |
2621 |
| - DLLs, unless multithreaded DLLs (<option>/MD</option> in VC6) are used. |
2622 |
| - On other platforms, this function is the same as the standard library function <function>free()</>. |
| 2620 | + It is particularly important that this function, rather than |
| 2621 | + <function>free()</>, be used on Microsoft Windows. This is because |
| 2622 | + allocating memory in a DLL and releasing it in the application works |
| 2623 | + only if multithreaded/single-threaded, release/debug, and static/dynamic |
| 2624 | + flags are the same for the DLL and the application. On non-Microsoft |
| 2625 | + Windows platforms, this function is the same as the standard library |
| 2626 | + function <function>free()</>. |
2623 | 2627 | </para>
|
2624 | 2628 | </listitem>
|
2625 | 2629 | </varlistentry>
|
|