icsharpcode / SharpDevelop

#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
2.08k stars 771 forks source link

Search in files breaks with synchronizationcontext is null #790

Open alinmircea opened 7 years ago

alinmircea commented 7 years ago

When you disable the splashscreen (nologo) synchronizationcontext.current will be null during workbench initialization.

As a result posting the search results through sync context, during search and replace will break with object null ( the sync context )

This happens because there was no form created before trying to access the context, so context was not created yet.

Workaround allow splash screen.