Skip to content

Plot is not render when use thread #3

@RodrigoPereyraDiaz

Description

@RodrigoPereyraDiaz

I have and Application that show an splash on separeted thead, when the splash finish invoke the main window application, and not show the plot.
Splash code. https://github.com/hamekoz/hamekoz-sharp/blob/master/Hamekoz.UI/Splash.cs
MainWindowUI contains the plot view that not render de plot.

using System;
using Hamekoz.Core;
using Hamekoz.UI;
using Xwt;

namespace Hamekoz.App
{
	class MainClass
	{
		[STAThread]
		public static void Main (string[] args)
		{
			Application.Initialize ();

			var splash = new Splash {
				SplashImage = Resources.Splash,
			};

			splash.OnPreload += () => {
				splash.SetInfo ("Working...");
                                //do some work
			};

			splash.OnFinish += delegate {
				Application.Invoke (() => new MainWindowsUI ());
			};

			splash.Run ();

			Application.Run ();
			Application.Dispose ();
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions