public IntPtr CreateList(out UIntPtr length)
{
IntPtr exception = IntPtr.Zero;
IntPtr result;
#if ANYCPU
if (NativeLibrary.Is64Bit)
#endif
#if WIN64 || ANYCPU
result = NativeMethods.X64.MagickFormatInfo_CreateList(out length, out exception);
#endif
#if ANYCPU
else
#endif
#if !WIN64 || ANYCPU
result = NativeMethods.X86.MagickFormatInfo_CreateList(out length, out exception);
#endif
MagickException magickException = MagickExceptionHelper.Create(exception);
if (MagickExceptionHelper.IsError(magickException))
{
if (result != IntPtr.Zero)
DisposeList(result, (int)length);
throw magickException;
}
RaiseWarning(magickException);
return result;
}
public static void DisposeList(IntPtr instance, int length)