answersLogoWhite

0

It is poor programming practice resulting in undefined behaviour. Files should never store memory addresses (real or virtual), since there's no guarantee a valid object will always reside at the same location in memory, unless the programmer can be absolutely certain the object will outlive the file (such as when referring to active objects in memory via a temporary file).

To embed an object in a file, the object must be stored in an independent file. The file in which the object is embedded simply links to the object's file. In this way, whenever the object is updated (and saved), all files in which it is embedded will also be updated.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between linking and embedding?

"Linking" refers to providing a "reference" to the source data; if the source is deleted, the link no longer functions; many different types of files, programs, and programming interfaces refer to displaying externally located data as linking. Linking is advantageous when the data might later change and the program or file that contains the link would benefit from having the latest version of the data. "Embedding" has a slightly different context depending on the context that you are using it. If you are referring to a file (such as a Flash file, Microsoft executable file, and so on), embedding refers to storing the data directly within the other data type. An executable can store Icon files, for example, which alter their presentation on the Desktop or Start Menu by showing an identifying image so users can tell programs apart visually. Embedding in a document file depends on the type of document file in question. Some document files store a copy of the data in the file, while other document formats simply imply that a plugin program is embedded into the document's data. Finally, applications can embed other applications within them during execution. For example, a program could be written to embed an Internet Explorer web viewer into a larger program. When embedding refers to "storing a copy", the benefit is that the source file can be deleted without affecting this dependent file. The disadvantage, of course, is that updates to the source data require updating the dependent file through whatever means available (applications have to be recompiled, documents have to be edited, etc). When embedding refers to "running a copy of a program within another program", there are many advantages: less code has to be used each time a component is reused, the component can be upgraded independently of the main program, and a component can crash without crashing the entire application (possibly including recovering data from the failed component). The disadvantage of embedding is, of course, memory usage will be higher than having a single, unified program.


What is object file?

In computer science, an object file is an organized collection of separate, named sequences of machine code.


What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo


Why program consists more than one object file in c?

why does a program consists of more than one object file in c++


Which method of object output streme class can be used to write the cotents of an object to a file?

write object

Related Questions

Which type of object is stored only in its source file?

embedded object


Why embedded object documents requires more size than linked object?

Because a linked object is created and stored in a separate source file and then it is linked to the destination file, while an embedded object is created in a separate source file but then it is inserted into the destination file , becoming the part of that file.


Why embedded object document requires more size than linked object?

Because a linked object is created and stored in a separate source file and then it is linked to the destination file, while an embedded object is created in a separate source file but then it is inserted into the destination file , becoming the part of that file.


What type of object becomes part of the PowerPoint file?

embedded


Can A file contain files directories and folders?

A file cannot (in general) contain other files or folders in the traditional sense. A zip or other archive file can contain other files or folders and a document file can have a file in it as an embedded object, but these are special applications.


How do you trace a downloaded file back to its origin address?

To trace a downloaded file back to its origin address, you can start by checking the file's properties or metadata, which may contain information about the source URL or host. Additionally, examining the browser's download history can provide details about where the file was downloaded from. If the file is an executable or contains embedded metadata, tools like file analysis software can help extract further information. Lastly, if the file was downloaded through a specific application, reviewing its logs may also reveal the source address.


How do you paste an embedded file into movie maker?

You can't paste embedded files into Windows Movie Maker.


What is the difference between linking and embedding?

"Linking" refers to providing a "reference" to the source data; if the source is deleted, the link no longer functions; many different types of files, programs, and programming interfaces refer to displaying externally located data as linking. Linking is advantageous when the data might later change and the program or file that contains the link would benefit from having the latest version of the data. "Embedding" has a slightly different context depending on the context that you are using it. If you are referring to a file (such as a Flash file, Microsoft executable file, and so on), embedding refers to storing the data directly within the other data type. An executable can store Icon files, for example, which alter their presentation on the Desktop or Start Menu by showing an identifying image so users can tell programs apart visually. Embedding in a document file depends on the type of document file in question. Some document files store a copy of the data in the file, while other document formats simply imply that a plugin program is embedded into the document's data. Finally, applications can embed other applications within them during execution. For example, a program could be written to embed an Internet Explorer web viewer into a larger program. When embedding refers to "storing a copy", the benefit is that the source file can be deleted without affecting this dependent file. The disadvantage, of course, is that updates to the source data require updating the dependent file through whatever means available (applications have to be recompiled, documents have to be edited, etc). When embedding refers to "running a copy of a program within another program", there are many advantages: less code has to be used each time a component is reused, the component can be upgraded independently of the main program, and a component can crash without crashing the entire application (possibly including recovering data from the failed component). The disadvantage of embedding is, of course, memory usage will be higher than having a single, unified program.


How do you embed a file from another program?

To embed a file from another program, first, open the document or file where you want the embedding to occur. Use the "Insert" menu or option in your software, then select "Object" or "File" depending on the program. Choose "Create from File," browse to locate the desired file, and select "Embed" or "Link" as needed. Finally, confirm the selection, and the file will be embedded within your document.


A webpage is a text file of tags and embedded text?

HTML


How do you install games for gfive ht8800?

Download the jar file. Put it on a web site. Type the web address that links to the jar file into your phone's web browser it should download.


How can you call a flash file in JavaScript?

what you could do is make the file an HTML file and have embedded Javascript in it. i am not sure how to put a flash file into Javascript though.