Memory problem

Memory problem - OS message when using function norme() - Messages

#1 Posted: 7/1/2012 9:25:23 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hello,

under Windows 7 using build 4559 I get a strange error message when trying the following:

The message is not from SMath (does not appear in the lang file and does not react on GUI language setting).
It says "It was tried to read or write in the protected memory. This is often a hint on that some other memory is defect." Whatever that means...
This happens independently of the matrix shape.

I tried some older versions:

0.93 refuses to execute any of the norm functions with units

0.94 (build 4544) computes all norms but fails to recognize the unit exponents as zero (optimization numeric, as can be seen from the decimal fraction of the result).


All versions show the error message "Matrix must be square" when calling norme() with a scalar.
  1. I would expect the euclidean norm to work with any matrix shape, at least with column vectors.
  2. If the SMath implementation of the euclidean norm is really limited to square matrices, than I would expect a corresponding error message for any non-square argument, not just for scalars.


Best regards, Martin Kraska
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Posted: 7/2/2012 9:48:24 AM
Infinity

Infinity

3 likes in 30 posts.

Group: User

Hi,

could you please try to change your regional settings in Tools->Options to:
- Decimal symbol . (period)
- Argument separator ;(semicolon)

In my case when I use . (period) as decimal symbol norme(...) works, but fails with , (comma) as decimal symbol.

Best regards,
Infinity
#3 Posted: 7/2/2012 1:55:02 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hello Infinity,

thank you for having a look at the reportet problem.

Wrote

Hi,

could you please try to change your regional settings in Tools->Options to:
- Decimal symbol . (period)
- Argument separator ;(semicolon)

In my case when I use . (period) as decimal symbol norme(...) works, but fails with , (comma) as decimal symbol.

Best regards,
Infinity



In fact, I normally use german setting with . as decimal separator and , as argument separator. I extend your proposal to going through the setting permutations for both. This is what I observe (all with 4559 and english front end setting)

dec sep . arg sep , --> memory problem/sqare matrix requested
dec sep . arg sep ; --> memory problem/sqare matrix requested
dec sep , arg sep . --> memory problem/sqare matrix requested
dec sep , arg sep ; --> memory problem/sqare matrix requested
dec sep ; arg sep . --> memory problem/sqare matrix requested
dec sep ; arg sep , --> memory problem/sqare matrix requested

Thus I can't find any influence of the separator settings (would have been odd, wouldn't it?). However, the example does not contain any dec separator, unless there is a computed result.

May be, you use a different SMath version? May be, my computer is somehow broken?

Best regards, Martin Kraska









Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#4 Posted: 7/2/2012 7:04:39 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote


In fact, I normally use german setting with . as decimal separator and , as argument separator. I extend your proposal to going through the setting permutations for both. This is what I observe (all with 4559 and english front end setting)

[...]

Thus I can't find any influence of the separator settings (would have been odd, wouldn't it?). However, the example does not contain any dec separator, unless there is a computed result.

May be, you use a different SMath version? May be, my computer is somehow broken?

Best regards, Martin Kraska




Hi mkraska,

Looking your example I've got the same issues, and I can't find any influence of the separator settings...


regards,

w3b5urf3r
norm.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 7/3/2012 3:17:33 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hi, thank you for digging into the details and showing that the OS message is not a local problem at my computer.

BTW, how did you create the attachment? I don't get insight via quoting. Obviously you did bypass the wiki file management...

Best regards, Martin Kraska

Wrote


Hi mkraska,

Looking your example I've got the same issues, and I can't find any influence of the separator settings...


regards,

w3b5urf3r



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 7/3/2012 3:34:55 AM
Infinity

Infinity

3 likes in 30 posts.

Group: User

Hi,

in my case, I use XP and not Win 7.
When I use a . (period) as separator, it works but not with , (comma) as separator.
Have a look at my attachments. So that is the reason why I brought up the decimal separator question. I took the file w3b5urf3r_reloaded posted.

BTW, how to attach files: http://en.smath.info/forum/yaf_help_index.aspx?faq=attachments

Best regards,
Infinity
Clipboard02.jpg
#7 Posted: 7/3/2012 4:05:19 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hi

very strange, could be related with the OS or the framework?


regards,

w3b5urf3r

P.S.: wiki updated for forum attachments
norme.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#8 Posted: 7/3/2012 2:00:35 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Thanks a lot, also to Infinity. The thanks button just gives me the message "Error occured".

I do not see what we could do except wait for a fix.

Wrote

Hi

very strange, could be related with the OS or the framework?


regards,

w3b5urf3r

P.S.: wiki updated for forum attachments



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts