Uses "Dictionary"
Dword pDictionary = Dictionary_Create(1000)
' ...
' now discover I have reached limit, 1000 Keys are used...
' copy dictionary to some buffer
Dword pBuffer = Heap_Alloc( Dictionary_MemInfo(pDictionary, %HT_MemInfo_Total) )
Memory_Copy( pDictionary, pBuffer, Heap_Size(pBuffer) )
'kill the old dictionary
Dictionary_Free(pDictionary)
' create a bigger one
pDicitonary = Dictionary_Create(2000)
' put the data back?
Memory_Copy( pBuffer, pDictionary, Heap_Size(pBuffer) )
would this work or corrupt the dictionary-content?
Bookmarks