[Mono-list] Re: NullReferenceExceptions with gecko-sharp

Christopher Nehren apeiron+usenet@coitusmentis.info
Sun, 24 Apr 2005 03:54:23 +0000 (UTC)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2005-04-23, Christopher Nehren scribbled these curious markings:
> The problem is that whenever I try to access a URL via the Activated
> signal of my Entry or the Clicked signal of my Back / Forward buttons
> (which directly call the .GoBack / .GoForward methods of my WebControl
> object) the process crashes with a NullReferenceException on the line
> of my Application.Run() call.

Hmm, turns out that the Entry and WebControl objects were null at the
time the event was fired. Moving their constructors to the top of the
GUI method solved the problem.

Best Regards,
Christopher Nehren
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCaxmVk/lo7zvzJioRAg9QAJ9tdpST95b7huMPWBmNZlaDrQQNVQCcCzHK
Ws179ibgWpUhIUUoCeM9YvY=
=0s+X
-----END PGP SIGNATURE-----

-- 
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong questions, you get answers like "42" and "God".
Unix is user friendly. However, it isn't idiot friendly.