Why is the .ini file deleted by iteself?

Hi all,
I am working on a large program. It is really large and messy, but it works. The problem is sometimes it deletes .ini file by itself. This program uses a .ini file to keep all kinds of configurations. Sometimes when the program exits, it causes the computer to reboot -- even worse, at same time it deletes the .ini file......who can tell me the possible reasons?
Thanks!

Hi steady,
Does your program use the LabVIEW configuration file VIs to maintain its own INI file? In LabVIEW 7.1, I think the Close Config Data VI used to write the data back to the INI file by default even when nothing changed. Try setting "write configuration data?" to false when you call that VI.
Do you have any more information about the reboot? It may be a system crash caused by a device driver. Why Does My Computer Automatically Reboot For No Reason? explains how to obtain more information about system crashes.
Brad
Brad Keryan
NI R&D

Similar Messages

  • Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration: Agentry Error

    Hello Experts,
    I follow the flightbooking tutorial to create a Material application to get material list. I  can start the agentry server but when I connect to SAP server and get data, I face below issue
    Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
    I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
    My javaBE
    [HOST]
    server=be1.vdc.csc.com
    APPNAME=ZCH_MATERIALLIST
    [CLIENT_NUM]
    CLIENT=800
    [SYSTEM_NUM]
    SYSNUM=01
    [LOGON_METHOD]
    ; USER_AUTH if standard UID/Password authentication is used
    ; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
    ; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
    ;   (load balancing) is used
    LOGON_METHOD=USER_AUTH
    [GLOBAL_LOGON]
    ; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
    ; uses a pool of connections to the SAP backend all utilizing a single
    ;    UID/password
    UID=
    UPASSWORD=
    SHAREDCONNECTION=0
    GET_PERSONNEL_INFO=
    [SERVICE_LOGON]
    ENABLED=true
    UID=hngu3
    UPASSWORD=xxxxxxx
    UPASSWORDENCODED=false
    [GROUP_LOGON]
    ; referenced when LOGON_METHOD=USER_AUTH_GROUP
    ; individual user authentication using an SAP Message Server which distributes
    ; client connections among a "group" of SAP application servers based on load
    ; balancing criteria
    ; host name or IP address of SAP Message Server
    MESSAGE_SERVER=
    GROUP_NAME=
    SYSTEM_ID=
    CLIENT=
    [LANGUAGE]
    LANG=EN
    [LOGGING]
    Level=4
    [REQUIRED_BAPI_WRAPPER]
    com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
    com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
    com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
    com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
    com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
    com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
    com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
    com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
    com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
    com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
    com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
    com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
    com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
    com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
    com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
    com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
    com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
    com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
    com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
    com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
    com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT

    Hi Tahir, please help me check the log below
    Agentry Runtime Worker Thread###throwExceptionToClient::begin |
    Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
    Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER),  |
    Agentry Runtime Worker Thread###loggedOut::begin |
    Agentry Runtime Worker Thread###HNGU3: SESSION END |
    Agentry Runtime Worker Thread###BAPI::begin |
    Agentry Runtime Worker Thread###create::nulled repository::created new repository |
    Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
    Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created |

  • Where are the *.ini files located?

    I remember a discussion about deleting some of the *.ini files (or whatever they are called) but I can't find the link, don't remember the filenames and can't find their location.
    I'm having the same problem with Media Encoder where it only goes partway through an encode and then returns an error message. The last time I experienced that, I deleted the startup files and things worked fine. I think that there was a link from Dennis Draeke about some config files and their location.
    All help gratefully accepted!
    TIA,

    After experiencing the situation where a codec (LEAD MJPG) that had worked previously suddenly would not export through AME again, I tracked down the preferences files as outlined above and removed the following files:
    Adobe Premiere Pro Prefs,
    Adobe Premiere Pro Prefs~2
    AMEPrefs.xml
    And once again I could export with any codec settings I chose with no problems.
    I'm working with 1280x720, 30P, square pixels, 44.1kHz, 16-bit stereo material.
    When not working, the encode would proceed about 1/2- to 2/3 of the way through and then stop and return the message:
    - Preset Used: 1280x720P TX-1 Settings - LEAD Codec
    - Video: 1280x720, 30 [fps], Progressive, Quality 90
    - Audio: 44100 Hz, Stereo, 16 bit
    - Bitrate:
    - Encoding Time: 00:15:27
    4/10/2010 2:56:50 PM : Encoding Failed
    Error compiling movie.
    Codec compression error.
    This codec may be unable to support the requested frame size, or there may be a hardware or memory problem.
    After removing those three files, encoding would finish properly and return the message:
      - Preset Used: 1280x720P TX-1 Settings - LEAD Codec
    - Video: 1280x720, 30 [fps], Progressive, Quality 90
    - Audio: 44100 Hz, Stereo, 16 bit
    - Bitrate:
    - Encoding Time: 00:03:09
    4/11/2010 1:39:31 PM : File Successfully Encoded
    4/11/2010 1:39:31 PM : Queue Stopped
    Thought I'd post the results in case it might help help someone solve a problem.

  • Why doesn't flash player stay installed and why does the saved file disappear.

    Why doesn't flash player stay installed and why does the saved file disappear.  I have downloaded and installed flash player several times on my Win7 Vaio laptop. I have uninstalled and deleted all versions.  I am the administrator and I have also turned off my Security Software, but the same thing keeps happening over and over.  The Java Script is enabled and I have tried both downloading via IE and firefox.  It is rediculous that it keeps disappearing and I keep getting messages that the newest version is needed.  I am downloading directly from adobe and they say it is the latest.  Getting very frustrated.  They ask if we have any problems when we go to the finish line, but there is no place for comments.  I guess they don't really care if it works or not.

    So is it actually installed, or is it not?  If not, download and run the offline installers:
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    If it still does not work correctly, check
    http://forums.adobe.com/thread/885448
    http://forums.adobe.com/thread/867968
    In Firefox also check if the Shockwave Flash plugin is enabled.

  • Why won't my files delete?

    Lightroom will not delete files from hard drive. I "grab" the file(s) in Lightroom and hit delete on my keyboard. The message comes up: "Delete the selected master photo from disk, or just remove it from Lightroom?" I always click "from disk." The files are deleted from the Lightroom Catalog but are not deleted from the disk. I have version 5.2. However, I have had all previous versions. The problem has remained the same with all versions. I am using Apple Mac Pro Maverick 10.9. But I have had each version as they come to market. To state again: Why won't my files delete using the above method?

    Does it come up with an error message, or just doesn't delete them?
    Where are the files stored?  Have you checked you have full read/write permissions?

  • How to get the key in the ini file?

    I want to know how can i read all keys in the section of an ini file
    for e.g  xx.ini will like this:
    [section]
    key1=value1111
    key2=value2222
    I want to get "key1","key2".

    Here is a C# library that reads and parses the INI file's content (it does not use KERNEL32.dll API).
    Also here is a sample code for your requirement:
    var file = new IniFile();
    file.Load("xx.ini");
    List<string> keyNames = new List<string>();
    foreach (var key in file.Sections["section"].Keys)
        keyNames.Add(key.Name);

  • Why is the version file smaller than the original file, although I didn't make changes in the file? And why is the keywords don't exporting with original files?

    Hi! Why is the version file smaller than the original file, although I didn't make changes in the file? And why is the keywords don't exporting with original files?

    Wild guess: you're using the the wrong export settings. You'll need to tell us more before we can help you - like the export settings you're usng, the size and format of the originals etc.

  • Why is the vcf file is empty?

    Why is the vcf file is empty (0kb) when I drag a contact directly from Contacts 8.0 to Mail 7.1?

    Wild guess: you're using the the wrong export settings. You'll need to tell us more before we can help you - like the export settings you're usng, the size and format of the originals etc.

  • Where Can the Preference Settings to place in the .INI File Found

    I can not find a lot of the settings that are found on the drop down list under the Menu item Edit - Preferences. Specifically I am looking for the setting to stop Acrobat asking clients to update. I know it can be done manually. I deliver Acrobat over the company network to thousands of clients of which my helpdesk cannot go to everyone of them. Where is the setting found. In the .ini file or in the registry and what is the actual code to be placed in the .ini file or the HKey in the registry?

    Here's how to find various registry keys:
    1. Open RegEdit. Navigate to HKCU and Export The Adobe Acrobat hive under the Software/Adobe key. Close regedit
    2. Launch Acrobat and make your preference change.
    3. Open Regedit again and export the Adobe Acrobat hive again. Us a program that can compare text and find the change thats was made.

  • Where does the INI file reside?

    I've seen lots of forum posts on using the Properties class to read an INI file, but nothing on locating the INI file in the file system. Most of the examples use a hard-coded simplistic path (c:\temp\myapp.ini) or just the file name with no path.
    From my meager knowledge of Java, I think the INI file should be deployed in the package directory with rest of the class files for the package. At any rate, the Java class reading the INI file cannot have a hard-coded directory path since the path may vary from install to install.
    What Java statements can be used to identify the path for the run-time package? Where is the best place to place the INI file?
    Thanks,
    Paul

    You put it somewhere in your classpath, as you describe. Then this.getClass().getResourceAsStream("/myapp.ini")gets you an InputStream from which you can read its contents.

  • I cannot delete any icon shivering in my iPhone4S. Why do the "X" to delete doesn´t show?

    Hi.  I'm a rookie on all this stuff.  I´ve just updated to iOS 6.0.1, but I cannot delete any icon shivering in my iPhone4S' screen. Why do the "X" to delete doesn´t show?  They keep on shivering,  able to be rearranged,  but cannot delete ANY app, any old game, anything!!
    How can I solve it??
    Thanks in advance...

    Follow these instructions closely: Apple TV (2nd and 3rd generation): Restoring your Apple TV
    You may need a different USB cable. Some are designed to provide power but not data.

  • Why shrinking the data file is bad?

    Hi All,
    Why shrinking the data file is bad?
    If it is bad, Then why SQL server has this option?

    There are several reasons why shrinking is bad. One of the reasons were recorded already by Louis Jordan around 1950 where he sang What's the Use of Getting Sober, when You Are Gonna Get Drunk Again?" That is, why shrink something that will grow
    again? Growing a database file takes some resources, since it has to be zero-initialised. For a data file this can be avoided by granting the service account for SQL Server the permission "Perform Volume Operations" (if I recall the name correctly).
    For a log file it is unevitable. While SQL Server grows the file, this causes a standstill for the process that triggered the file to grow, and can easily cause a bigger outage.
    Another reason that shirnk is bad is that it adds a lot of fragmentation to the database. In difference to the above, there is no reason it has to be that way. It's simply not an optimal implementation.
    Shrinking can be really poor when you have big LOB columns.
    So why does shrink exist? Because sometimes, shrinking a data file or a log file is a perfectly legit operation. Say that you have a transaction database, and you decide to move transactions that are more than 12 months old to an archive database,
    and you also implement a process to move data to the archive database on quarterly basis. Before you implemented the archive database, the transaction database was 1.5 TB, but after you moved ten years worth of data, you now have a 250 GB database. In this
    case, it would be perfectly reasonable to shrink the data file to, say, 300 GB to make it more managable.
    Or say that you make a change to your reindex job so that it runs with bulk_logged recovery rather than full. This may permit you to reduce the size of the log file with 50% (a number taken out of thin air).
    There are lot of other situations, but the key is: you have reason to believe that the data file will stay within the size you shrink it to. Some people are obesseed with space and shrink whenever they get the occasion, but that is a bad idea.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Why is the HTM file of a page saved in FF also being deleted, if one deletes the subfolder with the corresponding files?

    Alright, let me explain: When I'm saving a web page in FF, this will create a .HTM file as well as a subdirectory with matching filename plus suffix "-Dateien" (German version - I'd guess in the English version it would probably be "-files" or maybe "-data" instead...). Anyway, now if I delete that subdirectory (including all its content) with the Windows Explorer (I'm still using XP, btw), it'll also delete the corresponding .HTM file in the parent directory. Question is: Why/how does it do that? Could that be some hard or symbolic link phenomenon that escapes me?
    Greetings from Munich & thanks in advance!
    Manfred

    That is a Windows feature called connected files that connects the main file and the folder with the other files for certain file operations and HTML files among others.<br />
    If you delete one of them then the other is deleted automatically (the same for Copy).
    *http://msdn.microsoft.com/en-us/library/windows/desktop/bb776887%28v=vs.85%29.aspx
    *http://www.microsoft.com/mspress/books/sampchap/6232.aspx
    You can use the registry editor (regedit.exe) to create a NoFileFolderConnection key of type REG DWORD and set the value to 0x01 to disable this "Manipulate connected files as a unit" feature.
    *HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NoFileFolderConnection: REG_DWORD 0x01
    Change the value to 0x00 to re enable.
    See also "Operations on an HTML file or folder apply to similarly named folder or HTML file":
    *http://support.microsoft.com/kb/252721

  • Why is the Other file so large on my iPhone - nearly 5 GB.

    I have a 32 GB iphone 5s. I'm running out of space.  In syncing with my computer, it shows the different file groups (audio, video, photos, etc.), and the "Other" file is nearly 5 GB.  Why is it that big, and what is it all?  Also is there a way to reduce it in size?

    "Other" data is real data that you put on your phone by using the built in apps. It is not music, not videos, not pictures and not App Store app data. It is "OTHER" meaning everything that does not fall into these categories. Such as:
    email messages and attachments
    Reminders
    Calendar entries
    Contacts
    Text messages
    MMS messages and attachments
    Genius data
    Music cover art
    Operating system settings
    Safari cache
    bookmarks
    Game Center status
    Music catalog
    Probably a few I've missed.
    You will find posts from people who said they recovered over 3 GB of space by just deleting old text messages.
    If you want Other to be smaller you will have to keep less data on your phone; delete old MMS and texts, delete old email (especially from the "deleted" folder), clear the cache, eliminate cover art.
    Sometimes "Other" includes data corruption. If you suspect this is a possibility try connecting to iTunes and click the Restore iPhone button. First restore from backup; the Other doesn't get any smaller you can Restore again and set up as New, then add your content back separately from your backup.

  • Postgres_reg.ini file deleted after ininstalling enterpriseDB postgres

    Mac OS X 10.7 (Lion) Server...After uninstalling the enterprisedb version of postgreSQL **after** the postgres installer failed, the postgres-reg.ini file was deleted. I now need a copy of the original /etc/postgres-reg.ini file. I would normally simply copy it from my original installation, however, this is no longer possible with the App Store Installer as I cannot simply reinstall the software. If someone could simply copy the contents of their /etc/postgres-reg.ini file and post it as an answer to this thread...I will make the necessary changes and place the file back in its proper place. Thanks in advance.

    Was this ever resolved?  I just updated to OSX Server 4.1 and it appears to write to this file every 10 seconds.  My file is only 3GB in size, but it gets backed up every hour!
    I deleted all the files in /Library/Server/Wiki/Logs from all Time Machine backups which freed up 160GB on my backup disk.  Looks like I'll have to do this every so often.
    Regards, Patrick

Maybe you are looking for

  • Answers: Multiple sorts for different rsum (multiple ABC-Analysis in one)

    Hello I want to do an ABC-Analysis i.e. on my ProducLines. I am doing it by using something like: CASE WHEN RSUM(Sales / SUM(Sales by) * 100) < 75 then 'A' WHEN ... THEN 'B' ELSE 'C' END This works fine so far but I need to take the column "Sales" in

  • Widget creation: html5 & swf

    I'm trying to figure out how to create custom Captivate 6 widgets that will publish to html5 and swf.  I figured I'd start by pulling apart the A3C widget that's in the Captivate 6 gallery.  I rename the file to A3C.zip.  Unzip it using my Mac's arch

  • Drag and Drop different nodes within a JTree

    I have a JTree that represents a hierarchical object. Within the tree are different nodes representing different objects, each within a container, For Example: A -B container -- B NodeObject -- B NodeObject -C Container -- C NodeObject -- C NodeObjec

  • Deputy on Release strategy of Purchase Order

    Hi, We had the following below release strategy to configure For value greater then 5000 the approvers will be At First Level  approver(User) A1 or his deputy (User) Approver A2 At second level Approvers(User) will be A3 or his deputy  A4 At third le

  • Sort a tableview on a column

    Hi Experts, My question is I want to sort the tableview in the sales order screen containing the items based on a column.Now what standard has provided is that u can only sort on Item no or the Product and not on other fields which are not the key fi