After I use mysql_free_result(), I immediately set the resultset to NULL.

-----Original Message-----
From: Adam Lawrence [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:36 AM
To: [EMAIL PROTECTED]
Subject: C API - mysql_free_result


Stats: MySQL 4.0.13, under Windows98, using the C API with lcc-win32.

Is there any way to determine if mysql_free_result() has been called on a
result set pointer?

Occasionally I recycle the pointer (use it, free it, use it again, free it
again, etc.) and if my code calls mysql_free_result() on a result set
pointer that was already freed, an exception is raised and my code
gracefully crashes out.

----------------------
    Adam Lawrence
Sustaining Engineering
     Tectrol Inc.
----------------------


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to