Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Nesvarbu  
#1 Posted : 20 December 2023 01:36:57(UTC)
Nesvarbu

Rank: Newbie

Groups: Registered
Joined: 19/12/2023(UTC)
Posts: 4
Lithuania

Was thanked: 1 time(s) in 1 post(s)
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.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 20 December 2023 02:47:29(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,654
Man
Italy
Location: Italy

Was thanked: 1340 time(s) in 879 post(s)
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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Nesvarbu  
#3 Posted : 20 December 2023 05:38:07(UTC)
Nesvarbu

Rank: Newbie

Groups: Registered
Joined: 19/12/2023(UTC)
Posts: 4
Lithuania

Was thanked: 1 time(s) in 1 post(s)
David, thanks for replay. I disabled the Cephes Mathematical Library. Now the file is not created in all cases.
Offline Davide Carpi  
#4 Posted : 20 December 2023 06:37:09(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,654
Man
Italy
Location: Italy

Was thanked: 1340 time(s) in 879 post(s)
Originally Posted by: Nesvarbu Go to Quoted Post
Now the file is not created in all cases.


I've made a simple test file and it works.
WorksheetTest.sm (4kb) downloaded 3 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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Nesvarbu  
#5 Posted : 21 December 2023 01:07:35(UTC)
Nesvarbu

Rank: Newbie

Groups: Registered
Joined: 19/12/2023(UTC)
Posts: 4
Lithuania

Was thanked: 1 time(s) in 1 post(s)
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 (20kb) downloaded 7 time(s)..
The WorksheetTest works.

Edited by user 28 December 2023 05:10:51(UTC)  | Reason: Not specified

Offline Nesvarbu  
#6 Posted : 05 January 2024 01:34:42(UTC)
Nesvarbu

Rank: Newbie

Groups: Registered
Joined: 19/12/2023(UTC)
Posts: 4
Lithuania

Was thanked: 1 time(s) in 1 post(s)
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.
thanks 1 user thanked Nesvarbu for this useful post.
on 05/01/2024(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.