Support Board
Date/Time: Sun, 08 Sep 2024 00:18:53 +0000
[Programming Help] - Custom Study loads in 64.exe but not ARM64.exe
View Count: 279
[2024-02-26 21:01:12] |
kaydotle - Posts: 15 |
I've been able to Remote Build a custom study successfully: -- Starting remote build of Custom Studies Source files: AutoPositionSizer.cpp. 64-bit -- 19:36:01
Allow time for the server to compile the files and build the DLL. The remote build succeeded. Writing file to: C:\SierraChart\Data\AutoPositionSizer_ARM64.dll -- End of Build -- 19:36:05 But unable to load/see it in my custom studies (I also tried building locally): 2024-02-23 19:05:51.688 | Found DLL: AutoPositionSizer_ARM64.dll
2024-02-23 19:05:51.693 | AutoPositionSizer_ARM64.dll loading error. Windows error code 193: %1 is not a valid Win32 application. 2024-02-23 19:05:51.693 | InternalVersionNumberToFileNameMap is empty for AutoPositionSizer 2024-02-23 19:05:51.693 | Closest match search for: C:\SierraChart\Data\AutoPositionSizer.dll returned empty result. My setup: - M1 Pro - Windows 11 on Parallels 19 Pro - Running SierraChart_ARM64.exe, not in safe mode. It says Version 2604 64-bit (this doesn't need to say ARM64?). Not sure if this is relevant, but the dll file says a different version under my study groups (see attached). When I use SierraChart_64.exe, it builds AutoPositionSizer_64.dll and loads fine. I'm even able to load the study from the _ARM64.dll file in _64.exe. But unable to load either dll file in _ARM64.exe. Is this expected, that ARM can't run custom studies? If so, I would have to use _64.exe - is there a significant performance difference vs ARM? I've seen people say ARM is significantly better. And separate issue - the docs say if I save new code changes I should be able to just rebuild and not have to remove+readd the study. But mine either fails to save the ddl file, or it removes the study and I have to remove+readd it. Sometimes the error persists even after removing the study before rebuilding it. The remote build succeeded.
Writing file to: C:\SierraChart\Data\AutoPositionSizer_64.dll Failed to save the file C:\SierraChart\Data\AutoPositionSizer_64.dll. Failed to open the file. Windows error code 32: The process cannot access the file because it is being used by another process. -- End of Build -- 12:55:42 Thanks! Date Time Of Last Edit: 2024-02-27 08:12:41
|
![]() |
[2024-08-12 04:25:17] |
seandunaway - Posts: 266 |
you can cross-compile both x64 and arm64 dlls directly on your mac without any dependency cross compile from macos targeting both aarch64 and x86_64 Date Time Of Last Edit: 2024-08-12 04:28:55
|
To post a message in this thread, you need to log in with your Sierra Chart account: