I'm getting the error: "AppClosed. AknIconServer KERN-EXEC 3" when trying to use AknIconUtils::SetSize in 3rd edition.

The weird thing is that in this container I'm using other images which are loaded from the same .mif file which can be sized and displayed correctly. The images causing the error seem to be loaded correctly from AknIconUtils::CreateIconL.

Any suggestions?