Questions tagged [object-reference]

An Object reference is a pointer to an object stored in memory. The main difference is that the object was previously created (via a new operator, for instance) and its reference is kept via an additional variable, that is, its object reference.

An Object reference is a pointer to an object stored in memory. The main difference is that the object was previously created (via a new operator, for instance) and its reference is kept via an additional variable, that is, its object reference.

More Info

325 questions
0
votes
2 answers

Exception in Progress Bar-WPF

Iam using a Progress bar to show the progress of loading features, ini WPF. The xaml code looks like this,
ognale88
  • 169
  • 3
  • 7
  • 19
0
votes
2 answers

Make an object reference of an existing Literal in the aspx

How can I make an object reference of a Literal that I have declared in the aspx page. Now I use it as ltlContents.Text = ..... but I need to make a reference of that ltlContents so I can use it in a static method the same way I use it with its…
Syspect
  • 921
  • 7
  • 22
  • 50
0
votes
2 answers

How to get the Object Reference having the hashcode or other Unique String in Java

this is my issue. Im storing Data into a database table which has a column where i store the hashcode (or can be some other Unique String such as an ID because the JVM can re-locate the objects, changing the hashcode). But once i get that String i…
GabrielBB
  • 2,479
  • 1
  • 35
  • 49
0
votes
1 answer

Object reference not set to an instance of an object MVC

this is my models: public class Ressource { [Key] public int RessourceId { get; set; } public string TitreR { get; set; } public string Link { get; set; } public string Type { get; set; } public string Desc { get; set; } …
caj
  • 2,841
  • 3
  • 18
  • 15
0
votes
1 answer

TypeError: Error #1009: Cannot access a property or method of a null object reference at pizzaBaking/doRESTART()

I have been working in this error for days, i keep searching and asking for help, (including reading from this site as well). It is basically involved a lot of external actionscript. Every time i finish the interactive and i want to go back to…
Vivorico
  • 13
  • 6
0
votes
1 answer

Foreach count of model properties in razor page returning incorrect value

I have a model called Video that has a series of attached feedback comments and feedback comment replies. I have created the following loops within my View to return details of the feedback comments and the associated feedback comment replies but…
Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
2 answers

counting table rows in mvc view

I am counting table rows in MVC view. The below code was counting from a linked table but has now stoped giving me the following error: Object reference not set to an instance of an object. Has anyone any idea as to why this would…
user2470369
  • 167
  • 1
  • 3
  • 11
0
votes
1 answer

'Activate Features': Object reference not set to an instance of an object

I have the following activation code: public override void FeatureActivated(SPFeatureReceiverProperties properties) { // Create a new list and populate it. using (SPWeb web = properties.Feature.Parent as SPWeb) { …
0
votes
1 answer

HTML parsing with HtmlAgilityPack in Windows Store App

i'm parsing HTML code to get Image Link in a "Windows Store Application" i'm Using Html Agility Pack ! Here The Code : async void LoidContent() { foreach (var feedItem in feedData.Items) { …
0
votes
0 answers

PHP Service Function Call Error: Object reference not set to an instance of an object

I'm having an annoying difficulty using a webservice written in .Net. Wsdl can be found: http://services.odeontours.com.tr/OdeonWebService.asmx?wsdl I want to call CategoryList function and its service description can be found here I believe it…
DonkeyKong
  • 808
  • 1
  • 10
  • 24
0
votes
1 answer

soap call parameters php

I have a question about php and soap calls. I have to call a soap function with two parameters: sessionId and Targa First I prepared my paramArray like this: $targaParam = array( 'sessionId' => $session, 'Targa' => 'EG031NX' ); There…
andyts93
  • 337
  • 9
  • 24
0
votes
2 answers

C# : Exception Handling - Locating the error

I have this code: private void btnNext_Click(object sender, RoutedEventArgs e){ try { // Lots of codes in here } catch (Exception ex) { System.Windows.MessageBox.Show(ex.Message + Environment.NewLine +…
Butters
  • 947
  • 5
  • 16
  • 25
0
votes
2 answers

Passing Form Type to a method returns null reference?

I have a method which is something like this: public void Report(Form form, string[] textboxes, string[] patientdetails) { try { int i = 0; foreach (string textbox in textboxes) { …
Ammar Bashir
  • 43
  • 1
  • 9
0
votes
5 answers

How to create a object reference in C#?

I recently starting creating my own classes and I decided to create a simpel one, but i ran into 1 problem. here's whats going on: In my Form1 I have a SqlCeConnection sqlCEconn = new SqlCeConnection(@"Data Source = C:\Dropbox\Visual\Database test2…
Mikkel Eriksen
  • 69
  • 3
  • 15
0
votes
2 answers

Double dispatch in Java

I am not sure if i have wrong idea about double dispatch. But this is what i thought: class A{ void testA( B obj ){ System.out.println( "A-Parent" ); obj.testB(); } } class AChild extends A{ void testA( B obj ){ …
broun
  • 2,483
  • 5
  • 40
  • 55