|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, October 18, 2013
Posts: 142,
Visits: 3,822
|
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.
Danny
Edited: Monday, November 7, 2011 by
GenoProSupport
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Thursday, January 16, 2025
Posts: 4,886,
Visits: 22,775
|
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.
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, October 18, 2013
Posts: 142,
Visits: 3,822
|
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.
Danny
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Thursday, January 16, 2025
Posts: 4,886,
Visits: 22,775
|
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.
|