biddle
@biddle
New Member
Joined: Feb 15, 2024
Topics: 3 / Replies: 128
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

I’d never come across ‘System.Activator’. What a find! There are days when I am sure I’m learning the .NET framework in reverse. This is one of them….

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

It’s one of those .NET performance gotchas that you always hear about: adding a struct to an array implicitly boxes it up so that can it be handled as…

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

biddle: …and Martin I don’t know how to create a boxed version of a struct without resorting to some C#. Now I do! Create 1 element array of t…

15 years ago
Forum
Reply
RE: Again dotNet help needed – How to deal with structs and call this (new) method?

Gravey: how are you creating the struct instance? the following code SHOULD work but i get a ‘No constructor found which matched argument list: algl…

15 years ago
Forum
Reply
RE: Get current function name

Yeah, he says sheepishly, it is. Looking at the results of the “stack()” call got me thinking it would be nice to have that info returned in a struct…

15 years ago
Forum
Reply
RE: Get current function name

You could send the results of a call to stack() to a stringstream and then extract the file name from the dump it gives you. I’d be interested to kno…

15 years ago
Forum
Reply
RE: Dealing with .#INF and .#IND values

I’m not sure what would happen in mxs, because there are many layers between you and the actual CPU, but you can test to see if the number is equal to…

15 years ago
Forum
Reply
RE: How can i release my script for commercial?

Rorschach: …but if you can actually decrpyt the entire script into plane text then that’s terrible news for the commercial scripters. Yeah, I fel…

15 years ago
Forum
Reply
RE: How can i release my script for commercial?

No, but I will tell you that you made a spelling error in the comment on line 6, column 18.

15 years ago
Forum
Reply
RE: How can i release my script for commercial?

At the risk of starting up yet another thread on piracy, I did some poking around of my own and discovered that decrypting an MSE scriptfile is truly …

15 years ago
Forum
Reply
RE: Errors accessing dotNet properties

If it is memory corruption you might try sprinkling in calls to the .NET garbage collector to see if you can catch the problem. dnGC = dotnetclass “…

16 years ago
Forum
Reply
RE: dotNetString extent?

You can use a .NET TextRenderer to measure your string. fnt = dotnetobject “System.Drawing.Font” “Courier” 20.0 sz = (dotnetclass “TextRenderer”).Mea…

16 years ago
Forum
Reply
RE: dotNet help needed! How to call this method?

You are certainly welcome, but I will come clean and say that there was a wee bit of self-interest motivating me I’ve been calling LAPACK/BLAST libr…

16 years ago
Forum
Reply
RE: dotNet help needed! How to call this method?

There is a bug in Maxscript. In mxsdotnet/utils.cpp there are two places where multidimensional arrays are incorrectly re-typed as 1D vectors. The t…

16 years ago
Forum
Reply
RE: dotNet help needed! How to call this method?

…I hadn’t forgotten this. Sorry to hear you are still having problems. I will see what the debugger says about the wonky parameters.

16 years ago
Forum
Page 6 / 9