Can we load and unload the files in the run time?

Can we load and unload the files in the run time?

For example, there are four files named 'test1.h & test1.c' and another series 'test2.h & test2.c' (I have attached as an attachment to this post).

test1.h contains the code:

int variable; variable declared as integer

test1.c contains the code:

variable = 1; variable a value assigned

test1.h contains the code:

char * variable. variable declared as string

test1.c contains the code:

variable = "EXAMPLE"; a string that is assigned to variable

So here, in this case can I dynamically load / unload first & second group files so that the same variable "variable" name can be used as an integer and string? And if so, how to do?

Hi pa1majeti,

You cannot simply consider that some code is loaded into memory or not: all code in a compiled application is permanently in memory unless you divide your application into DLLs that you dynamically load if necessary and remove if is no longer necessary.

But as I understand from your description, you're better given the amount of memory occupied by the data (i.e. the contents of the variables) rather than the code. If this is the case, your only option is to allocate memory for variables dynamically and free it after it has been used. Now, even if this option is useful if you are using large networks of data, there is little or no effect on the unique variables.

A final Council, given the huge memory installed on modern computers, are you sure you really need that extra work? I mean, the dynamic allocation of memory involves some additional precautions in programming: check the errors on each function malloc or calloc, check that the pointer is valid before each use, freeing pointers before reassignment in order to avoid memory leaks and so forth, so a balance must always be sought between the memory and the difficulty in programming.

Tags: NI Software

Similar Questions

  • With the help of a button to load and unload the external SWF in AS3?

    How can I use a button to load and unload a sequence of external SWF files, as a Next button and previous?

    I don't know if it will work because apparently you are trying to load a swf AS1/2, but try

    change the line to be...

    _swfTempClip = MovieClip (event.target.content);

    If this does not work, then you will need to create _swfTempClip as a new MovieClip and add the event.target.content to this MovieClip using addChild().

  • Load and unload the swf file

    I am currently using AS2.

    I create a button instance named 'myBtn' and I want it to load the external swf "test2.swf" call all to unload the current swf file named "test1.swf" when you press on / release.

    that fact is I put the following code under mybtn:

    We (Press)

    {

    unloadMovie ("test1.swf");

    loadMovie ("test2.swf", 1);

    }

    the result was that the "test2.swf" was loaded successfully, but the "test1.swf" fail to unload.

    Any help is welcome

    AS2... Scope is your problem. When you are inside the function for delivery you tell the button you used to unload test1.swf of inside of this button (which it is not located in).

    You are probably using the root timeline, so I'll take a bet that it works:

    (press)

    {

    _root.loadMovie ("test2.swf");

    }

    If you want to follow the progress of loading between them, it is a bit more complex.

  • How can I load and process a file of HTML5 with Javascript in the same way as an XML file?

    I keep a journal in local files of the weeklies that I'm converting to HTML5 of XHTML. I want to extract all 'items' on specific themes of these files and display them in different orders. It is possible to load an XHTML file using the loadXMLDoc function described in http://www.w3schools.com/dom/dom_loadxmldoc.asp , but the same function detects a parse error when it reads a file of HTML5. (For example, the parser expects that the tag of the element one empty end with / >). How to persuade 16.0.1 Firefox to use a proper parser?

    A good place to ask for advice on web development is to the 'Web Standards Development/evangelism' MozillaZine forum.

    Aid to this forum are better informed on issues related to web development.

    You must register on MozillaZine forum site to post in this forum.

  • Where can I find and download the file "Windiag.iso" for Windows XP Home Edition?

    Where can I find and download the file "Windiag.ISO" for Windows Xp home edition?  IT TURNS OUT THAT HE MUST FIRST DOWNLOAD AND RUN A FILE NAMED 'MTINST. "EXE", AND THAT IN DOING SO, THE FILE NAMED "WINDIAG. ISO"IS CREATED.

    Hello

    You can check this link:

    http://oca.Microsoft.com/en/windiag.asp

  • Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    • I am running Windows 7 for packs SP 1 or SP 2 does NOT solve my problem since neither one works with Windows 7.  Is there a way to search for this MUI (Multiple User Interface) missing file? The every thing must have himself installed in the first place. I took my mom (she died in June) and my brother on this PC as users so even if they do not use this PC supports multiple users. Maybe if I deleted as a reboot and additional users it will solve my problems. My updates install OK but I can't run at all system restore. It creates a restoration point OK but when I try to sr back to a restore point before I get the error 0x80073AFC topic of the missing MUI file. Then, when I spear SR it is said that he could not and no files have been changed because of the error 0x8000FFFF error, unspecified catastrophic failure and could not retrieve the file several times when system restore is attempted.

      I'm running Windows 7 on a HP Pavilion with browser Firefox 3.6.8 browser Opera 10.60, IE8 and Google Chrome 5.0.375.125 browser browser.

      Can you tell me what I try next? Thnks a lot and sayonara for now the guy-Jack McElwee / keimanzero the Scion of the Anime in Brookhaven PA - USA

      OK I tried everything and nothing works! Only added beginners are updated browser Opera 10.63; IE9 (Beta); Firefox 3.6.12 and Google Chrome 7.0.517.41 and Java 22. Of course like everyone else in the world, I had to uninstall/enable and disable/download again and reinstall new Adobe Flash 10 and 11 of the shock wave and they keep crashing too! Hello 4 keep screwing browsers and now I get connection network problems. I run Comcast doctor and did everything it said to do, but nothing works. Oh and I added 7-Zip and WinZip also. Likewise, they will not work! Help! Thanks - K & K

    keimanzero,

    Comcast of Norton Security Suite version is installed? If Yes, who and perhaps malware is most likely to cause questions you have published, in particular the failure of the restoration of the system.
    First, configure the system to boot - How to solve a problem by performing a boot in Windows Vista or in Windows 7
    NOTE: Start-up mode minimum state all the 3rd party firewalls will be disabled. Open Control Panel > Windows Firewall to make sure that the native firewall of Windows 7 is now on.

    Download and Save the update system (or CheckSUR) tool. You will need to download the specific Version of CheckSUR corresponding to the architecture of the system to Windows 7. If you do not know the architecture of the system, and then click the link that says "Click here to show or hide the instructions step by step with images" under method 2: download the update directly system preparation tool from Microsoft Download Center .
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    Once the download is complete, close all open programs and browsers. Now, run CheckSUR with the system connected to the internet because it will download the .cab for system files. Reboot once CheckSUR is complete.

    Secondly, I suggest that you run the File Checker system while in the same clean boot state.
    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the field search programs and files .
    2. Right click on cmd.exe in the programs of list, and then choose 'run as administrator '.
      If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    3. At the command prompt, enter the following line exactly as written including the space between thec and the/and then press ENTER:
      sfc/scannow

    When the analysis is complete, test to see if the problems facing the system have been resolved.

    If they are not, you will need to contact Norton support for the version of Norton Internet Security Comcast to get help, or just uninstall NIS, run the Norton removal tool (right click Norton_Removal_Tool.exe, choose "Run as Administrator"), reboot and then check to see if the problems are still occurring.

    Expert MowGreen Windows IT Pro - consumer safety

  • why I can't download and save the files to my laptop... it disappears in the air... I have windows vista and ie8... Please help I'm going crazy... this laptop is my tool work... thank you. __

    why I can't download and save the files to my laptop... it disappears in the air... I have windows vista and ie8... Please help I'm going crazy... this laptop is my work tool... Thank you.

    Hello locness2411,

    Have you checked your download folder? Also you can put where you want to save a file to the desktop as, for example. Take a look at these links: http://www.tweaklibrary.com/Software_Applications/Internet-Explorer/27/Set-default-download-path-of-Internet-Explorer/10153/ or http://www.windowsreference.com/internet-explorer/how-to-change-the-default-download-directory-for-internet-explorer/ that can help you in what you want to change. Hope this helps you. Let us know anyway. Make it a great day!

    "And in the end the love you take, is equal to The Love You Make" (The Beatles last song from their latest album, Abbey Road.)

  • I get the error message: 1 when you try to download the creative application of cloud. I tried rerun the installation and use of the cleaning tool. I can not uninstall and reinstall the app because there never have down loaded initially.

    I get the error message: 1 when you try to download the creative application of cloud. I tried rerun the installation and use of the cleaning tool. I can not uninstall and reinstall the app because there never have down loaded initially.

    Try with the solution provided in the link below:

    ERRO 1: Creative cloud cannot install

  • Can I load software from the creative cloud both a Mac and PC that I own?

    Can I load software from the creative cloud both a Mac and PC that I own?  Is this the same annual license costs?

    Yes, you can use applications desktop cloud creative on two computers at once, regardless of the operating system of the individual associated with the composition of the creative cloud.

  • Loading and unloading of the external swf with buttons

    Alright. Here's the deal. I have 7 buttons on my main page, on the left side of the screen. I want the buttons to the external swf on the right to load and unload then when you push a different button. Should I make a table? Do I need a clip vacuum film to load each swf in?

    ///////////////Buttons/////////////////////

    graphics - load the thumbnail scroll bar

    mixed technique - load the thumbnail scroll bar

    photography - load the thumbnail scroll bar

    illustration - charge the miniature scroll bar

    Words - list history of charges

    Contact - contact information of charges

    charges about - bio

    ////////////////////////////////////////////

    Thanks for any help.

    If you are unable to publish for flash player 10, you will need to use the instead of unloadAndStop() unload() method.

  • BlackBerry smartphones, I can't enter Thai language. How can I upgrade and choose the operating system for my BB9900?

    How can I upgrade and choose the operating system for my BB9900? I need thai input but on the site of H3G Italy software download is not all the language version. I don't know from which site to download.

    Hi niranaja

    If your device is running always on OS 7.0 then try 7.1 any Pack OS carrier that also supports Languages.But of Southeast Asia before opening your computer and uninstall any previous packs if installed OS on it. After that, try this:

    1. download and install on your PC a pack OS with any language by carriers

    • (Make sure you download for the same phone model)

    2. download and install the latest version of BlackBerry desktop from here BlackBerry desktop software software

    Then using software office perform your full backup of your device.

    3. search your drive C: Vendor.xml and delete them, there may be one or two vendor.xml (on changing your Pc folders option to show the hidden files/folders ):

    • C:\Program Files (x 86) \Common Files\Research In Motion\AppLoader
    • C:\Users\Windows UserName\AppData\Roaming\Research in Motion\BlackBerry\Loader XML

    4. go into C:\Program Files Research In Motion\AppLoader. (For Vista or Windows 7 64-bit, the path will be C: > Program Files x 86 > common files > Research In Motion > AppLoader) double-click on Loader.exe.

    Upgrade will continue then after Installation of the new OS restore your BlackBerry Desktop backup

    Software.

    Once done open BlackBerry Desktop Software (7.1) > select Applications. > in the section of language and support for entry , select the language to be added to the BlackBerry smartphone (a + will appear next to the language to install) > click apply.

    KB13067 : How to get smart BlackBerry phone language packs.

    So please try it and let us know.

    Prince

    _____________________________________________________________________________

    Click 'Like' If you want to thank someone.

    If problem resolves mark message (s) as a 'Solution', so that others can use.

  • How can I find (and remove) the source of this irritation

    With irritating regularity, a dialog box appears on my screen that says "sh: / usr/bin/lockfile: no such file or directory (127) '."  How can I find and eliminate the source of this thing?

    Please update "SuperDuper" to the current version, or delete it if you don't need.

  • How do I programmatically load and show the façade of a vi but NOT run it?

    Is it possible to load and display the front panel of a vi but NOT run?  I start with the AsynchronousCallAndForget.vi from the example finder and inserted a node invoke with the Open FP method call before the starting node the asynchronous call. The vi that I'm loading has the "Run when opened" unchecked and the menu bar IS visible so I can manually click the run arrow. Thank you!

    Why do you use the asynchronous call? If you simply open the VI reference, then call the FP. Open method, it works very well. You can then call the VI run method which wait until is set to false if you want to execute asynchronously, it is how we did in ye olde days before we have this fangled tricks "Start Asynchronous Call.

  • How can I download and replace the fonts directory in the folder Windows for Vista

    Separated from this thread.

    How can I download and replace the fonts directory in the folder Windows for Vista?

    I think I have a corrupted font file, but I don't know which.

    Thank you

    George Criffield

    Oh sorry, you will need to obtain from another computer Windows Vista or your install disc (if you have one, these instructions are here).  I have just the zip and give you a complete file of fonts, but it's against the license (and technically to the United States law) for them to be distributed.

  • How can I import and export MBOX files in Thunderbird?

    Hi all, how can I import and export MBOX files in Thunderbird?

    I tried to install the add-on "ImportExportTools" but it seems that it is no longer recognized by Thunderbird, not the most recent generation.

    That this is the case, is no longer seems to be any official method of handling the files MBOX via Thunderbird, which is odd, given that Thunderbird itself announces that it is method of storage of email records is also MBOX files. It seems obvious that Thunderbird should natively support a file format import and export it is used internally

    If you know of a solution that does not rely on the conversion of traditionally third party utilities little reliable, please let me know.

    Thank you, KB_IT

    Hi there and thank you. I got it on 45.2.0.

    "" I haven't managed to make it work, but only by the search for available modules and following a request from 'import export tools' the "see all results" that work only then produced a success for the plugin in question and showed a button to install it.

    Installers hosted on the site of the third party do not work, nor their instructions to use the option "install file". work, which led to the creation of this ticket.

    Since then, I was able to do properly installed where it works very well.

    I hope that they are a regular feature. I intend to announce this as a best practice to my organization, in collaboration with Google fish, during the handling of the mbox files in Windows operating system.

    Thanks again, Kevin

Maybe you are looking for