- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could anybody help or comment?
I created a windows dialog form. Also, a console is created for output. I click on a CALCULATE button. This starts a multi-variable chi-square minimization routine. The results of chi-square minimization are written to the console iteration by iteration. This can take several minutes for a complicated numerical problem. I created another button INTERRUPT to stop minimization when it starts diverging. However, the problem is that my minimization routine works synchronously, therefore it does not return control to the dialog and I cannot click INTERRUPT. Therefore, I need the minimization routine to run asynchronously, so that the control returns to the dialog and I could press INTERRUPT.
I did a work around by reading input from a keyboard once per iteration, so I can interrupt this way. But it is an ugly and old-fashion solution.
Thank you - Tom Semkow
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page