QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
| Title |
Documentation about memory allocation with ApGetTextRes |
| Ref. No. |
QNX.000004428 |
| Category(ies) |
Development |
| Issue |
In the example for ApGetTextRes, string is a character pointer returned from the ApGetTextRes function. Does 'string' need to be deleted afterwards?
|
| Solution |
Don't call free() on this char*. It is part of a larger structure in which the Aplib should be handling for you. |
|