GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Crash


https://support.genopro.com/Topic29296.aspx
Print Topic | Close Window

By rdn - Thursday, November 3, 2011
Hi,

Upon canceling a report (which was uploading to the web site), the program seemed to freeze.  Upon pressing cancel several more times, a message appears that I should wait 10 seconds.  Upon waiting an additional minute and pressing cancel again, GenoPro crashed.
By GenoProSupport - Monday, November 7, 2011
When GenoPro generates a report, it uses a background thread to execute the code generating the report.  This is important, otherwise the windows would not repaint and it would be impossible to click on any button, including the Cancel button.

When the user click on the Cancel button, GenoPro does not terminate the thread which could lead to serious memory leaks, but set a flag for the thread to stop as soon as possible.  Since the thread is running VBScript or JavaScript code, the time necessary to terminate the last instruction may vary.  If the user attempts to really quit, then GenoPro will force the termination of the thread, which may destroy the script engine while running which may crash GenoPro.  The script engine uses many "callbacks" which point to the Report Generator window and the family tree document.  If the window Report Generator is gone, or if the family tree document is modified while generating a report, it could cause a crash.
By rdn - Wednesday, November 9, 2011
Thank you Dan for this explanation.

However, the crash is an inelegant result.

Is there a way to abort a report in a faster manner?  This is the cause of my lack of patience, hence leading to attempt in aborting more than once.
By GenoProSupport - Wednesday, November 9, 2011
Is there a way to abort a report in a faster manner?
Not really.  Aborting a report used to be very fast, when the script was small.  Today, the script is doing a lot of work, and depending on which script is being executed, aborting a routine may take several seconds.