INFORMIX
DataBlade API Programmer's Manual
Chapter 11: Developing Server Functions
Home Contents Index Master Index New Book

Memory Management Issues

A server DataBlade API function should not call malloc() because when an exception is raised, DataBlade API does not automatically deallocate memory that malloc() function allocates. Instead, the server function should use the DataBlade API function mi_alloc(), mi_dalloc(), or mi_zalloc() to allocate memory and mi_free() to deallocate it. These functions are also available in the client DataBlade API interface to provide portability between client and server DataBlade API functions. To use these functions, be sure to include mi.h in your application.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.