One of our applications fails on computers that are controlled via pcAnywhere because the ImageList_Add() WinAPI function fails to add the image/mask after some time. The function returns -1 and the number of icons in the imagelist doesn't change. On all other computers this is no problem. What is interesting is that we can add 99 bitmaps (LoadBitmap) to the imagelist but by adding the 100th bitmap ImageList_Add stops working.
I tried to write a simple test application that fills the imagelist by a specified number of bitmaps but that didn't cause the problem. So I'm standing in the rain. Does anybody have seen this strange behavior or has a solution or explanation for it?