Error Object reference

Error Object reference - Messages

#1 Posted: 2/17/2022 10:28:08 AM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

FXsp.sm (502 KiB) downloaded 59 time(s).

When trying to open the file, the following error appears "object reference not defined for an instance of an object".

Can you tell me how to solve it.
#2 Posted: 2/17/2022 10:40:54 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

When trying to open the file, the following error appears "object reference not defined for an instance of an object".


File does not open incorrect format
Probably caused by an active AV at time saved.
#3 Posted: 2/17/2022 10:42:57 AM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Wrote

When trying to open the file, the following error appears "object reference not defined for an instance of an object".


File does not open incorrect format
Probably caused by an active AV at time saved.




it is possible solver?
#4 Posted: 2/17/2022 10:54:01 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

it is possible solver?


If it would relate to a solver of some kind it would turn red.
Try to save as instead of just save.
Personally, I always save as ... never simply save.
#5 Posted: 2/17/2022 10:58:10 AM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Wrote

it is possible solver?


If it would relate to a solver of some kind it would turn red.
Try to save as instead of just save.
Personally, I always save as ... never simply save.




So this scrypt is lost?
#6 Posted: 2/17/2022 11:02:45 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

So this script is lost ?


Maybe yes up to this point ?
Can't help so far !
#7 Posted: 2/17/2022 11:08:25 AM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Wrote

So this script is lost ?


Maybe yes up to this point ?
Can't help so far !



thank you very much friend
#8 Posted: 2/17/2022 12:45:28 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

Wrote

So this script is lost ?


Maybe yes up to this point ?
Can't help so far !


I won't make a promise, but maybe it can be recoverable.
At least and maybe, some parts of it.
Don't fall into Jean's false claims.
#9 Posted: 2/17/2022 1:03:57 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

First attempt to fix the file.
I have removed the force crash section.
Next I am going to correct the crashing section.
I think I can fix very most part of it.

Regards

FXsp_r0.sm (473 KiB) downloaded 59 time(s).
#10 Posted: 2/17/2022 1:33:20 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Here is your file, completely recovered.

Regards

FXsp_r1.sm (603 KiB) downloaded 70 time(s).

Click to Enlarge
1 users liked this post
#11 Posted: 2/17/2022 1:39:51 PM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Here is your file, completely recovered.

Regards

FXsp_r1.sm (603 KiB) downloaded 70 time(s).

Click to Enlarge



thank you very much friend, can you tell me what was done to fix this error?
#12 Posted: 2/17/2022 2:32:30 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

thank you very much friend, can you tell me what was done to fix this error?


