This error may occur in case of ItemsCount or
QueGetMaxPacketSize properties are equal to 0, or in case of
insufficient system resources.
HNERR_CREATE_SYNCOBJ_ERR
Queue synchronization object creation error.
Description:
Use this function to allocate memory for queue items and create queue synchronization objects.
If this function succeeds, HNPacket and queue synchronization
objects will be created.
AllocatedSize [Get]
property will contain total size of the memory allocated for query in bytes.
FreeCount [Get] and
FullCount [Get] properties will contain total amounts of the queue
items with Free and Full statuses correspondingly.
All queue items will be placed into the free packets list (may be accessed by the
QueGetFreeItem function).
To leave system resources allocated by QueAllocItems use QueFreeItems
function.
If you use HNQueue object together with
HNAdapter object, you should remember that you have to
free queue resources in time by using of QueFreeItems function or by
deleting HNQueue object, otherwise your application may crash (see
AdpCloseAdapter).