LV 8.2 Config File with Enum bug
Please refer to attachment.
Set the Enum and run the VI. The Enum is converted into string and then saved into a config file.
The file is immediately read and the key is converted back to enum.
It works fine until you choose index 32 in the enum. Either the Write Key or the Read Key fails to encode/decode enum index 32 correctly.
Regards,
Johan
Attachments:
ConfigFileBug.vi 20 KB
Hi Tikus,
you try to save a space. deep inside the config files spaces at the end (or beginning) of the line are removed. Perhaps you should save the space as as a " " (inside quotes)
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Similar Messages
-
Using Custom Config Files with WinForms
I have created a new .config file for my application called "MyConfigFile.config" but I do not know how to reference, read or update it. Should I treat it as any other generic XML file?
Rob E.The configuration file should be in the same directory as the application. The name of the configuration file should have the same name as the application with .config at the end. For example, an application called Watcher.exe should have
a configuration file called Watcher.exe.config.
To access the appSettings values from inside the program, use the AppSetting property of the ConfigurationSettings class.
string title = System.Configuration.ConfigurationSettings.AppSettings["Title"];
Two things should be kept in mind when accessing appSettings from the configuration file.One, the AppSetting could be null. Two, the AppSetting property always returns a string.When getting values from the configuration file, the code needs
to handle these situations.
One way to approach this is as follows:
int AppSetValueMax = 0;
if (ConfigurationSettings.AppSettings[key] != null)
try
AppSetValueMax = Convert.ToInt32(ConfigurationSettings.AppSettings["Max"]);
catch(Exception e)
//Exception Handling -
How to start a cache config file with proxy-scheme
Hi all,
The below is my cache-config file taken from coherence extend example.
<?xml version="1.0"?>
<!DOCTYPE cache-config SYSTEM "cache-config.dtd">
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>*</cache-name>
<scheme-name>dist-default</scheme-name>
</cache-mapping>
<cache-mapping>
<cache-name>*</cache-name>
<scheme-name>example-remote</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>dist-default</scheme-name>
<lease-granularity>member</lease-granularity>
<backing-map-scheme>
<local-scheme/>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<distributed-scheme>
<scheme-name>example-remote</scheme-name>
<lease-granularity>member</lease-granularity>
<backing-map-scheme>
<local-scheme/>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<proxy-scheme>
<service-name>ExtendTcpProxyService</service-name>
<thread-count>5</thread-count>
<acceptor-config>
<tcp-acceptor>
<local-address>
<address>localhost</address>
<port>9009</port>
</local-address>
</tcp-acceptor>
</acceptor-config>
<autostart>true</autostart>
</proxy-scheme>
</caching-schemes>
</cache-config>
In order to start the proxy cache server on localhost:9009 should i use the DefaultCacheServer program only/ I tried to use a SimpleCacheExplore program with the above config and it didnt start the proxy-scheme on localhost. is there anything i am missing?
Regards
SHello,
I ran the following with your cache configuration:
java -cp coherence.jar -Dtangosol.coherence.cacheconfig=coherence-cache-config.xml com.tangosol.net.DefaultCacheServer...and got the following output:
2010-01-04 10:23:54.363/5.477 Oracle Coherence GE 3.5.2/463p2 <Info> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=1): TcpAcceptor now listening for connections on 10.149.189.62:9009
Services
TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=10.149.189.62:8088}, Connections=[]}
ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
ProxyService{Name=ExtendTcpProxyService, State=(SERVICE_STARTED), Id=3, Version=3.2, OldestMemberId=1}
)The proxy service appears to be running using DefaultCacheServer and this configuration. Does your output look any different?
Thanks,
Patrick -
Issues using multiple load-config files with ant
Hello,
Not sure if this is the correct place...
I am creating an ant build script to compile our flex application. I am trying to use the default flex-config by doing <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/> and project specific config file add the datavisualization module and any other libraries we might need in the future. I am trying to do this as I don't want to modify the flex-config.xml
The issue I keep running into is I get a compiler error saying "unable to locate specified base class 'spark.comonents.application..". if I place the custome load-config file above the adobe default flex-config it gives errors stating it the "SeriesSlide" type
<mxmlc file="${project.sourcePath}/FBApp.mxml"
output="${project.output.binaryPath}/${project.output.fileName}.swf"
locale="en_US"
static-link-runtime-shared-libraries="false"
static-rsls="false"
use-network="true"
accessible="false"
debug="true">
<load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/>
<load-config filename="C:/Hudson/.hudson/jobs/FB 2.0 Flex/workspace/FBApp/FB-config.xml"/>
<source-path path-element="${flex.sdkPath}/frameworks/libs"/>
<source-path path-element="${project.sourcePath}"/>
<library-path dir="${flex.path}/sdks/${flex.sdkVersion}/frameworks/locale/en_US"
includes="*"/>
<library-path dir="${project.libraryPath}"
includes="*"/>
<keep-as3-metadata name="Protected"/>
</mxmlc>
the following is my FB-config.xml
<?xml version="1.0"?>
<flex-config>
<runtime-shared-library-path>
<path-element>C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\libs/datavisualization.swc</path-element>
<rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/datavisualization_4.1.0.16076.swz</rsl-url>
<policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
<rsl-url>datavisualization_4.1.0.16076.swz</rsl-url>
<policy-file-url>.</policy-file-url>
</runtime-shared-library-path>
</flex-config>
It seems to be that the first "load-config" ant runs into is the only one that gets used. When looking around the internet I have multiple cases of where people say they have successfully used multiple load-config files.
This one in particular.
http://flashdevelop.org/community/viewtopic.php?f=13&t=5629&view=previous
If I had to guess on what was wrong I believe my FB-config.xml file is incorrect but I can't find an example of anyones custom configuration file.
Any guidance would be apprecaited.I am embarrassed to say that your solution answered my question.
I was about 10 min away from rewriting my Ant script to just use the mxmlc.exe directly instead of the mxmlc ant tag. I kept running into the -flex-config+=YourConfig.xml for the command line option but never saw the xml variant.
http://blog.flexexamples.com/2008/12/21/using-a-custom-flex-configxml-file-in-flex-builder -3/
http://livedocs.adobe.com/flex/3/html/help.html?content=configuring_environment_3.html
Does Flex have any documenation that shows all the different tags that are available like the Ant documenation?
http://ant.apache.org/manual/Tasks/delete.html
Thanks at ton. -
Edit/update config file with Applescript??
am trying to read the file and then trying to change the values of the same with permissions, pls suggest how to write the same file with permissions.
The below script gives me the values as shown below, i need to change those values like aaaaa to 1, pls suggest.
set fileContents to {}
set x to ""
set filepath to POSIX path of "Macintosh HD:Library:Application Support:Macromedia:abc.cfg"
try
open for access filepath
set fileContents to (read filepath)
close access the filepath
on error
return false
end try
fileContents
output :
"aaaaa=0
bbbbbbb=0If you want to write to the file you need to open it with write permissions
open for access filepath with write permission
Ideally you should store the result of that command as a reference to the opened file:
set myFile to open for access filepath with write permission
now you can read the data:
set fileData to read myFile
You can erase the file by setting the EOF to 0:
set eof myFile to 0
(otherwise writing to the file appends data, rather thatn overwriting it)
You can write data to the file:
write "blah blah blah" to myFile
and close it when you're done:
close access myFile -
Trying to encrypt a config file with aspnet.regiis.exe.
Hello,
I am trying to encrypt a file using aspnet.regiis.exe. The problem I am running into is the file is not the web.config file that aspnet wants to encrypt. It is a file named CustomerConnStrings.config. I have tried to encrypt it, but aspnet_regiis errors
out saying that "The configuratino for physical path 'c:\temp\customerconnstrings.config' cannot be opened. Failed!"
The command I am running is :
aspnet_regiis.exe -pef "connectionStrings" "C:\Temp\CustomerConnStrings.config"
I tried to run cmd as both Administrator and a regular user. I have tried to run the 64bit version of aspnet_regiis. I am able to rename the CustomerConnStrings.config file to web.config and add the <configuration> lines in and then it will allow me
to encrypt it, but I am hoping that is not the best solution.
Thanks!Hi Andy,
Please post your thread on asp.net forum for effective response.
http://forums.asp.net/.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Config Files Backup to Avoid Interface Bug
I have recently upgraded to Adobe Creative Suite Master
Collection. Although I am impressed with the collection for the
most part, I can't believe that Adobe has not addressed a glaring
bug in the user interface that will contsantly corrupt the sites
list and configuration files.
The bug stems from having a large website portfolio. As a web
designer, as well as a webmaster, I have just finished configuring
most of the sites and directories I need immediate access to.
Dreamweaver CS3 could not import the previous site list and
configuration because of the interface bug which is constantly
corrupting that file. What happens, is that I select the website to
work on (say, dnsite.com) from the drop down list, and am satisied
that I am there. Unfortunately, my attention is diverted or I
simply forget to click somewhere else in the window. If I would
click somewhere else in the window, things would be fine. But that
fact that I need to is a true interface bug, because when I don't
click somewhere else (for whatever reason), I look at my list of
files and immediately start to scroll down through the file list to
get to the file I want to work on, BY USING THE MOUSE WHEEL, like I
always do. However, because I have not clicked outside of that
original site list drop down box, that site list selector scrolls.
The result is that Dw loads and scans each site over and over until
it comes to the end of the list, OR CORRUPTS THE SITE LIST AND
CONFIG FILE. This happens all the time with me, and it is extremely
infuriating. In order to combat this interface design bug, and Dw's
inability to protect its own configuration files by handling them
correctly, or even producing a backup file that it can revert to in
the event that it has corrupted that last site list and config
file, this interface bug has forced me to manually backup the site
list and config file. But apparently, this file has moved since
Dreamweaver 2004 MX?
By the way, it would be simple to fix this bug with a simple
pop-up dialogue window that would disappear once the correct site
was selected (duh... I thought that Adobe's noted interface design
excellence would have fixed this strange idiotic flaw immediately,
but I see they haven't addresses anything us web designers want or
need). I know Macromedia was working on the interface, but they
never did get it right and I was expecting BIG improvements from
Adobe RIGHT AWAY (because they are so good at it and Macromedia was
so poor at UI design).
Because of this this bug, and because I just configured over
60 websites that I need to maintain immediate access to, I need to
backup my website list and configuration file, but I see that it
has changed or moved. It used to be in the application data folder
in the folder up one directory from the My Documents for my
username on the computer, but I can't find it anymore. I checked
All Users as well. Where has this file gone, and what is it named,
now?
By the way, as a default, you would be saving me and other
web designers a great deal of time (re)configuring my list of sites
if you would have included .psd .ai and .eps as file extensions to
cloak. Macromedia didn't do this because they didn't want to
promote you, but you own this software now, update it.
So little thought has gone into this update that I am truly
dissapointed. Dw used to improve with each update. You can't tell
me anyone is happy with it and keep a straight face.
-Doug
Symbiotic Design> to the file I want to work on, BY USING THE MOUSE WHEEL,
like I always do.
> However, because I have not clicked outside of that
original site list drop
> down box, that site list selector scrolls.
Not what you'll want to hear probably- but the site list
scrolls again
because the site list drop down is what has focus. It has
focus until you
click something else. That's the GUI behavior i would expect
instead of a
warning dialog box getting in the way.
click in the files panel if you want to scroll the list of
files for the
chosen site.
location of Configuration folder:
Dreamweaver CS3 on Windows Vista:
C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver
9\Configuration
* Dreamweaver 8 on Windows Vista:
C:\Users\[username]\AppData\Roaming\Macromedia\Dreamweaver
8\Configuration
* Dreamweaver CS3 on Windows XP:
C:\Documents and Settings\[username]\Application
Data\Adobe\Dreamweaver
9\Configuration
* Dreamweaver 8 on Windows XP & 2000:
C:\Documents and Settings\[username]\Application
Data\Macromedia\Dreamweaver
8\Configuration
* Dreamweaver CS3 on Mac OS X:
Mac HD:Users:[username]:Library:Application
Support:Adobe:Dreamweaver
9:Configuration
* Dreamweaver 8 on Mac OS X:
Mac HD:Users:[username]:Library:Application
Support:Macromedia:Dreamweaver
8:Configuration
The site definition information is stored in a Registry Key
on windows.
mm-exporter.joexx.de/ is a free third-party utility that can
handle this and
other tasks.
The site defs on macintosh- probaby easiest to use the Export
button in the
manage sites dialog box. Can't lay hands on the file location
offhand.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
My dynamic site has a lot of different languages funneled into one website, using various cookies, url params, php includes, etc. all to obtain similar info in different languages. Thank you David Powers.
It is working really well and now I’ve come to the Registration section. Okay, so registration isn’t all that hard; I could do most of it with the standard Dreamweaver set of tools. Alas, I really like much of what ADDT has to offer with welcome email messages and activation and such.
Here’s the setup: Obviously, with many different language people, I have many different databases for them. I did that becuase we’re expecting a big audience and I really don’t want to have all those different language names in the same table. Furthermore, these tables, whereby the students will login, will also contain a lot of information about their work so again, don’t want to have one massive table. I’ve divvied them up into tables by language and I’m using those tables to keep track of them and their work.
I want to use ADDT’s User Registration Wizard and I have looked at all the neat stuff in the Control Panel/Login Settings.
Here’s my situation: I notice that when I’m done with the configuring of one of the registration pages, I’m asked if I want to upload the tNG_config.inc.php page and that it has changed since the last upload. I saved a copy of the _config.inc.php and did a new registration form with the same info and when done, I compared the two _config.inc.php files. As one would guess, there is a small difference in the Connection string to the databases $tNG_login_config["connexction"] = "connString_Ital_db".
My problem is that I have 13 of these registration pages to do but ADDT only has the one tNG_config.inc.php. That’ll work great for the one with which it is associated, but the others will obviously break. I’ve looked through the code in the Registration pages, to find the ADDT link to the tNG_config.inc.php file hoping to rename it Italian, Spanish, etc, but the name of the file does not appear in the Registration page. I realize that ADDT Control panel is designed for use on one site, and can then be used on others, with the changes etc. But my site seems a little unique since so many sites are actually in one.
Has anyone whipped this problem before? I just don’t understand why there is no link in the head code of the Registration page to let me change it and to create more config files with different names. Thanks for you help!
[Moved by moderator to appropriate forum]Hi Brian,
I just tried to check all of ADDT´s "includes" files for any internal references (read: "require" or "require_once" statements) to the file "tNG_config.inc.php". So far I can only see this file referenced in the file "tNG.inc.php" (within the "$KT_tNG_uploadFileList1" array).
So what could this mean ? Maybe you´ll have to make copies of the the original "tNG.inc.php" as well and save them as, say, "tNG.inc_ital.php" file plus make sure that these copies internally point to a different "tNG_config_ital.inc.php" file -- because it´s always the first mentioned file which gets referenced from e.g. an ADDT login page (see the "Load the tNG classes" - part)
I want to use ADDT’s User Registration Wizard and I have looked at all the neat stuff in the Control Panel/Login Settings
The Control Panel will always update the main "tNG_config.inc.php" file, so any further modifications will have to become manually applied to the custom files you´re creating.
Cheers,
Günter -
Applescript oe shellscript to delete config file?
Hi All,
pls suggest how do i delete config file with permissions, with my scripts .cfg file is not deleting. I tried with applescript and shell script both, but its not working.. and also its not asking for permissions as well..
tell application "System Events"
delete file "/Library/Application Support/Macromedia/abc.cfg"
end tell
do shell script "rm -f /Library/Application Support/Macromedia/abc.cfg"If you use 'do shell script' you'll need to escape the spaces in path, either by quoting the entire path, or by using backslashes:
do shell script "rm -f '/Library/Application Support/Macromedia/abc.cfg'"
The 'pure' AppleScript solution likely doesn't work because System Events isn't used to handling files. Try asking the Finder to delete the file instead.
Of course, both methods assume you have sufficient privileges. -
How to use a config file?
People,
i have a basic question. How to extract the contents from a ".config" file?
I have a config file with few sections and few global variables defined.
how to extract these data; or how to use this file?
a sample .config file, that i have is,
# global variables
pageTitle = "Main Menu"
bodyBgColor = #000000
tableBgColor = #000000
rowBgColor = #00ff00
[Customer]
pageTitle = "Customer Info"
[Login]
pageTitle = "Login"
focus = "username"
Intro = """This is a value that spans more
than one line. you must enclose
it in triple quotes."""
# hidden section
[.Database]
host=my.domain.com
db=ADDRESSBOOK
user=php-user
pass=foobar
How would i extract these data; or how to utilize this file first of all?
- Kumar
[ [email protected] ]Hi Kumar,
Instead of .config file you can use .properties file. Place the configuration part in that file. Use ResourceBundle class. This class have methods like getResourceString(String key) which reads the .properties file and returns a String as it's Value. I normally use the same. I have written one class for it. C if you can use it. The keys are case sensitive. initialize is a directory in which i am keeping my Config.properties file.
import java.util.*;
import java.text.*;
import java.net.*;
import javax.swing.*;
public class ReadConfig
public static ResourceBundle resources;
* This is responsible for getting data from Config.properties for setting properties externally.
static
try
resources = ResourceBundle.getBundle("initialize.Config", Locale.getDefault());
catch (MissingResourceException mre)
JOptionPane.showMessageDialog(new JFrame(), "initialize/Config.properties not found.\n Please report it to administrator.");
System.err.println("initialize/Config.properties not found");
System.exit(1);
}//static
public ReadConfig()
System.out.println(getResourceString("DatabaseName"));
System.out.println(getResourceString("JDBCDriver"));
System.out.println(getResourceString("DSN"));
System.out.println(getResourceString("ConnectionString"));
}//constructor
public String[] tokenize(String input)
Vector v = new Vector();
StringTokenizer t = new StringTokenizer(input);
String cmd[];
while (t.hasMoreTokens())
v.addElement(t.nextToken());
cmd = new String[v.size()];
for (int i = 0; i < cmd.length; i++)
cmd[i] = (String) v.elementAt(i);
return cmd;
* A method takes string as parameter and reference of ResourceBundle.
* It is used with <b>Resources Bundle</b> i.e. with .properties file.
* When value of particular string from .properties file has to retrive.
public String getResourceString(String nm, ResourceBundle resources)
String str;
try
str = resources.getString(nm);
catch (MissingResourceException mre)
str = null;
return str;
* A method takes string as parameter. It is used with <b>Resources Bundle
* </b> i.e. with .properties file. When value of particular string from .properties
* file has to retrive.
public static String getResourceString(String nm)
String str;
try
str = resources.getString(nm.trim());
catch (MissingResourceException mre)
str = null;
return str;
}//getResourceString(String nm)
* This method takes string as parameter and returns corresponding <b>URL</b>.
* If key is <b>null</b>, then will return <b>null</b>.
public URL getResource(String key)
String name = getResourceString(key);
if (name != null)
URL url = this.getClass().getResource(name);
return url;
return null;
}//getResource(String key)
public static void main(String[] args)
new ReadConfig();
}//main
}//class
Hope this will be helpful to you.
Kind Regards
Sandeep -
Reset config files for a package
According to https://wiki.archlinux.org/index.php/Pa … save_Files I have this situation in my config files:
original = X, current = Y, new = X
Is there a way to set current config files of package to X and save Y as .pacsave OR install X as .pacnew and leave Y in place without removing package?
Last edited by Evgeniuz (2012-03-12 22:00:00)I'm not positive I'm understanding you right, but if I am and you are talking about basically backing up a package's config file, it is pretty simple. I believe the .pacnew and .pacsave refers to changes in the makeup of a package in general, not its config file.
To change back to the original config and save the modified version you can just add .backup or anything onto the end of the file that you don't want to use right now . Then, you just need to save the file that you want to use as the config file with wthe filename of the configuration file for that package (so the same but w/o the .backup).
Sorry if I am misunderstanding you and you really did mean .pacnew or .pacsave and not config files. Or if I am totally wrong but that is my understanding of config files and I know it has worked for me in multiple instances.
~Boz~ -
Grub uses wrong UUID and cannot create config file
I've tried performing an installation to a USB drive as per the wiki. Everything works up until I try to boot and grub tries to load the wrong UUID for my / filesystem.
My next step was to chroot back into the USB install and manually change the UUID to the correct one. Odd, as others have pointed out in this thread
the grub-mkconfig command should detect the correct UUID if run from within arch-chroot.
Anyway, after changing the UUID in /boot/grub/grub.cfg and trying to regenerate the config file with `grub-mkconfig -o /boot/grub/grub.cfg` I noticed the file had not changed. This is because the command is exiting successfully, but isn't actually writing any file. I deleted the file and tried the command again to be sure. No new file.
Next I booted into grub, using the config generated with the wrong UUID, and dropped to the shell using `c` -- I was able to load my install just fine using
set root=(hd0,gpt2)
linux /vmlinuz-linux root=/dev/sdb3 ro
initrd /initramfs-linux.img
boot
From there I tried removing the bad config file and recreating it using the `grub-mkconfig -o /boot/grub/grub.cfg` command... no dice. Does anyone know what is going on? At the least the command should tell me that it is failing, no?Attached is the output of `grub-mkconfig` running from the chroot.
root@myhost# grub-mkconfig
Generating grub configuration file ...
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if loadfont unicode ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_archlinux ### -
An issue (bug?) with Config File VIs?!
Hello to all!
When using Config File VIs I encountered a very interesting
and killing (me) issue.
I spent an hour before I knew where's a bug.
(Maybe because I'm a novice to LabView).
From one side, the bug was mine: I used a "for loop" to write string values to keys in section and provided to the loop an array that could be empty sometimes. And I absolutely forgot that "for loop" executes at least one time anyway even if array is empty.
Ok, no problem, then the function "Write Key" should say "ERROR" and I would find my bug at once on the output of my "for loop".
BUT IT DOESN'T DO IT. It says "OK".
And only the next function "write key (string value in my case)"
fails saying "Error: Config Data Registry.vi [get data]: invalid object 0". I certainly think that something wrong with this "write key", but what means this message?!
Ok, I found who responds for this (the previous "write key" in for loop).
But the most interesting thing is that if you set after this bad "for loop" one more such "for loop" you don't get error on the output of the 2nd "for loop" too. It appears only after "write key" that goes after 2nd "for loop".
Well, forget it. Just look at attached files.
Something wrong in this "Write Key" function if error goes far beyond its real source of arrising.
Are you agreed? Or maybe I'm wrong?
Thanks to all for attention.
Any comments appreciated.
Rashid.
Using LV 8.0.1 Pro on WinXP.
Attachments:
Writing bad value to key.vi 22 KB
Writing bad value to key 2.vi 24 KBHi Ben, this was a good hint, last time I had problems with that zero iteration issue, I worked with LV 6.1 and kept in mind, that the shift register output was the last value stored in the Shift register output node, it reminded to the use of an uninitialized SR. If somebody still has 6.1 on the machine, it would be nice to test this. But the test with 7.1 showed you are right, the SR- input is reached through. Great!
Thanks, dave
Message Edited by daveTW on 06-16-2006 07:05 PM
Greets, Dave
Attachments:
Shift register.png 5 KB -
BUG: CS6 Custom Shortcuts config file UTF8 entity encoding
When saving custom shortcuts with this "Cmd+<" or "Cmd+Opt+<" Photoshop saves it. I can Use it. Everything Work.
After restarting photoshop, shortcuts not work. Only these two, other work fine.
This is shortcut after photoshop restarting. (where is: "Cmd+<" or "Cmd+Opt+<")
Probably there is bug in UTF8 entity parsing from shortcuts config.
It cant read entities. But can save them.
This is in confign file
Using CDATA or replacing "<" entity by ">". In both cases photoshop returns error in conf file.
Tested on: MBP 2009, OSX Lion 1.7.3, czech keyboard
Michalelapointe wrote:I didnot touch anything in graphic section
Really?
From your config file:
CONFIG_FB_VESA=y
CONFIG_FB_VESA_STD=y
# CONFIG_FB_VESA_TNG is not set
From the beyond config file:
CONFIG_FB_VESA=y
# CONFIG_FB_VESA_STD is not set
CONFIG_FB_VESA_TNG=y -
Hello,
How can i add the shortcuts for Office 2013 feature (Word, excel, ext) to the users taskbar or desktop with using config.xml file while installing the Microsoft Office 2013 from SCCM?
I know how to do that with OCT, but i have another problem if i use OCT. So i have to do it with Config.file, but i don't know which code can i write on config.xml file to create shortcut on desktop or taskbar...
Regards,Hi
There is a known issue about
changing the shortcut location for an Office 2013 application:
When you try to change the shortcut locations for Office 2013 applications in the Office Customization Tool (OCT), you receive the following error message:
Invalid start in folder. Please try again.
Then, you add the Start in location for Office 2013 and run a customized installation. When you double-click the shortcuts that are displayed on the desktop, Configure shortcuts does
not work and you receive the following error message:
Sorry, we couldn’t find your file. Is it possible it was moved, renamed or deleted?
To work around this issue, type a single open bracket ([) in the Start in
field.
In addition, refer to the link below on "Configure shortcuts" in OCT:
http://technet.microsoft.com/en-us/library/cc179097.aspx#Configure_shortcuts
Regards
Tylor Wang
TechNet Community Support
Maybe you are looking for
-
Use a text layer on top of another text layer as a clipping mask?
I have searched and searched but I can not find an answer to this question. I've been creating a variety of graphic styles to use in illustrator. The appearance panel is an AMAZING tool but one function seems to be missing. I would very much like to
-
PL/SQL CLOB and comma seperated list
Hi, i´am beginner! I have a table with a clob field with a comma separeted list. The content can be '', '44' or '44,55...' as an example. So how can i get the values in clob and search another table? Something like... select clob from table1 each clo
-
Songs cut 25 sec before the end - Time cursor issues
Hello ! As all for you, I've just downloaded itunes 7. No special problem until today, where I discovered two anoying (but not terrible) bugs: 1) The time cursor when playing a song is unstable. If I want to listen to a song from 2'22 minutes, i brin
-
Merge statement not working over db link
I have a merge statement that works fine when it's run against a local table, but when I try to run it against a table over a database link, I get the following error. ERROR at line 1: ORA-01008: not all variables bound ORA-02063: preceding line from
-
Hey can anyone please tell me when the windows 8 black update comes to Nokia Lumia 620