TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
bertvanpeteghem
NA
2
0
Problem with events
Nov 24 2005 11:45 AM
Hello, i guess its a pretty basic problem. I try to throw an event from the contstructor of this function... I have done some tutorials on events, and guess I know how they work, but I keep getting a nullReferenceError when running this piece of code : ...... public delegate void MovementEventHandler(); ///
/// Summary description for Beagle. ///
public class Beagle { private int x; private int y; public bool uptodate; public event MovementEventHandler Movement; public Beagle() { new Beagle(0,0); } public Beagle(int x, int y){ this.x = x; this.y = y; // Update world Movement(); } .... } Thanks in advance !
Reply
Answers (
0
)
WinWordControl
How to save Logon Credentials when browsing through different pages of the same site