Allan Tong schrieb: > Wrong pointer was being passed to HeapFree. > > - Allan > > Why did you remove these two lines? Was this your intention? - dev_multistate_funcs[cur[i].state][0] = multistate_funcs[cur[i].state][0]; - dev_multistate_funcs[cur[i].state][1] = multistate_funcs[cur[i].state][1]; Cheers Rico