One of our applications crashes on computers that are controlled through pcAnywhere, because the ImageList_Add () WinAPI function cannot add an image / mask after a while. The function returns -1, and the number of icons in the imagelist does not change. On all other computers, this is not a problem. Interestingly, we can add 99 bitmaps (LoadBitmap) to imagelist, but by adding ImageList_Add stop-bitmaps that work.
I tried to write a simple test application that fills the imagelist with a certain number of bitmaps, but this did not cause a problem. Therefore, I stand in the rain. Has anyone seen this strange behavior or has a solution or explanation?
source share