You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module Singleton; class Singleton { private static Singleton instance; public static Singleton GetInstance() { if (instance is null) { instance = new Singleton(); } return instance; } private this() { // Constructor code } }
and then another file such as module main; import Singleton : Singleton; import std.stdio; void main(string[] args) { Singleton.GetInstance(); }
Then hovering over GetInstance call in main crashes Xamarin Studio. I couldn't find any log file that would indicate the source of the crash however. Tested this in 2 different versions of Xamarin under Windows, same result.
Suppose we have a module
module Singleton; class Singleton { private static Singleton instance; public static Singleton GetInstance() { if (instance is null) { instance = new Singleton(); } return instance; } private this() { // Constructor code } }
and then another file such as
module main; import Singleton : Singleton; import std.stdio; void main(string[] args) { Singleton.GetInstance(); }
Then hovering over GetInstance call in main crashes Xamarin Studio. I couldn't find any log file that would indicate the source of the crash however. Tested this in 2 different versions of Xamarin under Windows, same result.
xscrash.zip
sample solution
The text was updated successfully, but these errors were encountered: