Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 542605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:27:52+00:00 2026-05-13T10:27:52+00:00

This might be a dumb question. I think I already know the answer, just

  • 0

This might be a dumb question. I think I already know the answer, just clarify. If you declare a object in varible1 and then pass the value into varible2. If you decide to null varible2 would that kill just the reference or the object itself as well. I want to say no, but then again, everything you do to the reference it self, also affects the space in memory.

these are the 2 varibles in my class.

private var objects:Array;
private var viewableObjects:Array;

above are class varibles. Later on in my code I add an object to the objects array

objects[0][4] = new Enemy1();

When i trace i get the following

[object Enemy1]

I then add it to viewable objects array

viewableObjects.push(objects[0]);

next I remove it. this is later on down the lines. I am looping through the code that is my you see a “i” in the first element.

viewableObjects[i][4] = null;

and when I trace the same first varible “objects[0][4]”… it shows

null
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:27:52+00:00Added an answer on May 13, 2026 at 10:27 am

    Setting a reference to null does not affect the object, unless it’s the last reference to that object (in which case it makes it eligible for garbage collection)

    You might want to read up some more on how references work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be a dumb question but I'm just not sure about the answer.
I know you might think this is a duplicate or a dumb question. But
Ok, this might just be a dumb question, but I was wondering if Bluetooth
This might sound very dumb question but I am just confused. I am quite
I know this might be a dumb question. I'm trying to use this xml
So this might be a dumb question but I don't know what to ask
I know this might sound like a dumb question, but I have looked every
This might be a dumb question, but I'd love to know if there was
This might be a dumb question but I have not find the answer when
This might be a dumb question. But does ADO.net support updating to a database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.