Questions tagged [instances]

An instance is a specific realization of any object.

516 questions
0
votes
1 answer

jQuery Instances Overwriting Eachother

I have the above code which runs and changes icons to loading icons and then to other icons if its successful. Anyway, it works absolutely fine on a single instance; however, the moment I click two (or more) for example, it will leave the first…
SupaMonkey
  • 876
  • 2
  • 9
  • 25
0
votes
2 answers

c# WinForms accessing instance from another class

I'm facing this problem (i'll make it short and easy) In form1 i need to create an instance of Login form and be able to access it in the class abc and use it's(login's) method.However, it appears to be inaccessible. I hope i said all the relevant…
Releis
  • 27
  • 1
  • 5
0
votes
2 answers

Save state for onPause and onResume

I'm even not sure I've written the title correctly, because this is the first time I feel I have to cope with this methods. In onCreate(), I make a notification with default sound printing a string. Then, I check to see if I get another String. If…
azizbekian
  • 60,783
  • 13
  • 169
  • 249
0
votes
3 answers

AS3 remove all instances of an object?

I have a game with in AS3 with a document class and a custom class which is attached to a movieclip in my .fla. Instances of that object are made multiple times/second. I want to delete those instances when, let's say, there are 100 of them.…
svdotbe
  • 168
  • 1
  • 3
  • 16
0
votes
2 answers

Add variable to array/list without instancing

I'm creating a guitar tab program. You select notes (GameObject), type a chord name (string), then press a button to add the "Chord" to a list. The Chord class is just a String and a list of GameObjects. I use currentChord to hold the current…
st4rdog
  • 93
  • 1
  • 6
0
votes
1 answer

NtQueryInformationProcess seems to return wrong command line

I am using NtQueryInformationProcess() to retrieve the command line of another process (via the RTL_USER_PROCESS_PARAMETERS in the PEB returned by NtQueryInformationProcess()) on Windows 7. This generally works fine, but when multiple instances of…
kassiopeia
  • 615
  • 1
  • 9
  • 23
0
votes
1 answer

Show "All Instances" missing in eclipse debug view

few days ago, when I was debugging an Android project under eclipse I've found some great functionality: "All instances..." and "Instance count". I wanted to share my findings with rest of my colleagues, but none of them had this functionality in…
kajman
  • 1,066
  • 11
  • 24
0
votes
1 answer

Storing and Retrieving Control Values Across Multiple Class Instances C#

I'm not seeking an answer but rather ideas and suggestions for creating a better solution. I'm even looking for perhaps a reference to some fundamental Object Oriented Design theory as I feel this must be a common scenario, yet I don't know how to…
Doug
  • 41
  • 9
0
votes
1 answer

New Relic API - difference between instances and hosts?

Referring to https://github.com/newrelic/newrelic_api for the New Relic API, I was wondering what was the difference between hosts and instances. Basically, I get what an application is and what a server is (obviously). I would assume instances are…
user510159
  • 1,379
  • 14
  • 26
-1
votes
2 answers

Regex for matching ALL instances of a specific string in between specific tags

I'm trying to match/replace all instances of the "br" tag, but only when they're surrounded by the {c} {/c} delimiters. This is the regex pattern I have right now: /{c}.*(
).*{\/c}/mgsU The problem with what I have currently is that it only…
-1
votes
3 answers

How many instances of type will be created

I have two projects say BusinessLogic (BL) and DataAccess (DL). Now I am passing type as parameter from controller to BL and to DL in the end. Below is the code. Controller public ActionResult SomeAction (SomeClassForTable table) { bool result =…
DhavalR
  • 1,409
  • 3
  • 29
  • 57
-1
votes
4 answers

How to write an ArrayList when instantiating?

Probably I'm being blind or something, but I can't seem to figure out how to do the following: I have a Class called Shopping with a constructor like this: Shopping shopping = new Shopping(String name, ArrayList shops) The class Shop is…
Luís Lira
  • 33
  • 2
-1
votes
1 answer

How to share an object between two classes

I have two classes, Foo and Bar. They both contain a pointer to a Baz object. I want the Baz pointers in both an instance of Foo and an Instance of Bar to point to the same Baz object. A Baz object has a member called name with getter and setter…
Blue7
  • 1,750
  • 4
  • 31
  • 55
-1
votes
2 answers

Using an instance created in the main method of another Class

I am just starting with Java and ran into a problem: Let's say I wanna have 3 classes, one we call "Cars" one is "Database" and one is a GUI to do stuff later on (Jframe-Form, Swing): public class Cars { int nummer; String name; //lets…
Elias
  • 7
  • 2
-1
votes
1 answer

Invoking annotated methods without creating instances for all the annotated methods

I have two annotations in a class say @annotation_1 and @annotation_2 which means that I have created two instances. ---Please correct this statement if there is any error! Now, I find all the methods that are annotated with @annotation_1 or…
nt fury
  • 11
  • 5