Go to Post Overpowered? You only took out half the building... Knock the rest down then get back to me. - sodizzle [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2015, 17:00
jagow100's Avatar
jagow100 jagow100 is offline
Registered User
FRC #3539 (Byting Bulldogs)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Romeo, Michigan
Posts: 13
jagow100 is an unknown quantity at this point
Smart Dashboard Preferences Issue

We have found that when you follow the code here on Screensteps: http://wpilib.screenstepslive.com/s/...smartdashboard you get a null pointer exception. When you initialize the Preference object, you receive a not visible error, we're assuming this is because the constructor for preferences is private. How do we get this to work?
__________________
3539 Programming Lead
The Programming Lizard
  #2   Spotlight this post!  
Unread 16-02-2015, 21:49
nandeeka's Avatar
nandeeka nandeeka is offline
Registered User
FRC #1868
Team Role: Programmer
 
Join Date: May 2014
Rookie Year: 2013
Location: United States
Posts: 53
nandeeka is on a distinguished road
Re: Smart Dashboard Preferences Issue

You need a line like:

Code:
Preferences* prefs = Preferences::GetInstance();
or

Code:
Preferences prefs = Preferences.getInstance();
depending on the language.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi