Browse Source

Avoid initializing the vtable when creating an object, the c++ constructor already does it, an

d the value we were trying to set was incorrect for qt.
pull/1/head
Zoltan Varga 15 years ago committed by Andreia Gaita
parent
commit
ff011a4561
  1. 5
      src/Mono.VisualC.Interop/ABI/CppAbi.cs

5
src/Mono.VisualC.Interop/ABI/CppAbi.cs

@ -430,7 +430,10 @@ namespace Mono.VisualC.Interop.ABI { @@ -430,7 +430,10 @@ namespace Mono.VisualC.Interop.ABI {
LocalBuilder nativePtr)
{
EmitCallNative (il, nativeMethod, false, parameterTypes, nativePtr);
EmitInitVTable (il, nativePtr);
//
// FIXME: Why is this needed ? When using the itanium abi, the c++ ctor
// initalizes it. Maybe msvc needs it ?
//EmitInitVTable (il, nativePtr);
}
protected virtual void EmitDestruct (ILGenerator il, MethodInfo nativeMethod, Type [] parameterTypes,

Loading…
Cancel
Save