Wiki

Ticket #233 (assigned defect)

Opened 7 years ago

Last modified 7 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:

Description

@args -pkg:gtk-sharp-2.0

use Gtk

class P

	def main is shared
		pass

	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 7 years ago by nevdelap

  • priority changed from major to medium

Changed 7 years ago by nevdelap

The workaround is to use sharp

eg:

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

Changed 7 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.