Pre loader

SciChart on Windows ARM?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Hello! This might be a silly question, but if I were to get a new MacBook running the M1-series processor, and ran Windows ARM preview in Parallels, do I have any chance of getting SciChart to work? I can see here that Visual Studio ARM will compile x86 and x64, but will SciChart work? I have no way to test this so hopefully someone else has!

https://docs.microsoft.com/en-us/visualstudio/install/visual-studio-on-arm-devices?view=vs-2022

Version
Latest as of Sep 26, 2020
  • You must to post comments
1
0

I just tried this in Parallels today and it’s throwing an exception. This exception is being thrown when I call SciChartSurface.SetRuntimeLicenseKey. I suspect it’s trying to load an unmanaged lib that wasn’t compiled as arm64 but that’s just my guess.

This was tested using the following:
Apple 16″ Macbook Pro M1 (1TB and 16GB RAM)
Parallels Version 18.2.0 (53488)
Windows 11 22621.525
Visual Studio Enterprise 2022 17.5.3
SciChart 7.0.1.27055 (installed via NuGet)


The type initializer for ‘ncw’ threw an exception.
Failed to load file C:\Users\tim\AppData\Local\SciChart\Dependencies\v7.0.1.27055\x64\AbtLicensingNative.dll as an unmanaged DLL
LoadLibrary() failed with error: 0. Message: The operation completed successfully.
at ncw.cxb(String bad)
at SciChart.Charting.Visuals.SciChartSurface.SetRuntimeLicenseKey(String key)
at DemoApp.App.OnStartup(StartupEventArgs e) in C:\Users\tim\Git\DemoApp\DemoApp\App.xaml.cs:line 19
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

  • Andrew Burnett-Thompson
    Hi Tim, Thanks for the additional info. To make this work we’d need to recompile our unmanaged libraries for ARM and include them in the scichart package. It would increase the dll size for all. We have this marked as a task in our backlog and at some point will get to it. As more technology progresses toward ARM we realise it would be good to support scichart on this platform.
  • Tim Stephansen
    Hi Andrew, has there been any progress on making an ARM compatible version of the AbtLicensingNative DLL?
  • You must to post comments
0
0

Hi Peter,

The problem you encountered came from your Debug configuration. By default Visual Studio uses Any CPU that defaults to your current processor architecture (ARM64 in your case). So to work properly with SciChart native libs you should force your app to run in x64 mode.

I know it is an outdated answer. However, I hope it will help someone.

  • You must to post comments
1
0

Hi Peter

I honestly haven’t tried it! I have tried ScIChart WPF on Parallels VM on Intel Macbooks. It works pretty well there, with the odd glitch (which unfortunately is down to Parallels DirectX virtualisation)

Do you have an M1 with Parallels available?

You can clone our SciChart WPF Examples repository here and run the Smoke Tests UIAutomation Tests (inside Examples/SciChart.Examples.Demo.SmokeTests folder)

This will cycle through every example and take a screenshot of the example & compare vs. expected. From that you can tell in a few minutes which examples work and which fail.

Try it, let us know!

Best regards
Andrew

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies