OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Geoffrey Hird (geoffreyARCOT.COM)
Date: Thu Oct 11 2001 - 16:58:04 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    When one uses AUTOALLOCATE with, say, SCardListReaders(), one
    needs a firm criterion for when to call SCardFreeMemory().

    The following seem to be reasonable alternative candidates:

    1. The return value is SCARD_S_SUCCESS.
    2. The output value of the buffer length is != -1.
    3. The pointer has changed from, e.g., NULL.

    Obviously, 3 is pretty foolproof. Can I rely on the others?

    Geoffrey