Search   

Friday, February 10, 2012

Support » Support Forum

Register  Login

 Menu  
 
    

 Welcome!  
 


Welcome to the NDO support forum!

kreis.gif Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender.
kreis.gif Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts.
kreis.gif The forum software requires that javascript is enabled.
kreis.gif Please do not insert licence information or licence keys in forum posts.
kreis.gif If you know a good answer to a post of another user, feel free to reply!
kreis.gif The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.

   Print   

      
 NDO Support Forum  
 
SearchForum Home
  NDO-Forum postings in english please, if possible.  Developing with NDO  "Object re...
 "Object reference not set to an instance of an object." when trying to duplicate example from video
 
 11/16/2006 9:02:49 AM
Vutborg
1 posts


"Object reference not set to an instance of an object." when trying to duplicate example from video
 Modified By Vutborg  on 11/16/2006 10:05:03 AM)
Hi NDO

When I try to duplicate the example from your turorial video 1 and i want to receive the employee back from the database, i get an error for the following code:

PersistenceManager pm = new PersistenceManager();

NDOQuery q = new NDOQuery(pm);

List myList = q.Execute();

When using the Watch-window in VS, and typing in "q.Execute()" i get: + q.Execute(); 'q.Execute()' threw an exception of type 'System.NullReferenceException' System.Collections.Generic.List {System.NullReferenceException}

Can anyone help?

/René
 11/21/2006 12:25:47 PM
Mirko
109 posts
5th


Re: "Object reference not set to an instance of an object." when trying to duplicate example from video

Hi René,

the Tutorial application shown in the vidio is part of the NDO distribution (in the subdirectory "Tutorial"). Did you try to run the application from there? Maybe you can see the difference between your code and our code provided in the application.

If you have further questions, please feel free to ask.

Best Regards:
Mirko

 5/4/2007 9:31:46 PM
seanevans
3 posts


Re: "Object reference not set to an instance of an object." when trying to duplicate example from video

Rene,

You must tell NDO the type of object you are querying for:

NDOQuery<Employee> q = new NDOQuery<Employee>(pm);

  NDO-Forum postings in english please, if possible.  Developing with NDO  "Object re...
  SearchSearch  Forum HomeForum Home