Whenever I try to create an object(queue, thread, or byte pool) I can only create them by doing dynamic memory allocation; it fails if I try a static memory allocation.
I am unable to find the txm_module_object_allocate
API anywhere in the documentation.
//Works:
TX_BYTE_POOL* my_byte_pool=NULL;
txm_module_object_allocate(&my_byte_pool, sizeof(TX_BYTE_POOL));
tx_byte_pool_create(my_byte_pool, "Task Pool", free_memory_task, 16*1240);
//Fails:
TX_BYTE_POOL my_byte_pool;
tx_byte_pool_create(&my_byte_pool, "Task Pool", free_memory_task, 16*1240);
In the second case, I always get the error that tx_byte_pool_create
failed.