Pipo is correct, although I suspect that it's a typo because calling a ScatterPlot constructor with 2 X axes instead of 1 X axis and 1 Y axis would not compile.
Regarding the crash when you try to do this on a separate thread, this is because Windows Forms controls are not thread safe. Notice that the class overviews of all .NET Framework and Measurement Studio Windows Forms controls have a thread safety section that states:
"Only the following members are safe for multithreaded operations: BeginInvoke, EndInvoke, Invoke, InvokeRequired, and CreateGraphics."For more information about accessing Windows Forms controls from non-UI threads, see the .NET Quickstart article
"Making procedure calls across thread boundaries".
Regarding the slow startup time, where are you running this code? Is it in the constructor or at form load time? Does this only happen when you add a plot, or does it happen anytime you try to start an application that has a Measurement Studio graph? Take a look at the knowledge base article
"Measurement Studio .NET Assemblies Take More Than 10 Seconds to Load at Run Time" and see if this is the cause of your problem. If not, could you please post a small test project that reproduces this behavior? Thanks.
- Elton