Ridc file download heap issue