You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i. version of lib3mf: 2.2.0
ii. operating system: Windows 10
iii. what did you do:
Compiled and ran the attached project:
classThreeMfTest{publicstaticvoidMain(){CModelmodel=Wrapper.CreateModel();CColorGroupcolorGroupTest=model.AddColorGroup();sColorredTest=Wrapper.RGBAToColor(255,0,0,255);uintidRedTest=colorGroupTest.AddColor(redTest);// throws System.AccessViolationException:// HResult = 0x80004003// Attempted to read or write protected memory. This is often an indication that other memory is corrupt.}}
iv. expected:
I expected the code to not throw an exception
v.
It throws an exception indicating that memory has probably been corrupted.
I shall attach a full solution .sln etc.. so the fault can be reproduced.
The text was updated successfully, but these errors were encountered:
Having the exact same problem with version 2.2.0 (and older versions as well e.g. 2.1.1, 2.0.1 & 2.1.0).
Problem does not only occur with adding colors, it also occurs once you add a material e.g.
CModel rootModel= Wrapper.CreateModel();
var baseMatGroup = rootModel.AddBaseMaterialGroup();
var darkBlue = Lib3MF.Wrapper.RGBAToColor(20, 20, 90, 255);
baseMatGroup.AddMaterial("material1", darkBlue); // ---> throws the same exception 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Any idea how to solve this or any Work Around to get the colors working on C# ?
i. version of lib3mf: 2.2.0
ii. operating system: Windows 10
iii. what did you do:
Compiled and ran the attached project:
iv. expected:
I expected the code to not throw an exception
v.
It throws an exception indicating that memory has probably been corrupted.
I shall attach a full solution .sln etc.. so the fault can be reproduced.
The text was updated successfully, but these errors were encountered: