Problem with inifile.fp under Linux

Hello all,
I noticed a problem with inifile.fp under Linux: I can't write the updated
ini file !
hConfigFile = Ini_New(0);
if (Ini_ReadFromFile (hConfigFile, ConfigPath));
Ini_GetInt(hConfigFile, "Client", "ChartsRefreshRate", &ChartsRefreshRate);
Ini_GetInt(hConfigFile, "Client", "ChartsDuration", &ChartsDuration);
.... Change the values ...
Ini_PutInt(hConfigFile, "Client", "ChartsRefreshRate", ChartsRefreshRate);
Ini_PutInt(hConfigFile, "Client", "ChartsDuration", ChartsDuration);
if (0!=(Err=Ini_WriteToFile (hConfigFile, ConfigPath)))
fprintf(stderr, "\nWarning: problem writing %s configuration files: %s",
ConfigPath, GetUILErrorString(Err));
This fails and displays:
Warning: problem writing Config.ini configuration files: File not found
But not only that, it also deletes the ConfigPath file !!!
Which is rather unacceptable !
I see that the inifile.fp I have on the PC (CVI 8.5) is different than the
one I have on the Linux install (cvicc 8.0). Can I copy all the inifile.*
files to Linux or is it more complicated than that ?
Guillaume Dargaud
http://www.gdargaud.net/

Hello Luis,
I came here to check if a new version of CVI (cvicc, not the real-time
module) for Linux had come out and, sadly, it appears that's still not the
case...
But I saw your followup to our original discussion.
The ini file has grown tremendously since then, but I think I had the
problem with even the most basic file: simple name (same directory, no
path), but maybe it was on an NFS directory (that's no longer the case).
Also the fact that instead of writting _in_ the file (where permission was
allowed) you wrote to a temp file (that may not have had permission) and
then renamed accordingly...
I'll start a new project soon that will require ini files, so I'll test it
again.
> (I realize it has been a while, but I thought I'd ask anyway, in case you
> still remember this).  
> I was investigating this bug today, but so far I haven't been able to
> reproduce it. I tried it in both Windows and Linux, with both a
> writeable location for the test .ini file and a non-writeable location,
> but so far the behavior is as expected. Ini_WriteToFile does return an
> error when the location isn't writeable, but it doesn't delete the file.
>   So I was wondering whether this might be related to the specific
> path you were using, or maybe even with the content of the .ini file
> itself. I don't suppose you would remember whether there was anything
> unusual about the path, would you? Also, do you happen to still have this
> .ini file lying around somewhere and wouldn't mind sharing it with me?
>   Luis
Guillaume Dargaud
http://www.gdargaud.net/

Similar Messages

  • Problems with Weblogic6.0 Under Linux

    Hi,
    I have been having this weird problem with weblogic 6.0 under linux.
    I have WL6.0 installed on Redhat Linux 7.2 ( the 2.4 Kernel).
    I start the WL server on Linux and my bean deploys successfully,
    however I have a client bean on an NT box which tries to do a lookup
    on the bean which resides on the Linux box.
    I know that I get the initial context, because on the server side I
    see the IP address being added to its client list , but as soon as I
    try to do a lookup I get the error message
    "Connection refused ..... etc....."
    However , if I start the WL server on the NT box from where my client
    bean resides, (and leave WL server running on Linux) everything works
    fine , and I can reference the object.
    This leads me to think that the following is happening :
    The client actually connects the WL server on Linux looking for the
    relevant stub classes etc.. but the WL server on Linux tells the
    client to look for them else where , ie the machine from where it came
    (in this case the NT machine)
    This explains why when the WL server on NT is running all works fine ,
    because the client goes back to the machine from where it came (NT
    machine) and in this case the WL server is running so it can deal with
    its requests !!
    Running the client and server on Linux works fine and I can also run
    the same code between NT machines and Solaris machines. As soon as I
    introduce the Linux machine into the equation , I start getting this.
    Any help , ideas would be greatly appreciated.
    Thanks.

    Hi.
    Strange. Please post the exception and the full stack trace here.
    Thanks,
    Michael
    Zac Burke wrote:
    Hi,
    I have been having this weird problem with weblogic 6.0 under linux.
    I have WL6.0 installed on Redhat Linux 7.2 ( the 2.4 Kernel).
    I start the WL server on Linux and my bean deploys successfully,
    however I have a client bean on an NT box which tries to do a lookup
    on the bean which resides on the Linux box.
    I know that I get the initial context, because on the server side I
    see the IP address being added to its client list , but as soon as I
    try to do a lookup I get the error message
    "Connection refused ..... etc....."
    However , if I start the WL server on the NT box from where my client
    bean resides, (and leave WL server running on Linux) everything works
    fine , and I can reference the object.
    This leads me to think that the following is happening :
    The client actually connects the WL server on Linux looking for the
    relevant stub classes etc.. but the WL server on Linux tells the
    client to look for them else where , ie the machine from where it came
    (in this case the NT machine)
    This explains why when the WL server on NT is running all works fine ,
    because the client goes back to the machine from where it came (NT
    machine) and in this case the WL server is running so it can deal with
    its requests !!
    Running the client and server on Linux works fine and I can also run
    the same code between NT machines and Solaris machines. As soon as I
    introduce the Linux machine into the equation , I start getting this.
    Any help , ideas would be greatly appreciated.
    Thanks.--
    Developer Relations Engineer
    BEA Support

  • Build problem with lv 7 under linux

    When building my App. my custom controls are gone!...
    LV 7.0 - Gentoo Linux.

    Thanks Laura,
    Here is what I have done now.
    I made test.vi it without any custom control.
    The vi has
    1. a numerical control connected to numerical display
    2. a boolean control connected to a boolean display
    3. a boolean to stop the vi
    When it is run in the development env. everything is fine.
    Now I build the app.
    1. the up/down arrows of the numerical control does not show up
    2. both boolean does not show up, except the dialog type boolean.
    If I click on the invisible up/down arrow I can see inc/dec of the numerical display.
    I have included as an attachement the test vi, test.vi and the built one.
    Attachments:
    test.zip ‏29 KB

  • Problem with file.encoding in Linux

    Hello,
    I am currently migrating a java project from Windows to Linux. The project is finally shaping up now, except for some encoding problems.
    All configuration files are saved in ISO-8859-1/Cp1252 format. When reading and displaying these files in Swing (e.g. JTextArea), the special characters ���� are displayed wrong. I have tried to start the VM with -Dfile.encoding=ISO-8859-1 and -Dfile.encoding=Cp1252 without success (this is done in Eclipse under Linux).
    I then tried the opposite. I created some UTF-8 files, started the application under Windows/Eclipse, read the files and displayed them in a JTextArea. Garbage characters were shown instead of ���� (as expected). I then used -Dfile.encoding=UTF-8, and voila, all characters were displayed correctly.
    Why does not -Dfile.encoding work for ISO-8859-1/Linux but -Dfile.encoding work for UTF-8/Windows? Anyone here know?
    The JRE I have been using is 1.4.2_06.
    The Linux is a SuSE 10.0

    Continue the "discussion" here:
    http://forum.java.sun.com/thread.jspa?threadID=737153

  • Problems with running jar on linux

    Are there any known problems when running jar files on linux, that were compiled on windows?
    http://turkeybot.info/DuckHunt.jar
    The images directory that is in that refuses to load under linux, but there's no problem with windows (it's using System.getProperty("file.separator") to get hte correct file separtor to refer to the image directory).

    Java code should run in all JVMs. But if you did something Windows-specific (such as looking for a file named C:/something/or/other) in your code then you can't expect it to run in other environments.

  • Problem with java installation on Linux

    HI ,
    I am trying to install jdk on Linux..I am new to java and Linux both. I am trying to download the file for the linux installation onto my home PC(windows XP) and then ftp it to my Linux machine. I need to do this because I have a remote login to my Linux machine( a server at school). However when I try to download file my IE jsut crashes. I can see the page for accepting the Agreement but when I click on Accept the next page just stops responding.
    Could someone explain why this is happening.
    thanks,
    G.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • Problem with java, ASCII and Linux

    Hi Friends,
    I has a Linux RedHat 9.0 with a jre1.5.0_04 (rpm package of Sun).
    I has a problem with ASCII , for example :
    import java.io.*;
    public class HolaMundo
    public static void main (String[] args)
    System.out.println("Hol� M�ndo");
    this programs runs ok on my windows jdk so it prints "Hol� M�ndo", but when i run the same HolaMundo.class program on my linux redhat it prints "Hol�� M��ndo"
    I think the problem is with the ASCII table that uses the linux version of jre, but i dont know how to solve this problem. I need a Spanish-European ASCII table on my application but i think it is working with a US-ASCII table.
    Then i has installed a kaffe 1.0 (rpm) java machie on this linux and this solve the problem but i has another problems of compatibility with this old version of java kaffe.
    Do you know whats happening?
    Thanks in advance.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

  • How to enable OCR with Scangear MP under Linux for MG8250?

    Under Linux openSUSE 12.3 I use Scangear MP 1.80 for my Canon PIXMA MG8250.
    As a scan target (in my German GUI it's "Ziel") I can choose "OCR". But there is no text output, the scan is just saved as a picture. How can I configure Scangear to open the scan via Tesseract in a text editor.
    By the way, the target "Print" (in German "Drucken") leads to saving just as well, though there is at least one printer at hand, of course.
    It's a pity that the pixma scan drivers that are shipped with openSUSE don't work with xsane (the scanner starts working, but stops after one third of the page). Using xsane with a different scanner I can use OCR successfully.
    Volker

    There are two basic types of core OCR algorithm, which may produce a ranked list of candidate characters.
    Matrix matching involves comparing an image to a stored glyph on a pixel-by-pixel basis; it is also known as "pattern matching" or "pattern recognition". This relies on the input glyph being correctly isolated from the rest of the image, and on the stored glyph being in a similar font and at the same scale. This technique works best with typewritten text and does not work well when new fonts are encountered. This is the technique the early physical photocell-based OCR implemented, rather directly.
    Feature extraction decomposes glyphs into "features" like lines, closed loops, line direction, and line intersections. These are compared with an abstract vector-like representation of a character, which might reduce to one or more glyph prototypes. General techniques of feature detection in computer vision are applicable to this type of OCR, which is commonly seen in "intelligent" handwriting recognition and indeed most modern OCR software. Nearest neighbour classifiers such as the k-nearest neighbors algorithm are used to compare image features with stored glyph features and choose the nearest match.
    Software such as Cuneiform and Tesseract use a two-pass approach to character recognition. The second pass is known as "adaptive recognition" and uses the letter shapes recognized with high confidence on the first pass to better recognize the remaining letters on the second pass. This is advantageous for unusual fonts or low-quality scans where the font is distorted.
    So I wonder which kind of OCR algorithm are you using?

  • Problem with file path in linux

    hi,
    i have problem with file path accessing in linux. my java class is accessing a abc.cvs file and and getting all data. it is working fine in windows xp. but i run this same file in linux it does not access the abc.cvs file and does not get any data.
    my project structure
    Search
    abc.cvs
    search.SearchMain
    i am sccessing this cvs file in this SearchMain class by this way file name = "abc.cvs"
    It is working fine with window but problem with linux.
    when i place this abc.cvs in a folder as "./data/abc.cvs" also working fine with windows but not in linux.
    I am new for linux.
    Please give me solution.
    Thanks in advance
    Ravi

    forgot to tell,
    then you need to export that path
    export $CLASSPATH
    code}                                                                                                                                                                               

  • Problem with different calendars under Mountain Lion

    I upgraded recently from Snow Leopard to Mountain Lion and experiencing an annoying problem with the calendars "On My Mac" (I am using a MacBook Pro from mid 2009). With iCal under Snow Leopard I had seven calendars - Meetings, Performances, Family, etc. with different colors. After the switch to Mountain Lion these categories aren't maintained properly. Four of them have been seemingly merged into two, so that for example an event can't be categorized as "Family" but gets shifted automatically to "Meetings" (both calendars stay checked in the editing panel, but only one "sticks"). So I have three  calendars I can use and a four I can't.
    If I try to add a new calendar it appears in the list, but no event can be assigned to it.
    Is there a limit to the number of calendars one can have?
    I don't use iCloud, so there is no issue there.
    I have one Google calendar (a work schedule I have subscribed to ) which also works with no problems.
    Any ideas?

    Same problem when reseted  the PRAM.
    I read some Chinese Web , Many people got the same problem after upgrade to mountain lion
    you can see the locked icon show in the bottom left conner even my card is unlock
    I can read but can not delete any Photos
    http://i83.photobucket.com/albums/j286/2cktang/OSX/ScreenShot2013-03-11at23227AM .png
    you can see the locked icon show in the bottom left conner
    But I can edit everything in my Harddisk
    http://i83.photobucket.com/albums/j286/2cktang/OSX/ScreenShot2013-03-11at23235AM .png
    External Hard Disk no locked icon show in the bottom left conner
    http://i83.photobucket.com/albums/j286/2cktang/OSX/ScreenShot2013-03-11at23220AM .png

  • Problem with inifile.c in CVI 2010 project

    I upgraded to CVI 2010 today. I was using 2009. In my project I have included inifile.c in my project. The file is located in the CVI2010 toolbox directory. I used this in CVI 2009 and did not have a problem. When I compile I get a bunch of link errors "Undefined symbol". Some of the symbols it has a problem with are ConvertDataToText, AppendString, StrDup, FileExists, ... there are many more.
    My question is why are these linking errors coming up in CVI 2010?
    I would imagine I need to add another source file to my project or something like that.

    It's true that using .FPs is the best way to go.
    As I told you, an instrument driver can be loaded in Instrument menu
    or in the Library menu. If loaded in Intrument menu, to have it loaded
    automatically when you open a project you must add the .fp to the
    project itself; operating this way, every time you open a project it
    will recompile the instrument, which can be annoying and is a waste of
    time. On the other hand, if the instrument has an object file (which is
    the case of IniFile and all instruments shipped with CVI) you can load
    it in the library menu (Library >> Customize and add it to the
    list) and have it ready for use with no time spent on it.
    I personally have loaded in the library collection a set of
    general-use instrument that I happen to use in almost all my projects
    (IniFile, Programmer's Toolbox, Password control and a library with my
    own utilities) and only use the instrument menu for instruments very
    specific to one or a few projects (e.g. the driver for some external
    device I use in a project)
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Problem with joined piece under Exchange

    I have two mail box one in Notes8.5 and a new one in Exchage 2010. When I receive a mail with a joined peice like a pdf when I want to use it by press it, in Notes no problem I can select the Application but under Exchange it's charged charged but nothing I can select application. It's a problem with Exchange or I have to do something with applications?

    UPDATE: The problem has been fixed. It turned out I had a different alias than my login in my account, which was confusing things. Getting rid of it fixed the problem.

  • Problem with a Flex into Linux (Ubuntu)

    Good morning to all
    I have a problem with a project done in flash builder 4.
    My   project works well in a WAMP Server in Windows 7 is a project that   connects to a MySQL database, but I would like to migrate the entire   project done in a WAMP server on Linux (Ubuntu Web Server). The problem I have is that my Ubuntu server I have everything properly installed:
    Apache
    Php
    MySQL - phpMyAdmin
    Zend Framework
    but when I upload all my project from WAMP to my Linux server - I get an error:
    ... Class "CategoryService" does not exist: Plugin by name 'CategoryService' was not found in the registry; Used paths:
    : C: / wamp / www / Servers-debug / services /
    #   0 / opt/ZendFramework/release-1.9.7/library/Zend/Amf/Server.php (550):   Zend_Amf_Server-> _dispatch ('getAllCategory', Array,   'CategoryService')
    # 1 /   opt/ZendFramework/release-1.9.7/library/Zend/Amf/Server.php (626):   Zend_Amf_Server-> _handle (Object (Zend_Amf_Request_Http))
    # 2 / var / www / Servers-debug / gateway.php (69): Zend_Amf_Server-> handle ()
    # 3 (main) ...
    obviously -> "... C: / wamp / www / Servers-debug / services / ..." it  is a mistake because it is the path of my wamp server (Windows), but do  not know
    where to modify the code of my project to understand the
    following path: / var / www / Servers-debug / services / <- that is my address in ubuntu?
    anyone can help me, please!!

    Good morning to all
    I have a problem with a project done in flash builder 4.
    My   project works well in a WAMP Server in Windows 7 is a project that   connects to a MySQL database, but I would like to migrate the entire   project done in a WAMP server on Linux (Ubuntu Web Server). The problem I have is that my Ubuntu server I have everything properly installed:
    Apache
    Php
    MySQL - phpMyAdmin
    Zend Framework
    but when I upload all my project from WAMP to my Linux server - I get an error:
    ... Class "CategoryService" does not exist: Plugin by name 'CategoryService' was not found in the registry; Used paths:
    : C: / wamp / www / Servers-debug / services /
    #   0 / opt/ZendFramework/release-1.9.7/library/Zend/Amf/Server.php (550):   Zend_Amf_Server-> _dispatch ('getAllCategory', Array,   'CategoryService')
    # 1 /   opt/ZendFramework/release-1.9.7/library/Zend/Amf/Server.php (626):   Zend_Amf_Server-> _handle (Object (Zend_Amf_Request_Http))
    # 2 / var / www / Servers-debug / gateway.php (69): Zend_Amf_Server-> handle ()
    # 3 (main) ...
    obviously -> "... C: / wamp / www / Servers-debug / services / ..." it  is a mistake because it is the path of my wamp server (Windows), but do  not know
    where to modify the code of my project to understand the
    following path: / var / www / Servers-debug / services / <- that is my address in ubuntu?
    anyone can help me, please!!

  • Problem with columns length under Firefox

    I have a problem with Firefox. Possibly, someone could help?
    If you look at the following page www.tregor.fr using IE or
    Netscape, there is no problem.
    If you use Firefox, you will see that the display of the
    bottom page is not correct. The middle column is longer than the
    left and the right columns.
    So the bottom block is not correctly sticked to the middle
    block (the body background color appears at the bottom of the first
    and third columns).
    As I analyses, I saw that, under FireFox, the text in the
    middle column seems to start a little lower than under IE or
    Netscape. This may explain why the middle column is longer.
    But I have no mean to avoid this.
    Does anyone has experienced such a problem?
    Regards.

    you could try this:
    http://www.projectseven.com/tutorials/css/pvii_columns/index.htm

  • Problems with Tuxedo8.0 under Windows 2003 Server

    Hello All.
    Could you please help me?
    When we were choosing which OS to install on our Tuxedo developers server we
    decided
    to try Windows 2003 server. We did not suppose that we could have any
    problems
    with this choise. But we have!
    We use it with DB 7.2 workgroup edition and Tuxedo 8.0 (PatchLevel 172).
    When one of server processes crashes (for example by exit(1) or by
    exception)
    (it happend not so rarely, because this server is actively used in
    development
    and testing processes) we cannot restart this server process!
    When I write "restartsrv -i SrvId" in command line nothing happens.
    When I write "tmboot -i SrvId" it says "Duplicate server".
    When I write "tmshutdown -i SrvId" it just hangs and I have to wait for 10
    minutes
    while it says "CMDTUX_CAT:949: WARN: Shutdown failed. 0 processes stopped."
    Tuxedo WebAdministration conlsole says almost the same - "Failed to
    deactivate SRVGROUP/200
    (still in state ACTIVE)-10:CMDTUX_CAT:1689: ERROR: Could not shutdown any
    servers".
    As a result any server crash (including expected) leads to 15 minutes
    waiting!!!
    As you understand it cound not be accepted!... and it is very annoying. :-)
    This problem never happened under Windows 2000 server (a week before I
    returned from site
    installation where this software works fine under Windows 2000 server).
    How can we solve this problem?
    Or should we downgrade our OS to Windows 2000?
    With regards,
    Dmitry.

    Dmitry,
    Try a bbclean from the tmadmin command line to clean up the BBL so you will be
    able to restart the server using the tmboot command.
    In addition to this check the values for SCANUNIT and SANITYSCAN in the ubbconfig.
    The observation that it takes 15 minutes for TUXEDO to discover that your server
    has crashed suggests they have values that might be too high.
    Winfried Scheulderman
    "Dmitry Bond" <[email protected]> wrote:
    Hello All.
    Could you please help me?
    When we were choosing which OS to install on our Tuxedo developers server
    we
    decided
    to try Windows 2003 server. We did not suppose that we could have any
    problems
    with this choise. But we have!
    We use it with DB 7.2 workgroup edition and Tuxedo 8.0 (PatchLevel 172).
    When one of server processes crashes (for example by exit(1) or by
    exception)
    (it happend not so rarely, because this server is actively used in
    development
    and testing processes) we cannot restart this server process!
    When I write "restartsrv -i SrvId" in command line nothing happens.
    When I write "tmboot -i SrvId" it says "Duplicate server".
    When I write "tmshutdown -i SrvId" it just hangs and I have to wait for
    10
    minutes
    while it says "CMDTUX_CAT:949: WARN: Shutdown failed. 0 processes stopped."
    Tuxedo WebAdministration conlsole says almost the same - "Failed to
    deactivate SRVGROUP/200
    (still in state ACTIVE)-10:CMDTUX_CAT:1689: ERROR: Could not shutdown
    any
    servers".
    As a result any server crash (including expected) leads to 15 minutes
    waiting!!!
    As you understand it cound not be accepted!... and it is very annoying.
    This problem never happened under Windows 2000 server (a week before
    I
    returned from site
    installation where this software works fine under Windows 2000 server).
    How can we solve this problem?
    Or should we downgrade our OS to Windows 2000?
    With regards,
    Dmitry.

Maybe you are looking for

  • SharePoint Online : how to disable properties promotion / demotion?

    Hi,  I working on a solution hosted in SharePoint Online. I need to disable the promotion / demotion feature.  I know it's possible to do it using powershell in an on premise installation, like : $web = Get-SPWeb http://xxxx/sites/xxx $web.ParserEnab

  • Join process. what happens when one CV entry is deleted?

    We have 2 CVs feeding one MV. One CV (a HR system) creates the MV entry and provides most data. The other CV (an email system) joins to the MV entry on matching name and flows the email address. Now, what is Meta designed to do if the CV entry contai

  • 11.5.2 Install on RH 6.2

    I am trying to install 11i on RH 6.2. At the "Installing Apps" status bar, the installation freezes at 8%. I have left it running for long periods of time without any success. I have followed the install manual to the letter. My /tmp has 1 gig free,

  • History Tab Not Getting Populated

    As i Edit / inspect any assets in the WebCenter Sites the History Tab is not getting pouplated with the edited Assets. The Histroy Tab is visible to me, However there is no Data In it (Blank History Table). I am currently using java 1.7.0_03-b05.

  • 1760 with 4 VIC2-4FXO

    I want to use four FXO in a Router 1760, but I saw a limitation in the web that said: “Restrictions on VIC2-4FXO Usage When configured for operation in countries that use the TBR21 mode, the use of VIC2-4FXO cards is subject to the following limitati