Java robot class capturing black/blank desktop images - Help

I am currently capturing various images from the desktop using the robot class. Yet every now and again my program will take a completely black image, which renders my program useless. Does anyone have any suggestion why this is happening ? and what I can do prevent or fix it ?

At the moment I just restart my computer and it seems fine, but I don't want this to happen on my clients computer.

There are some instances where the robot (at least in its current implementation) is not capable of capturing the screen contents. Some transparent windows, video, or other direct-to-hardware rendering may not be available for capture by the robot. The capture will also be blank on w32 systems when effectively run as a service as the System user without desktop access.

If the capture is intermittently getting invalid results, then there's likely a bug in the capture. One workaround would be to sample a few pixels to ensure the capture is not blank, re-capturing if the capture appears to have failed.

mr_mooray,
This question has been classified as abandoned. I will make a recommendation to the moderators on its resolution in approximately four days. I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final disposition.

The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.