ImageList_Add returns -1 on pc controlled by pcAnywhere

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?

+4
source share
1 answer

Perhaps pcAnywhere is doing something that generates a resource leak in the managed system ... And ImageList cannot add a new image because of this. Then, perhaps, the sample application simply did not cause a critical mass.

Many years ago, I touched on pcAnywere installation.

0
source

All Articles