When my program terminates, I get an Access Violation exception in RemoveMediumFreeBlock. The exception occurs because LBinGroupNumber is invalid. Not sure, how to further debug the issue.