Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling vtkParametricFunction from kitware.VTK #2

Open
SabariSankar opened this issue Aug 24, 2015 · 0 comments
Open

Calling vtkParametricFunction from kitware.VTK #2

SabariSankar opened this issue Aug 24, 2015 · 0 comments

Comments

@SabariSankar
Copy link

Hi All,

I need to draw a nurb curve using vtkParametricFunction in c#

I created new class for draw a nurb curve by inheriting vtkParametricFunction .

Initially create the constructor I am facing issues mentioned below ::

i)An unhandled exception of type 'System.AccessViolationException' occurred in modeling.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Code below :

public wrapperparametricfunction()
: base(IntPtr.Zero, false, false)
{
uint mteStatus = 0;
uint maxValue = uint.MaxValue;
uint rawRefCount = 0;

// error occured in below function in c#
IntPtr rawCppThis = vtkParametricFunction_NewInstance_26(CppThis, ref mteStatus, ref maxValue, ref rawRefCount);
base.SetCppThis(rawCppThis, true, (mteStatus != 0) && (rawRefCount >= 2));
}

Please do the needful to proceed further.
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant