![]() |
![]() |
|
|
Allocating and Releasing Memory Buffers
When allocating and releasing memory buffers on a Windows NT system,you must ensure that the memory buffer is released from the same heap in which it was allocated. Failure to do so results in a segmentation fault.
For example, a memory buffer that is allocated using Falloc() must be released using Ffree(). On the other hand, a memory buffer that is allocated using malloc() and freed using Ffree() will produce a segmentation fault. free() must be used, in this case, to free the memory buffer.
For more information on Falloc, Falloc32(3fml)and Ffree, Ffree32(3fml), refer to the BEA Tuxedo FML Function Reference. For more information on malloc() and free(), refer to the documentation distributed with your operating system.
![]() |
![]() |
![]() |
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|