Bug 42451 - Crash on calling the Refresh Method of Custom UserControl.
Summary: Crash on calling the Refresh Method of Custom UserControl.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: Community
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-09 19:38 UTC by Frederick Harrison
Modified: 2017-09-01 11:55 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: Yes
Last known good build:


Attachments
Custom Control Class file. (27.23 KB, application/octet-stream)
2016-07-09 19:38 UTC, Frederick Harrison
Details
Main Application File that uses the custom control. (4.25 KB, application/octet-stream)
2016-07-09 19:40 UTC, Frederick Harrison
Details
Crash Log (48.45 KB, text/plain)
2016-07-12 16:33 UTC, Frederick Harrison
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 42451 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Frederick Harrison 2016-07-09 19:38:35 UTC
Created attachment 16622 [details]
Custom Control Class file.

Description of Problem:

Project is a C# mono custom control subclassing UserControl.

project crashes when calling The Refresh method from within the control or from the
application that uses the control.

All code is c#, same bug in MacOS, Linux and Windows 10.

Does not crash when using Invalidate() instead of Refresh(), but performance is degraded. 

I have to add tests in the paint event to prevent collisions or crash eventually occurs even with Invalidate().


Steps to reproduce the problem:
1. Call Refresh() from inside the control.
2. Call Refresh() from the application using the control.Refresh();


Actual Results: Crash


Expected Results: no crash


How often does this happen? 
Always.

Additional Information:
Mac OS 10.11
Windows 10
Ubuntu 16.04
Comment 1 Frederick Harrison 2016-07-09 19:40:54 UTC
Created attachment 16623 [details]
Main Application File that uses the custom control.

Main application uses 2 instances of EHSI custom control. Crash happens when calling control.Refresh() from main application.
Comment 2 Marek Safar 2016-07-12 11:05:18 UTC
Please include the actual crash log
Comment 3 Frederick Harrison 2016-07-12 16:33:01 UTC
Created attachment 16638 [details]
Crash Log

This the log of the crash that occurs when using the Refresh() method of the control.