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.
...
Hi,
Is there a difference between the terms Entity and Object?
...
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.
...
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.
...
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...
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 ?
...
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...
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.
...
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...
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 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?
...
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 ...
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 ...
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...
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...
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
...
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...
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.
...
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() :)
...
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...