Ticket #233 (assigned defect)

Opened 9 years ago

Last modified 9 years ago

Weird COBRA INTERNAL ERROR printing event args (Gtk)

Reported by: nevdelap Owned by: nevdelap
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:


@args -pkg:gtk-sharp-2.0

use Gtk

class P

	def main is shared

	def onKeyPressEvent(o, args as KeyPressEventArgs)
		print args.event.key # error caused by this

error: COBRA INTERNAL ERROR / ArgumentException? / An element with the same key already exists in the dictionary.

Change History

Changed 9 years ago by nevdelap

  • priority changed from major to medium

Changed 9 years ago by nevdelap

The workaround is to use sharp


if sharp'args.Event.Key == Gdk.Key.Return'

Changed 9 years ago by Chuck

  • status changed from new to assigned
  • owner set to nevdelap

Your workaround comment does not match the code example in the description. Can you clarify?

Note: See TracTickets for help on using tickets.