1 Pages (6 items)
exportDataCSV doesn't work in .exe file - Messages
#1 Posted: 12/19/2023 7:36:57 PM
Hello,
I use exportDataCSV (D; fname; path) to write data to a file. It works from SM and Preview SMath Viewer. But when I create an exe file, the data is not saved. I discovered in the log file that an error is being generated.
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] SMath Studio Desktop 64-bit 1.0.8348.30405
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] Cephes Mathematical Library, version 1.0.8034.38340, 30-gruod.-2021 21:18:00
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] OS: Microsoft Windows NT 6.2.9200.0
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] .Net: 4.0.30319.42000
18.12.2023 14:12:19 [ERROR] [Plugin.Initialize()] The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
A file of 2000 integers is recorded about 25 seconds. Is this normal?
Thanks in advance.
I use exportDataCSV (D; fname; path) to write data to a file. It works from SM and Preview SMath Viewer. But when I create an exe file, the data is not saved. I discovered in the log file that an error is being generated.
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] SMath Studio Desktop 64-bit 1.0.8348.30405
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] Cephes Mathematical Library, version 1.0.8034.38340, 30-gruod.-2021 21:18:00
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] OS: Microsoft Windows NT 6.2.9200.0
18.12.2023 14:12:19 [INFO ] [Plugin.Initialize()] .Net: 4.0.30319.42000
18.12.2023 14:12:19 [ERROR] [Plugin.Initialize()] The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
A file of 2000 integers is recorded about 25 seconds. Is this normal?
Thanks in advance.
#2 Posted: 12/19/2023 8:47:29 PM
I think the problem is in the the Cephes Mathematical Library; if you create an executable without that library exportData.csv should work.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 12/19/2023 11:38:07 PM
David, thanks for replay. I disabled the Cephes Mathematical Library. Now the file is not created in all cases.
#4 Posted: 12/20/2023 12:37:09 AM
WroteNow the file is not created in all cases.
I've made a simple test file and it works.
WorksheetTest.sm (3 KiB) downloaded 30 time(s).
If you post a small example that doesn't works for you I might try to find the cause and fix the plugin.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 12/20/2023 7:07:35 PM
David, I've posted almost full file. Another thing that seems strange to me is the very long (~ 2 min) saving to file time. Eksponentes_V5.sm (19 KiB) downloaded 29 time(s)..
The WorksheetTest works.
The WorksheetTest works.
#6 Posted: 1/4/2024 7:34:42 PM
The problem has been solved. But its cause has not been eliminated. It was enough to change the Round (A) function to Round (A;0). There was no problem with the speed of writing, either.
1 users liked this post
Davide Carpi 1/4/2024 9:37:00 PM
1 Pages (6 items)
-
New Posts
-
No New Posts