Snapshot of dialog containing progress bar crashes program
Posted: Mon Mar 09, 2009 11:01 pm
I have a Java application that uses SWT for windowing. The application includes several dialogs, some of which contain a progress bar (SWT class: ProgressBar) control. I am automating the application using a C# program which interfaces with the Ranorex library. Whenever I use Ranorex.ElementSnapshot to take a snapshot of a dialog containing a ProgressBar and save the snapshot to a PNG file, the PNG file is created and appears correct, but the Java program immediately crashes. According to the log file, the error is a Java Virtual Machine error (illegal access). One of the frames mentioned in the log file is the ProgressBar window procedure.
If anyone has a clue as to why this happens, please help. Thanks.
If anyone has a clue as to why this happens, please help. Thanks.