Creating first ever screen : NullReferenceException

Post here if you are having difficulty getting OSA up and running
Message
Author
tommysharp
Posts: 55
Joined: Thu Jun 12, 2014 1:02 pm

Re: Creating first ever screen : NullReferenceException

#21 Post by tommysharp » Thu Jul 03, 2014 2:10 pm

I have reverted back to the original one, not yours and it's date is 21st July 2013 12:08pm

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: Creating first ever screen : NullReferenceException

#22 Post by Automate » Thu Jul 03, 2014 2:42 pm

Was the newer one giving you problems?

tommysharp
Posts: 55
Joined: Thu Jun 12, 2014 1:02 pm

Re: Creating first ever screen : NullReferenceException

#23 Post by tommysharp » Thu Jul 03, 2014 8:47 pm

Still no luck with the latest DLL file...
Attachments
This is the resulting object that I have to delete before my screen works again....
This is the resulting object that I have to delete before my screen works again....
2014-07-04_164330.jpg (133.23 KiB) Viewed 2007 times
2014-07-04_164156.jpg
2014-07-04_164156.jpg (39.64 KiB) Viewed 2007 times
2014-07-04_164142.jpg
2014-07-04_164142.jpg (20.83 KiB) Viewed 2007 times

tommysharp
Posts: 55
Joined: Thu Jun 12, 2014 1:02 pm

Re: Creating first ever screen : NullReferenceException

#24 Post by tommysharp » Thu Jul 03, 2014 8:57 pm

Poked around and changed the State 1 name and State 2 name from OFF and ON to OPEN and CLOSED and now my screen works okay....
Attachments
2014-07-04_165551.jpg
2014-07-04_165551.jpg (25.14 KiB) Viewed 2007 times

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: Creating first ever screen : NullReferenceException

#25 Post by Automate » Fri Jul 04, 2014 3:29 am

The file I posted in this topic is the same as the one in the linked topic. I just posted it again for convenience.

I have seen cases where Windows recognizes that a file is not the same version as the one from the OSA Installer and so it overwrites it with the original file.

That's why I'm asking the file date/time of C:\Program Files\OSA\OSAE.UI.Controls.dll

Vaughn
Site Admin
Posts: 1432
Joined: Thu May 13, 2010 2:17 pm

Re: Creating first ever screen : NullReferenceException

#26 Post by Vaughn » Fri Jul 04, 2014 5:47 am

There has been a little bouncing back and forth on the Name/Label thing. The System should match on either in most places, definitely at the DB & API level, but apps like Screens may hard code against one or the other. OPENED/CLOSED should be the Label and the labels should be displayed, but pretty much every function should work with or at least accept the State Name. I will try to pay attention to that as I am working on the Screens app. But whatever the Dropdown boxes offer you should work because that is whatever one else is using for every State Image... that has never changed. Did you edit the object type by chance? Did you make the State Name OPENED/CLOSED? If so, I recommend using ON/OFF for the Name and Opened/Closed for the Labels...


Vaughn

tommysharp
Posts: 55
Joined: Thu Jun 12, 2014 1:02 pm

Re: Creating first ever screen : NullReferenceException

#27 Post by tommysharp » Fri Jul 04, 2014 11:44 am

Hey Vaughn, you are beginning to speak too technical for my current OSA expertise ;-)

I didn't do anything custom except try add a control as per my screenshots above.

Sent from my Nexus 5 using Tapatalk

User avatar
kherron
Posts: 646
Joined: Mon Dec 05, 2011 10:44 am
Location: Jacksonville, Fl.
Contact:

Re: Creating first ever screen : NullReferenceException

#28 Post by kherron » Fri Jul 04, 2014 12:56 pm

That's why I'm asking the file date/time of C:\Program Files\OSA\OSAE.UI.Controls.dll
Did you ever find this information?

tommysharp
Posts: 55
Joined: Thu Jun 12, 2014 1:02 pm

Re: Creating first ever screen : NullReferenceException

#29 Post by tommysharp » Fri Jul 04, 2014 2:43 pm

tommysharp wrote:I have reverted back to the original one, not yours and it's date is 21st July 2013 12:08pm
Yeah this is what the date is of the DLL that got installed as part of 043.

Sent from my Nexus 5 using Tapatalk

Vaughn
Site Admin
Posts: 1432
Joined: Thu May 13, 2010 2:17 pm

Re: Creating first ever screen : NullReferenceException

#30 Post by Vaughn » Fri Jul 04, 2014 6:03 pm

I am curious what Object Type that Alarm Zone 2 - Lounge is. There shouldn't be types used OPEN/CLOSED for the State Name.

Post Reply