object

Any recommendation for IE 6 / 7 Javascript Memory Inspection tool?

I am looking for an IE 6 / 7 plug-in or something like Firebug_Lite thing that can show the memory usage in runtime, as well as the allocation of memory of each object or variable. Anyone know what tool has this functionality? Thanks. ...

Is there a difference between an Entity and a object?

Hi, Is there a difference between the terms Entity and Object? ...

Saving a TObject to a File

How can one save an Object, in its current state, to a file? So that it can immediately be read and restored with all its variables. ...

Track all object references in C#

Is it possible to list all references of an object, while debugging in Visual Studio. I am using C#. I am looking for something similar to what GC does during garbage collection. ...

Delphi Component Saving

How best could I save this component and all internal variables? Examples of code would be appreciated. TSmall = record fName: string[30]; fAge: integer; fID_Number: string[30]; end; TRec = record ArraySmall: array[1..10] of TSmall; end; TBigComponent = class(TComponent) private fSmallArr: TRe...

Java: Rationale of the Object class not being declared abstract

Why wasn't the java.lang.Object class declared to be abstract ? Surely for an Object to be useful it needs added state or behaviour, an Object class is an abstraction, and as such it should have been declared abstract ... why did they choose not to ? ...

Disposing a form from parent form in C#?

I have a form which will open a new form when one button (form1button) is clicked. And on the child form there will be another button 'form2button'. Now if I click this form2button the new form2 should be disposed. But because the form2 object is created here in form1 class method, I cannot dispose that object in form2 class method (fom2...

Beyond Compare for Object Instances

Does anyone know of a tool or library in .net that can be used to compare object properties and sub-objects like beyond compare does for text files? What I am looking for is a way to show two instances of the same type and show colored coded differences between them and allow the user to copy values between the objects. ...

How to Create Visual Tree of Bindable Dependency Objects in Silverlight?

Let me explain the problem with an example: [ContentProperty("Questions")] public class QuestionForm : FrameworkElement { public QuestionForm() { this.Questions = new Collection<Question>(); } public Collection<Question> Questions { get; set; } } public class Question : DependencyObject { public static readonly DependencyPr...

How to find if object of a class exists.

Hi, On my ListBoxItem MouseEnter event I am creating a new window with the following code. Window w = new Window(); w.Show(); When the mouse leaves the current item I want to close the window. How do I do that? Many Thanks. ...

What's the difference between an object initializer and a constructor?

What are the differences between the two and when would use an "object initializer" over a "constructor" and vice-versa? I'm working with C#, if that matters. Also, is the object initializer method specific to C# or .NET? ...

Is Serialization reliable for object size estimation?

Hi, I use serialization, in order to estimate the amount of memory used for an object. I already read this, and this. So I know that it may be better to use a profiler or sizeof (for value types). I would like to know, what is the exact difference between the serialized object and the object in memory ? In what measure is serialization ...

Getting Object Functionallity out of C++ code in C#

I have have a function in wrote in C++ that calls some functions in a old lib. This function creates some memory makes the calls and destroys the memory. To optimize this I would create an object that would keep the memory allocated until the object was destroyed. However I'm going to be calling this function from C# and don't believe I ...

the get() function for java hashmaps

Hi, I've declared the following hashmap: HashMap<Integer, Hive> hives Where Hive is an object. If I call "hives.get(2)" will it return a copy of the object Hive at that location or a reference to it? My goal is to modify the Hive object at that location. If it returns the reference, I can just modify the returned hive and be don...

Accessing a member of an object within a class in PHP

My code: class Address{ public var $Street; } class Employee{ public var $ID: public var $Name: public var $Address; } $myEmployee = new Employee(); $myEmployee->Address = new Address(); How do I access the the street now? $street = $myEmployee->$Address->Street; $street = $myEmployee->Address->Street; Both give me...

What is Object serialisation?(Java)

Hi In not so technical way, what is object serialization and the purpose of it? When should it be used? (any analogies exampls welcome) Thank You ...

Casting a Object to HashMap

Hello there, I'm having trouble working out how to count instances of Values in a HashMap. I have seen that there is methods attached to the Object class that look as if they are able to help me, so I've tried to cast those in to work but I must be doing something wrong somewhere. If there's an easier way, I haven't found it yet. NB: L...

Class Diagram or Object Diagram for Zend framework Gdata

I am looking for a Class Diagram for Zend Gdata. Zend_Gdata_Spreadsheets_SpreadsheetEntry object I would like to know if there is a Class Diagram or is it called an Object Diagram, for this is. ...

Call a function from an object : object.function()

How can I call a function from an object in javascript, like for example in jquery you call myDiv.html() to get the html of that div. So what I want is this to work : function bar(){ return this.html(); } alert($('#foo').bar()); this is a simplified example, so please don't say : just do $('#foo').html() :) ...

Java variable aliasing workaround

I've recently moved to Java, but I've had some problems with variable aliasing. I've searched everywhere, but I can't seem to find the proper way to copy the contents of one object to another object without just referencing to the same object. Does anyone have any suggestions? Edit: What if it is an int that I am having aliasing problem...