Posted by: | EPHERE | |
Data created: | 12 July 2009 |
Another update for the 3dsmax .NET framework:- Fixed crash when running on 64-bit Max and using 3dsmax delegates. This is actually a .NET CLR bug and, according Microsoft, it will be patched in the next 'service release' of .NET. For now, however, all custom marshaling has been removed and wrapper types in delegates replaced by System.IntPtr(s).Once you receive an IntPtr handle, cast it to proper Max object using the Global.Type.Marshal(...) method (ex. INotifyInfo info = Global.NotifyInfo.Marshal( infoHandle );- All type interfaces (except for generic ones such as Tab<...>) are now derived from IDisposable, so you can make objects release their native memory resources at any time.For example: using( IPoint3 pt = Global.Point3() ){ ...some code... } will release 'pt' memory as soon as it leaves the using scope.- IControl.GetValue and SetValue are now properly implemented. Passed object type will be checked (it can be float, IPoint3, IScaleValue etc.) and assigned. Marsel Khadiyev (Software Developer, EPHERE Inc.) |