Also, if I move the creation of all those images elsewhere below in the code such as just before I launch my menu, I can go further in the code before it start freezing. For exemple, I can have the application to be built ok if I create up to the 20th image now. But, as soon as I create the 21st image, it will start freezing on the next build. So, it's something related to the memory. I just am running out of ideas now on a potential workaround to have that code to be executed ok. I need those images to be created in order to having a bug in the VFP menu when images are shown next to an item.