You are welcome.
Culprit is usually an empty \[REGION[####]]\. Yours was at line#1963.
SMath files are sophisticated xml files actually.
You can edit them with a text editor.
The hash inside \[REGION[#####]]\ can differ, but pattern is always same.
\[REGION[#######################]]\
I usually search for this and remove its regions entirely.
If fix works, then try to remove \[REGION[###]]\ individually.

This mostly works to fix the files.
If it doesn't, I remove sections one by one.
Or multiple of them at same time until file works again.
Then re-add them to pinpoint which region makes crash.

Most important, I always work on file copies to prevent more data loss.

Regards

2022-02-17_20-23.png
#13 Posted: 2/17/2022 3:22:03 PM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Wrote

thank you very much friend, can you tell me what was done to fix this error?


You are welcome.
Culprit is usually an empty \[REGION[####]]\. Yours was at line#1963.
SMath files are sophisticated xml files actually.
You can edit them with a text editor.
The hash inside \[REGION[#####]]\ can differ, but pattern is always same.
\[REGION[#######################]]\
I usually search for this and remove its regions entirely.
If fix works, then try to remove \[REGION[###]]\ individually.

This mostly works to fix the files.
If it doesn't, I remove sections one by one.
Or multiple of them at same time until file works again.
Then re-add them to pinpoint which region makes crash.

Most important, I always work on file copies to prevent more data loss.

Regards

2022-02-17_20-23.png



thx u pro
#14 Posted: 2/17/2022 3:23:18 PM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Wrote

thank you very much friend, can you tell me what was done to fix this error?


You are welcome.
Culprit is usually an empty \[REGION[####]]\. Yours was at line#1963.
SMath files are sophisticated xml files actually.
You can edit them with a text editor.
The hash inside \[REGION[#####]]\ can differ, but pattern is always same.
\[REGION[#######################]]\
I usually search for this and remove its regions entirely.
If fix works, then try to remove \[REGION[###]]\ individually.

This mostly works to fix the files.
If it doesn't, I remove sections one by one.
Or multiple of them at same time until file works again.
Then re-add them to pinpoint which region makes crash.

Most important, I always work on file copies to prevent more data loss.

Regards

2022-02-17_20-23.png



thx u pro -->can you tell me why I can't save this same file in .exe form?
#15 Posted: 2/17/2022 3:44:20 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

thx u pro -->can you tell me why I can't save this same file in .exe form?


I don't know your Windows setup. So can't tell.
I even use linux and I could make an exe file.
Try to Log-in to your account in SMath.
(Login button is Up-Right of SMath window)
This will activate pro mode while saving exe's.
And uncheck compression option.
This is what I did.

Regards

This zip file contains exe of your file:
FXsp_r1.exe.gz (1 MiB) downloaded 55 time(s).

2022-02-17_21-40.png
#16 Posted: 2/17/2022 4:13:34 PM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

Wrote

thx u pro -->can you tell me why I can't save this same file in .exe form?


I don't know your Windows setup. So can't tell.
I even use linux and I could make an exe file.
Try to Log-in to your account in SMath.
(Login button is Up-Right of SMath window)
This will activate pro mode while saving exe's.
And uncheck compression option.
This is what I did.

Regards

This zip file contains exe of your file:
FXsp_r1.exe.gz (1 MiB) downloaded 55 time(s).

2022-02-17_21-40.png



I still get the same error as in the topic below

https://en.smath.com/forum/yaf_postst21695_Error-trying-to-save-to--exe.aspx

#17 Posted: 2/17/2022 4:20:20 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Wrote

I still get the same error as in the topic below

https://en.smath.com/forum/yaf_postst21695_Error-trying-to-save-to--exe.aspx


Let me try this with a Windows installed computer.
Than maybe I can get what is going on about the issue.
#18 Posted: 2/17/2022 5:08:08 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

I tried your file with a windows 10 installed computer.
It didn't made the executable file on that either.
I have replaced writer plugin regions with embedded text regions.
Now exe file can be created, but not visually as you desired I guess.
And it creates some maple files in document directory when executed.

Actually you don't need maple to solve that kind of functions you used.
Embedded solve() or roots() enough for that, I have replaced it.

So, there is a inconsistency with Linux and Windows versions.
While using Writer Regions and making executable files,
Windows version can't finish while Linux can.
Interesting finding indeed.

Regards

FXsp_r2.sm (502 KiB) downloaded 67 time(s).
#19 Posted: 2/17/2022 6:03:00 PM
TIAGO C DOS SANTOS

TIAGO C DOS SANTOS

1 likes in 27 posts.

Group: User

Wrote

I tried your file with a windows 10 installed computer.
It didn't made the executable file on that either.
I have replaced writer plugin regions with embedded text regions.
Now exe file can be created, but not visually as you desired I guess.
And it creates some maple files in document directory when executed.

Actually you don't need maple to solve that kind of functions you used.
Embedded solve() or roots() enough for that, I have replaced it.

So, there is a inconsistency with Linux and Windows versions.
While using Writer Regions and making executable files,
Windows version can't finish while Linux can.
Interesting finding indeed.

Regards

FXsp_r2.sm (502 KiB) downloaded 67 time(s).




perfect thank you very much for making your time available, I have been using smart for 4 months and in this learning phase you are one of the best help, thank you very much friend

1 users liked this post
overlord 2/17/2022 6:06:00 PM
  • New Posts New Posts
  • No New Posts No New Posts