Hi,

 

I have a textfield, a slider and a checkbox. The textfield and slider
are connected through bindings using Model Key Path. That works fine,
but when I change the value (other than the initial one)and then click
the checkbox I get the following error :

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object

  at (wrapper unknown) int:PtrToStructure (intptr,object)

  at (wrapper managed-to-native)
System.Runtime.InteropServices.Marshal:PtrToStructure(intptr,System.Type
) 

at
Monobjc.Dynamic.Proxies.Test.Mac.ApplicationController.ImportMembers(Tes
t.Mac.ApplicationController instance) [0x00000]

  at
Monobjc.Dynamic.Proxies.Test.Mac.ApplicationController.CheckClicked(IntP
tr receiver, IntPtr selector) [0x00000]

  at (wrapper
native-to-managed)Monobjc.Dynamic.Proxies.Test.Mac.ApplicationController
:CheckClicked(intptr,intptr)

  at (wrapper managed-to-native) 503BA7BB:pinvoke (intptr,intptr)

  at 503BA7BB.objc_msgSend (IntPtr receiver, IntPtr selector,
System.Object[] parameters) [0x00000]

  at
Monobjc.Bridge.Generators.DynamicMessagingGenerator.SendMessage(System.S
tring message, IntPtr receiver, IntPtr selector, System.Object[]
parameters) 0x00000]

  at Monobjc.ObjectiveCRuntime.SendMessage (IManagedWrapper receiver,
System.String selector, System.Object[] parameters) [0x00000]

  at Monobjc.Cocoa.NSApplication.Run () [0x00000]

  at Monobjc.Cocoa.NSApplication.RunApplication () [0x00000]

  at Test.Mac.Program.Main (System.String[] args) [0x00000]

 

What is causing this problem ?

 

Br,

 

Mario

Reply via email to