• RELEVANCY SCORE 3.62

    DB:3.62:How To Manage Arrays As Object Members zd





    I found a realy strange behavior with the instanciation of a
    Class which contains an Array member.

    Here is the code wich is self explanatory.

    DB:3.62:How To Manage Arrays As Object Members zd

    Thanks to you all for your quick answer.

    I just woke up this morning, and realised I found myself the
    solution during the night.
    It's always a real joy to solve a problem on wich we stayed
    some hours without solution.

    A particular message to Jeckyl :
    I am very interested in the reason why "This is 'correct'
    behaviour for Flash", because I thought the creation of the
    tab:Array in the class declaration of properties was enough to be
    repeated on each instanciation of this class.

    Why not ?

  • RELEVANCY SCORE 3.46

    DB:3.46:Transpose 2d Array - Strange Behavior With Timing xx






    Colleagues,

    Just would like to measure the performance of Transpose 2D Arrayfunction and got something strange:

    Now results:

    Is any rational explanation exists - why Time 1 is equal to zero?

    Compare with multiply - here we will get nearby same time:

    Probably bug?

    Andrey.

    DB:3.46:Transpose 2d Array - Strange Behavior With Timing xx


    Andrey,

    I would expect time one to be zero most of the time if the transpose time is well under a millisecond. If transpose works by switching indices rather than moving the data, the time should only be dependent on the number of dimensions rather than the size of the array.

    I replaced your while loop with a for loop. The time does not change until the value of N exceeds 1000000. For any value of N the second and subsequent runs are much faster than the first. I suspect that with constant folding and compiler optimization, this method of timing may not be very meaningful.

    Lynn

  • RELEVANCY SCORE 3.34

    DB:3.34:Strange Behavior Of An Array pa





    I'm writing a program to read data from a nanovolt meter and write it to a file. In order to speed things up a bit, I'm trying to put the voltmeter data into an array and then every 1000 measurements, write the data to a file. (Originally, I'd write each pair of points to the file as they were read from the instrument). However, for some reason, the voltage reading is fine, but the value in timenow[arraycount} appears to stay constant (within a few milliseconds) until the elapsed time of the experiment reaches whatever the value is. For example, if the value in timenow[arraytime] is 30 seconds, the array is filled with 30 until 30 seconds has passed, at which point it fills correctly. However, the point plotted on my graph is correct (i.e. if 10 seconds has passed and my y value is 25 mV, then the point 10, 25 is plotted while the value 30,25 is saved to my file).If anyone has any ideas what I may be doing wrong, or why things are behaving this way, I would be much obliged for your comments.thank you,John Nordling









    Attachments:







    snippet.c ‏3 KB

    DB:3.34:Strange Behavior Of An Array pa

    Sorry all. I figured it out (finally). It was a mistake in the way that I was controlling the rate at which data was gathered. Sorry to bother y'all. (i'm teaching myself C as I go, so sometimes I still make foolish mistakes.)-John

  • RELEVANCY SCORE 3.33

    DB:3.33:Bug In Disabled Elements Of Array? j3



    Hi guys.

    I'm having an strange behavior of the disabled elements of an array. Those elements are clusters. I guess it's a bug because it happens even while the program isn't running.

    I recorded a video where you can see how the disabled clusters, are taking some values of the last cluster where I had the cursor.

    And as you can see I don't have any diagram code.

    Have you ever seen something like this?

    It matters to me because for the client It'll looks like it there were a error.

    http://youtu.be/I_rsRzldeEE

    Thanks and my best regards

    DB:3.33:Bug In Disabled Elements Of Array? j3


    Thanks. Yeah you're right, disabled isn't the correct translation for my idea.

    The reason is that the default look of my program has this column enabled or indexed, and everything was working ok.Now I'm going to use the same program, but just for 5 refrigeration rooms, so I thought just resize the array, then I realized that some values was changing while I move the mouse over.

    The default values in my real program are zeros, but once the first column gets values, I can see how they're copied to the second one. I made the values that you see as default just for upload the vi.

    It's not a functional problem but I don't like how it looks.

    Thanks

  • RELEVANCY SCORE 3.31

    DB:3.31:Strange Openmp Concurrency Behavior cz



    Hi,

    I've got a strange problem with OpenMP in VTune on Linux. I've written a simple program that creates 3 lists of matrices and fill 2 of them with random numbers. The matrices are then multiplied and stored in the 3th list. Using OpenMP, I have parallelized the loop that runs over the list and multiplieds the matrices. It all works fine but when I run in VTune a Concurrency analysis, I get a strange results. Take a look at the attachment: you see that the program starts good and uses all 4 cores on my i7 920 (HT disabled). But after 20s, it stops using the thirth core for some reason. I have tried this on a dual xeon E5440 and there i have the same results: after a while it stops using some cores. These machines are dedicated, nothing else is running on them.

    As a check, i make every thread that runs, save it's thread id to an array so i could see if there were only 3 threads running, but surprise: it seems like all 4 threads are running normally. I use a static schedule with chunk_size of 1.

    Can it be that VTune is wrong? Or am i missing something?

    Regards,

    Ward

    DB:3.31:Strange Openmp Concurrency Behavior cz


    If you could find the documentation on MKL_DYNAMIC, that might answer one of your questions. Forum search appears to be broken, so I can't find it today. MKL is highly optimized to keep the floating point arithmetic units busy, so there is no advantage in running more than 1 MKL thread per core.
    I don't know what you mean by "high poor CPU times." Please don't rely on advertising literature for your terminology. It's entirely normal to see very large clock tick per instruction rates in short bits of your application; they aren't even worth investigating unless they consume a significant fraction of your elapsed time.
    Parallel computation, both SIMD and threaded, normally increases clock per instruction rates. You wouldn't do parallel development if you bought the advertising about minimizing clocks per instructions.
    OpenMP is expected to incur measurable time to start up a thread pool, if that's what you are discussing. libiomp5 keeps a thread pool alive for a time set by KMP_BLOCKTIME so as to reduce this overhead for subsequent parallel regions.
    I don't know the current marketing approved way to use the libiompprof5 library, which provides a tabulation of barrier, imbalance, etc. for each Intel compiled parallel region (in file guide.gvs, in current directory, when run outside Amplifier).

  • RELEVANCY SCORE 3.29

    DB:3.29:Strange Behavior 8j


    In an effort to answer another posters thread, I have discovered some strange behavior(or let me know if I'm wrong) inside vb 2010
    Let me attempt to explain. I have listed a GIANT string of bytes that are derived from a compiled version of a separate project. I then convert this string of bytes into an array of bytes and invoke it using the reflector. Bear in mind that the embedded
    filescan utility originates from COMPILED code, and is embedded as a string of bytes. When I invoke the method(using load raw bytes[the compiled bytes]) then when I run the scan utility, if I quit while a threaded operation is in progress and it tries to
    invoke a disposed control, naturally I get an error, and the program throws an exception. My question is why is the designer revealing the source code for the compiled and embedded app. Please download the project and run it. Please note it will run, but it
    takes a minute to process the embedded bytes, so be patient. This is indeed an interesting find. I do not think microsoft intended to de-compile.
    The source code for the embedded program does not exist in this project, only the bytes of the compiler generated exe file. Why does vb decompile?
    Paul's Skydrive - Strange Behavior.Zip
    If you want something you've never had, you need to do something you've never done. If you believe something to be true, then one day you will be called upon to demonstrate that truth.

    DB:3.29:Strange Behavior 8j

    Glad to see you have found another solution and thanks for sharing.
    Bestregards, Shanks Zen
    MSDN Community Support | Feedback to us

  • RELEVANCY SCORE 3.19

    DB:3.19:Re: Error In An Array 7x


    Is printerName an array of Strings or an array of ints?

  • RELEVANCY SCORE 3.13

    DB:3.13:A Different Function Is Created Instead Of The Intended One (Index Array Instead Of Initialize Array) - Labview 8.5 s7



    Hey all,

    I have a really strange behavior here. I'm using LabView 8.5. I open up a blank VI and try to use the "Initialize Array" function.

    No matter where and how I find it (using search functions, or by navigating to 7.x function-array-initialize array), when I drag and drop it to my VI, what I get is "Index Array" instead!

    Even when I hover over the initialize array icon inside the pallete, while having the help toggled on (Ctrl+H), what I see is the help page for Index Array. It's as if somehow the index array has replaced the Initialize array function entirely, except for the mere icon in the pallete..

    I tried restarting Labview and my computer to no avail.

    Has anyone ever experience a similar problem? meaning, a different function other than intended being created. I'm attaching a screenshot.

    Thanks,

    -Aidin







    Solved!
    Go to Solution.

    DB:3.13:A Different Function Is Created Instead Of The Intended One (Index Array Instead Of Initialize Array) - Labview 8.5 s7


    Thanks for your answers.

    My pallette is a bit screwed isn't it? Most probably because when installing I selected support for a bunch of older versions.. which I regret now.

    Funny enough, when searching in functions it only brings me the 7.x version of array functions etc.. but I can manually find the standard ones in my pallete, and sure enough, the standard 8.5 version of functions seem to work..

    I'll need to eventually do a cean install, but for now it's all good!

    Thanks,

    Aidin

  • RELEVANCY SCORE 3.11

    DB:3.11:Decimate Array Deletes Odd Element 1z


    Has anyone noticed that the Decimate Array function deletes the last element of your array if you feed it an array with a odd number of elements? It seems that the function does this to force the output arrays to have the same number of elements. I know I could use some extra functions to get around this but is this the proper behavior for this function? Help file for Decimate Array does not mention this important fact.



    DB:3.11:Decimate Array Deletes Odd Element 1z

    tst a écrit:

    And while we're on the subject, I think I asked this recently, but still: why is it that 2D arrays require padding and 3D arrays don't (each page of a 3D array seems to behave like an indepedent 2D array)?This makes sense when you look at it visually, but if you consider programmatic handling, this justlooks like an inconsistency.

    I don't see any difference between 2D and 3D. On a 3D array, each page has the same number of elements, and changing the dimensions of one page affects the others. No independency. Where is the inconsistency ?




    Chilly Charly (aka CC)E-List Master - Kudos glutton - Press the yellow button on the left...

  • RELEVANCY SCORE 3.05

    DB:3.05:Choosing A Collection Type. z7


    Hello,

    I need to have a re-sizable two-dimensional array. I achieve this by using ArrayList in combination with an array but I don't like it.

    In order to do something with data I have to get an array out of the ArrayList, modify it, and then place array back into the ArrayList. Very inconvenient

    Is there a collection class that would implement this behavior by default?

    Thanks

    DB:3.05:Choosing A Collection Type. z7

    You said it is bad because you have to get it out,
    modify it, and put it back in.

    Why are you doing that. You can just make achange
    directly.Can you give me an example? How would you change data
    directly without extracting it first?

    ThanksCollections do not contain your objects, they contain references to them. the objects exist independently of any references to it, including any references held in collections.

  • RELEVANCY SCORE 3.03

    DB:3.03:Strange Tftpdnld Behavior as



    I'm trying to tftp an image to a down 2600 router. I keep getting the following message:

    Not enough memory in the system to run this image

    Required pmem/iomem: 51459795/419430

    *** System received a Software forced crash ***

    I've confirmed multiple times that the router does have the right amount of memory (48/16). I've tried multiple images. I'm running out of ideas, anyone seen anything like this before?

    DB:3.03:Strange Tftpdnld Behavior as


    Try adjusting your I/O memeory allocation. It looks like you are using the default 25% (25% of 64Mb = 16Mb) If you do not need this much I/O memory

    adjust it to a smaller percentage, this will increase the amount of main memory available to the IOS. Looking at you error message you need 51Mb of main memory and 4Mb of I/O. An I/O memory percentage of 15% will give you a 54mb / 10Mb split.

    The command to change this is:

    memory-size iomem 15

    You will need to reboot the router after entering this command

  • RELEVANCY SCORE 3.03

    DB:3.03:Strange Behavior Of Like Operator mk


    This is not what I would expect:
     
    ?abcd xy abcd like *abcd*xy*
    False
    ?abcd xy like *abcd*xy*
    True
     
    It seems to have something to do with the section of the pattern being repeated in the string.
     Is this a known behavior?  Is it an explained behavior?

    DB:3.03:Strange Behavior Of Like Operator mk

     Thank you for checking.  Nice to know it will be fixed when I eventually change to the new version.  And good to know I'm not crazy.  (I switched to a regex for what I was trying to do so I have a work around).

  • RELEVANCY SCORE 3.03

    DB:3.03:Strange Scrollbar Behavior cf



    Hi,

    while programming an application I clicked somewhere on the horizontal scrollbar and then the scrollbar was in the middle of the frontpanel.

    I have no idea how this happens

    Never seen this before!!?!

    Anyone has idea how to change this back to normal?

    regards timo




    ---

    DB:3.03:Strange Scrollbar Behavior cf


    Hi Timo,

    Good afternoon and I hope your well today.

    I am a little unsure what your issue is exactly, but maybe the following will help.

    There are two methods to creating a Horizontal scrollbar,

    1) Right-click the scrollbar and select Horizontal Scrollbar Always On

    2) On the front panel go to ModernContainersHorizontal Splitter Bar.

    I imagine you did number 1.

    Now to remove it you have to methods,

    1) Right-click the right hand scroll bar (as before) and select Always Off.

    2) Right-click the created horizontal scrollbar and select Remove with adjoining splitters.

    If you cant move the scrollbar to where you want, I would make sure the scrollbar isn't locked. You can check this by selecting the scrollbar, right click and uncheck Locked.

    To achieve the results you have, I firstly created a horizontal splitter. The by selecting the Right hand side scrollbar in the top pane select Horizontal bar Always On.

    I hope this helps,




    Kind Regards James Hillman Applications Engineer 2008 to 2009 National Instruments UK Ireland Loughborough University UK - 2006 to 2011Remember Kudos those who help!

  • RELEVANCY SCORE 3.02

    DB:3.02:Thread: Strange Client Behavior - 4.91.5 mx


    Windows XP sp3, I have an open dos box. I\'m mapping the drive by right clicking on the N in the tray.

    I\'m reading the directory structure and writing it to a file (I know there\'s better ways to do this)

    G:\\DIR /AD /S VOLDIR.TXT

    I change the output file name each time.

    It reads the correct directory, but all the files are output on the first volume that I mapped. It\'s a good thing I changed the name of each volume or I\'d be doing this all over again.

    Strange.

    DB:3.02:Thread: Strange Client Behavior - 4.91.5 mx

    Yes, that\'s what I\'m doing. The dir command reads the correct directory, but the output file is saved on the originally mapped drive, not the directory it is reading.

    I didn\'t do any troubleshooting to see if closing and opening the command window made any difference.

  • RELEVANCY SCORE 3.01

    DB:3.01:Emtpy Argument Becomes Null? ck



    One thing I've noticed is that the method I'm trying to call on my endpoint takes two parameters the second of which is a String[]. The client code I'm using passes an empty array for the second parameter. However, by the time it gets to the endpoint, the array is null. Is that an expected behavior?

    DB:3.01:Emtpy Argument Becomes Null? ck


    Hi,I see "JBossWS provides support for WS-I AP 1.0".And WS-I 1.0 says :http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16556272Here is the correct definition of an array :
    xsd:element name="MyArray1" type="tns:MyArray1Type"/

    xsd:complexType name="MyArray1Type"
    xsd:sequence
    xsd:element name="x" type="xsd:string"
    minOccurs="0" maxOccurs="unbounded"/
    /xsd:sequence
    /xsd:complexType

  • RELEVANCY SCORE 3.01

    DB:3.01:Filesystemview-Getroots Strange Behavior pm


    Hi,

    I want to create a FileTree...
    For the root i use FileSystemView.getRoots[0] which is the Desktop.
    But if i iterate through the array there are many other File-Objects listed, multiple times e.g. C:\Programme\ACD Systems\ACDSee\9.0\ACDSeeQV.exe more then 10 times... can i get a description of this behavior?

    Thank you

    Olek

    DB:3.01:Filesystemview-Getroots Strange Behavior pm

    Hi,

    I want to create a FileTree...
    For the root i use FileSystemView.getRoots[0] which is the Desktop.
    But if i iterate through the array there are many other File-Objects listed, multiple times e.g. C:\Programme\ACD Systems\ACDSee\9.0\ACDSeeQV.exe more then 10 times... can i get a description of this behavior?

    Thank you

    Olek

  • RELEVANCY SCORE 2.99

    DB:2.99:Create An Array Of Array sx



    Hello,

    How can I create an array of array please?

    Regards,

    Peter




    Peter. Labview 2010

  • RELEVANCY SCORE 2.98

    DB:2.98:Re: Strange Behavior Of Workflow 87


    Romain,How to deactivate the edition?Best regards

    DB:2.98:Re: Strange Behavior Of Workflow 87

    Thanks, I think while maybe someone take this behavior as reasonable, but others may don't, in anyway, if it's the behavior of OOTB feature, I would end this discussion.Best regards

  • RELEVANCY SCORE 2.98

    DB:2.98:Initialize Recursive Array - Array Keeps Old Values? xs



    Hello together,
    i have trouble with using recursive arrays. Running the program the first time works fine, but when I start it a second time the old values in the array are not replaced. They are only replaced, when i have edited the programm code before running the prog. It's very strange...

    Here is the prog:

    Everytime I run the program the Array should have the size 3 (not 6, 9, ...). How to do this?

    The problem might be, that i haven't initialized the array, but how can this be done with recursive used arrays?

    An invoke node to reset the output array at the start of the programwon't help.

    Does anybody have a solution?

    Thanksa lot,
    -Peter
    Message Edited by FaNan on 07-06-2007 03:09 AM

    DB:2.98:Initialize Recursive Array - Array Keeps Old Values? xs

    Hi sowji,you can't convert a BMP to a JPG just by renaming!Please attach other picture formats here - your 447kb BMP can be converted e.g to a 10kb PNG...



    Best regards,GerdWCLAD, using 2009SP1 + LV2011SP1 + LV2014f1 on WinXP+Win7+cRIOKudos are welcome

  • RELEVANCY SCORE 2.97

    DB:2.97:Append Excel Arrays With Or Without Vba And Some Strange Excel Bahavior 7k


    Recently I needed to create a matrix joined from 2 matrices [or named formulas if it suites you], in Excel. Appending a matrix to another is not done easily in Excel. Even when it is done, Excel demonstrates a very peculiar behavior. Here is the “story”:
    After creating a VBA solution (code at Bottom), as always, I tried to do it the Excel way (noVBA). Having read many articles and seen many people confusing Append for Concatenate, I thought of a nice way to join them using IF and INDEX(). And although it
    seems to work, I have noticed strange things. I explain steps to get the idea and reach the problems:

    · (Named ranges or Matrices or Arrays, all refer to same thing… here at least.)· Create an array from visible elements and call it Randoms, single column· Create another array from visible elements and call it smRandoms, different size than Randoms but single Column again· Create an index array {1,2,3,…} using the formula RowsAll =Row(Indirect(“1:”(rows(Randoms)+rows(smRandoms))))

    Now the idea is to create the array Joined containing both Randoms and smRandoms:

    Joined(1 to rows(Randoms) ) =Randoms()
    and
    Joined(rows(Randoms)+1 to rows(RowsAll)) = smRandoms
    , that is append array smRandoms to array Randoms.

    One formula that comes in mind immediately is:
    =if(RowsAllrows(Random) , Index(smRandoms,RowsAll-rows(Randoms)) , Randoms)
    But this doesn’t work !!! The results are:
    Joined(1 to rows(Randoms) -1) =Randoms()
    and
    Joined(rows(Randoms) to rows(RowsAll)) = #N/A
    !!(1)!!
    Now correcting to
    =if(RowsAllrows(Random) , Index(smRandoms,RowsAll-rows(Randoms)) , Index(Randoms,RowsAll)
    )
    Seems to work better, but again the results are:
    Joined(1 to rows(Randoms) -1) =Randoms()
    and
    Joined(rows(Randoms)+1 to rows(RowsAll)) = smRandoms()
    BUT Joined(rows(Randoms)) = #N/A
    !!(2)!!

    That’s odd! It "eats" one element from Randoms producing #N/A!
    Testing with
    =IF(RowsAllROWS(Randoms) , "-" , INDEX(Randoms,RowsAll))
    replicates Randoms ok ( from 1 to Rows(Randoms) , no eaten elements here)
    Testing with
    =IF(RowsAllROWS(Randoms) , INDEX(smRandoms,RowsAll-ROWS(Randoms)) ,
    "-")
    replicates smRandoms ok, but Still there is the #N/A at end of “-“ …
    So the main question here is why did this #N/A popup in the middle of my matrix? Is it from Index() behavior, Excel bug, my fault …?
    !!(2)!!
    The work-around here is to put the smRandoms in opposite order (ok, my lists are still lists, but is this a solution???) like this:
    =IF(RowsAllROWS(Randoms),INDEX(smRandoms, ROWS(RowsAll)-RowsAll+1 ),INDEX(Randoms,RowsAll))
    This is literally a work-around since smRandoms’ elements have opposite order in Joined!

    Another question is why does it not work with simple Randoms and it needs index(Randoms, …)
    !!(1)!!

    Seems I’ll stick with the VBA solution, but still I wonder for the behavior of excel.

    ‘---------------CODE HERE--------------------
    ' AppendArrays: Appends Excel Vertical Arrays one after the other...
    ' Use Transpose to append Horizontal ones till it get's fixed
    ' Added On Error-Resume-Next-0 to deal with Array() VS Variant() cases
    ' by Apostolos55
    Public Function AppendArrays(ParamArray Aprm()) As Variant
    Dim Dum(), Asm, NewSz As Long, Icr As Long, Ilcl As Long, Ai, SmSz As Long
    ' Find and fix the Size for the resuling array
    On Error Resume Next
    SmSz = 1
    For Each Asm In Aprm
    NewSz = UBound(Asm, 1) - LBound(Asm, 1) + 1 + NewSz
    If LBound(Asm, 1) SmSz Then SmSz = 0
    NewSz = NewSz + Asm.Count
    Next
    If SmSz = 0 Then NewSz = NewSz - 1
    ReDim Dum(SmSz To NewSz, 1 To 1)
    ' Append is done here
    Icr = SmSz
    For Each Asm In Aprm
    For Each Ai In Asm:
    Dum(Icr, 1) = Ai:
    Icr = Icr + 1:
    Next
    Next

    AppendArrays = Dum: Dum = Array()
    End Function
    ‘--------------------END OF CODE--------------------

    Question is also asked
    here

    DB:2.97:Append Excel Arrays With Or Without Vba And Some Strange Excel Bahavior 7k

    The code is very nice but it reads data in rows and writes them in columns.

    Question 1) : I believe it is a fault of putting in one formula many Arrays of different sizes. Can anyone verify this?
    Question 2): Don't know, the above case obviously doesn't much since elements are taken though Index function. Plus that normally that element is already processed when the effect from the 2nd Array turns it #N/A...

    I've changed the code above, now it stores the data by rows.

    1) Yes, this a problem with formulas.

    2) No.

    You can append multidimensional arrays, but there are so many
    possibilities, the question is
    how should the result be?

    If we have this situation (CSV style):

    1;2;3
    4,5;6

    a;c
    b;d

    What result would you expect?

    Andreas.

  • RELEVANCY SCORE 2.97

    DB:2.97:Counter Read Buffer.Vi Gives Faulty Output 3m


    Hello, I am using a PCI-6602 card to read TTL pulses at 2kHz from a photodetection package. I want to measure the signal (for 1 second) given by the photodetector when the room is darkened, and I get a 1D 2000 bin array of buffered counts. Usually, the array is a collection of numbers ranging from 0-3, however, towards the end of the array, I always get a number close to the U32 limit (2^32). Sometimes I even get 2 or 3 numbers well over 2000000000 scattered within the last 10-20 bins of the array. I know that this cannot be a real representation of captured TTL pulses, since my photodetector TTL count rate cannot exceed 100MHz (or 50000 counts per bin in this case). I have checked the representation of all arrays concerned with creating/managing this data, and they are all set as U32. If anyone is able to explain why I may be getting these strange results, I would appreciate it.Oh, and I am using LabVIEW 6.1 and running the card in a Windows XP Pro box with an AMD Athlon 64 3700+ (~2.41 GHz) w/2 GB RAM. Surely, this aberrant behavior isn't due to the computer being too slow, could it?Thanks,~Dave

    DB:2.97:Counter Read Buffer.Vi Gives Faulty Output 3m

    Hi again Kevin P.,I have changed my .vi to use the size of the output array minus one as N for the FOR loop. I was not aware of a timeout setting on the counter read vi, but will look into as soon as I get back to my machine. Thank you very much for your help. After ~3 years of using LabVIEW I find that I am still a complete noob, haha.Regards,~Dave

  • RELEVANCY SCORE 2.95

    DB:2.95:Shift Register Shortcut 1x



    hello all,

    I found myself writing what seemed like unecessarily long code again today. It looked something like this:

    array[0] = input; array[1] = array[0]; array[2] = array[1]; array[3] = array[2]; array[4] = array[3]; array[5] = array[4]; array[6] = array[5]; array[7] = array[6]; array[8] = array[7]; array[9] = array[8]; array[10] = array[9]; array[11] = array[10]; array[12] = array[11]; array[13] = array[12]; array[14] = array[13]; array[15] = array[14]; array[16] = array[15]; array[17] = array[16]; array[18] = array[17]; array[19] = array[18]; array[20] = array[19]; array[21] = array[20]; array[22] = array[21]; array[23] = array[22]; array[24] = array[23]; array[25] = array[24]; array[26] = array[25]; array[27] = array[26]; array[28] = array[27]; array[29] = array[28]; array[30] = array[29]; array[31] = array[30];output = array[31];

    Basically, just a giant shift register that delayed the input by 32 clocks before it outputted it. Is there a faster/more concise way to write this? Seems like an unnecessarily long block of code for such a simple (and repetitive) operation.

    Thanks

    DB:2.95:Shift Register Shortcut 1x


    I'm sure your favorite HDL textbook has this sort of example. In VHDL it's:

    ShiftRegister : process (clk) is

    begin

    if rising_edge(clk) then

    array = array(array'left - 1 downto 0) input;

    end if;

    end process ShiftRegister;

    Simple.




    ----------------------------------------------------------------Yes, I do this for a living.

  • RELEVANCY SCORE 2.94

    DB:2.94:Rs.Movenext &Amp; Eof 3j


    I got a strange behavior with the MoveNext EOF method of the RecordSet object of OO4O

    Look at this sample code :
    (myRS is a recordset object)
    ...
    ...
    Do While Not myRS.EOF()
    i=i+1
    myVar(i) = myRS.Fields("MYFIELD").Value
    myRS.MoveNext
    Loop
    ...
    ...

    I believe that when the myRS object retrieves a quantity of data bigger than 2kb (oracle page?!?) then the last record is duplicated in my array myVAR (if in the table there is N elements, i'll get N+1 element in my array myVar). It looks like the last MoveNext will not flag the myRS.EOF() and still point to the same data.

    This problem doesn't exist in Oracle 7.3.4 and OO4O 2.2 and appears in Oracle 8.1.6 and its appropriate OO4O

    Can someone tell me if he got the same behavior or if it's a known problem... i can't see any information on it.

    Thank You

    DB:2.94:Rs.Movenext &Amp; Eof 3j

    I got a strange behavior with the MoveNext EOF method of the RecordSet object of OO4O

    Look at this sample code :
    (myRS is a recordset object)
    ...
    ...
    Do While Not myRS.EOF()
    i=i+1
    myVar(i) = myRS.Fields("MYFIELD").Value
    myRS.MoveNext
    Loop
    ...
    ...

    I believe that when the myRS object retrieves a quantity of data bigger than 2kb (oracle page?!?) then the last record is duplicated in my array myVAR (if in the table there is N elements, i'll get N+1 element in my array myVar). It looks like the last MoveNext will not flag the myRS.EOF() and still point to the same data.

    This problem doesn't exist in Oracle 7.3.4 and OO4O 2.2 and appears in Oracle 8.1.6 and its appropriate OO4O

    Can someone tell me if he got the same behavior or if it's a known problem... i can't see any information on it.

    Thank You

  • RELEVANCY SCORE 2.93

    DB:2.93:Strange Behavior Of The While Loop aj



    Dear LabVIEW experts

    I would like to ask you for providing me an explanation of behavior of the very simple VI in attachment. This VI contains one WHILE loop with three input parameters FROM, TO and STEP. The RESULT array shows computed values. If we consider input parameters FROM = 0, TO = 1, STEP = 0.1, then RESULT array contains values 0, 0.1, 0.2, ......, 0.9, 1. If we consider input parameters FROM = 1, TO = 2, STEP = 0.1, then RESULT array contains values 1, 1.1, 1.2, ......, 1.8, 1.9. The question is, why the number 2 is missing? (I was also trying to use different data-types,but without success). Thank you for your thoughts.

    Juraj







    Solved!
    Go to Solution.

    DB:2.93:Strange Behavior Of The While Loop aj


    Thanks, ramp pattern is exactly what I was looking for

  • RELEVANCY SCORE 2.93

    DB:2.93:Strange Behavior Regarding Dimension Statements aa



    I am a Sys Admin. I do NOT know FORTRAN. However, I am seeking your guidance regarding "FORTRAN 10.0.023" on behave of a researcher who reports to me that changing only the DIMENSION statement defining the size of an array results in different/unexpected computed values. From our perspective, an algorithm using an array size of, say, 100, should work exactly the same for an array size of, say 100000, for those 100 elements.

    All suggestions are welcomed,

    Mike

    DB:2.93:Strange Behavior Regarding Dimension Statements aa

    boxyzzy:

    PS Is there a forum for Sys Admins? I have a seperate unrelated issue for which I need guidance.

    If you have an Admin question related to Fortran, just ask it here. Fortran does not have well-organized conventions. For example, people working with modules tend to put public binary .mod files in either /usr/include or /usr/lib, both of which are wrong. Fortran has no ABI or file-format standards, so they are application-specific files and should go somewhere like /usr/lib/ifort-10.0.

  • RELEVANCY SCORE 2.93

    DB:2.93:Compiler Error #8284 s3



    Hi,

    I am experiencing a strange behavior with Intel(R) Visual Fortran Compiler XE on IA-32, version 12.1.6 Package ID: w_fcompxe_2011.12.369.

    I have a file which compiles and works fine with CVF 6.6c. Hoever when I try to compile the same file with the Intel compiler I get the error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.

    I understand what does this means, but what I don't understand is why the error is generated.

    The file I try to compile is probably too complex to send it as is so I will try to explain what I am doing.

    The file contains one subroutine in which I have two arrays of doubles, one being declared as allocatable with the target attribute (PARG) and the second one is declared with the pointer trribute (PAR).

    real(8), allocatable, target :: PARG(:)
    real(8), pointer :: PAR(:)

    During the execution, the PAR array is mapped to the PARG array:

    PAR = PARG(1:NPTS(K))

    I have a lot of calls to other subroutines in which some of the arguments are passed as part of the PAR array (let say PAR(JP) for example),

    In the called subroutines, the dummy argument is declared as an array (let say P(N) for example) and is in fact a sub-array of the main array PAR and this is the source of the compiler error.

    What I don't understand is why I cannot do like this (I guess that if the PAR array did not have the pointer or allocatable attribute the error will not be triggered).

    As mentioned at the beginning, this is working fine with CVF 6.6c. Is it really an error? or is it possible to ignore it ?

    Best regards,

    Phil.

    DB:2.93:Compiler Error #8284 s3


    Thanks again Steve

    You really deserve your title of Dr Fortran !

    I will look at the related document to see if I can use this method for loading procedures from external dynamically loaded dlls.

    Best regards,

    Phil.

  • RELEVANCY SCORE 2.92

    DB:2.92:Strange Interleave Behavior 7m


    I am seeing some strange behavior of an interleave in one of my services.  When I put some receivers in the concurrent group, they don’t get activated.  But when they are in the exclusive group, everything works fine.  Does anyone know what would cause such behavior? 
     
    Here is a code snipit.  When the lines marked with “todo” are put in the concurrent section, they do not get activated.  The timer goes off every 100 ms.

    DB:2.92:Strange Interleave Behavior 7m

    integrating CCR into the mainline MS development tools will give us exactly these type of tools. Until then, we are actually working on some cool visualization that might help, at least the DSS messaging level
     

  • RELEVANCY SCORE 2.92

    DB:2.92:Can't Index Array Into Formula Node zs



    Hello,I just upgraded from LV2011 to 32 bit LV2012 on a 64 bit Windows 7 machine. I have some simple code that ran under 2011 and no longer works. I've attached screen shots and a simplified version of the code to this post. I'm indexing an array and putting it into a formula node and then copying the input to the output. If I index the array using the loop iterator or a manual iterator I get nonsense as an output. If I wire a constant, so it only picks out one column I get the expected result for using only one column.This seems like particularly strange behavior, possibly a problem with LV. I have implemented a simple work around in my program but would like to know why this is a problem with version 2012. I would appreciate opinions and help.Thanks,Ed










    Attachments:







    example_runs.JPG ‏238 KB

    DB:2.92:Can't Index Array Into Formula Node zs


    HI edward_01,

    Actually this is a known issue that was reported to RD recently. A Corrective Action Request (CAR) has been created and you may check the "LabVIEW Release Notes" of future versions to verify if this behavior has been corrected. The CAR# for this issue is 369437.

    Regards,

    Minor Coto

    Applications Engenieer

    National Instruments

  • RELEVANCY SCORE 2.92

    DB:2.92:Comment At The Beginning Of A Query With Static Cursor - Error: Cursor Type Changed p9


    Hello guys,
    I've got a strange problem: (PHP5.3, Zend Server 5.0, SqlServer 2000 and 2005 (both have the same behavior))
    Following code:

    $options = array(
    'Database' = 'Testdb',
    'ReturnDatesAsStrings' = true,
    'MultipleActiveResultSets' = false
    );

    $conn = sqlsrv_connect('dev001',$options);

    $query = sqlsrv_query($conn, '/*--Keks--*/ select * from DataTest order by Id desc',array(),array('Scrollable' = 'static'));

    print_r(sqlsrv_errors());

    echo Count: .sqlsrv_num_rows($query);

    When I'm trying this code without the comment block at the beginning of the query it all works fine. But with that code I'm getting the following error array:

    Array
    (
    [0] = Array
    (
    [0] = 01S02
    [SQLSTATE] = 01S02
    [1] = 0
    [code] = 0
    [2] = [Microsoft][SQL Server Native Client 10.0]Cursor type changed
    [message] = [Microsoft][SQL Server Native Client 10.0]Cursor type changed
    )

    )

    I'm using the comment block in my framework to make it possible to profile from which script the query originally came.
    Does anyone have an idea, how to fix that?
    Greetings
    -Thomas

    DB:2.92:Comment At The Beginning Of A Query With Static Cursor - Error: Cursor Type Changed p9

    Hello Thomas,
    I have tracked down the bug in the system and it appears that it is indeed a bug in theSQL Server Native Client, and not inthe PHP Driver. They are investigating it for the next major release. As the

    PHP Driver depends on the Native Client, we need to wait for them to fix it.
    In the meantime, the workaround provided should help you with this. Please let me know if you have any other queries regarding this issue.
    Thanks,
    Jonathan

    This posting is provided AS IS with no warranties, and confers no rights.

  • RELEVANCY SCORE 2.91

    DB:2.91:Reference To An Int Array 1z


    I was trying to understand the working of a reference to an int array and a pointer to an int array as parameters to a function. For example, a reference to an int array would be void func (int (arr)[] ) and pointer to an int array would be void func(int (*arr)[]) But it seems like for a reference to an int array, you must specify a size for the array but for the pointer case, size is not required. In other words, void func (int (arr)[4] ) works but void func (int (arr)[] ) doesn't whereas void func(int (*arr)[]) works fine. Any idea why this behavior. Thanks, Karthik

    DB:2.91:Reference To An Int Array 1z

    Yes: you are correct: in both cases you must specify the number of elements in the array.

  • RELEVANCY SCORE 2.91

    DB:2.91:String.Replaceall Strange Behavior... f8


    I have found strange behavior of String.replaceAll method:

    "aaaabaaaa".replaceAll("b","a"); // working fine

    "aaaabaaaa".replaceAll("b","a${"); // throws an exceptionThat could be probably a bug?

    p.s. using jdk_1.6.0_12-b04

    DB:2.91:String.Replaceall Strange Behavior... f8

    codingMonkey wrote:
    BigDaddyLoveHandles wrote:
    If you don't have a regex pattern, its simpler to use replace:

    String result = "ababa".replace("b","a${"); //aa${aa${aDespite the lack of the word "all" in the method name, this does replace all occurrences of "b" by "a${".I do believe that you have found a bug! ;-)Now should I explain "Buuml;gger!" or "Buuml;gger all!"

  • RELEVANCY SCORE 2.91

    DB:2.91:Strange Bd/Dvd Player Behavior On Qosmio X875 f1



    what I mean as strange is the behavior of dvd player, that randomly seems to check if dvds are inserted, even if there aren't.

    Did someone else notice this? What it could be?

    thanks

    Angelo

    DB:2.91:Strange Bd/Dvd Player Behavior On Qosmio X875 f1


    I am seeing the same issue with the BD-DVD drive. It was like this the day I got it 2 months ago. I found that if I put a blank DVD in the drive, the periodic access attempts stop. Almost as if I fed it, and it's no longer hungry.

    Anyone know how to stop this meaningless periodic drive activity? The noiseperiodic has becomereally annoying.

  • RELEVANCY SCORE 2.90

    DB:2.90:Wcf And Web Services zm


    Hi2All!
    I have WCF service, hosted in IIS 6.
    Contract:

    [ServiceContract]
    public interface IVideoFileContract
    {
    // ... some methods
    [OperationContract]
    TagEntity[] GetTags();
    }
    Web.config:

    system.serviceModel
    services
    service name=VService.VideoFileService behaviorConfiguration=VService.VideoFileServiceBehavior
    !-- Service Endpoints --
    endpoint address= binding=wsHttpBinding contract=VService.IVideoFileContract /
    /service
    /services
    behaviors
    serviceBehaviors
    behavior name=VService.VideoFileServiceBehavior
    serviceMetadata httpGetEnabled=true /
    serviceDebug includeExceptionDetailInFaults=false /
    /behavior
    /serviceBehaviors
    /behaviors
    /system.serviceModel
    I have WinForms client application, where I call the methods of contract:

    string address = textEdit1.Text;
    ChannelFactoryIVideoFileContract _factory = null;
    IVideoFileContract _remObject = null;
    WSHttpBinding binding = new WSHttpBinding();
    ChannelFactoryIVideoFileContract _factory =
    new ChannelFactoryIVideoFileContract(binding, new EndpointAddress(address));
    _remObject = _factory.CreateChannel();
    When I call the methods of contract from WinForms client application, all is ok. Service Returns array of TagEntity[], which contains of 9 elements.
     
    Ok, then I create ASMX Web Service, from the body of it method I call WCF service the same as from WinForms client. But the GetTags() method return empty array! The implemetation of IVideoFileContract GetTags() return array of 9 entities, but Web service method receive an empty array (not null, and without any exceptions)!
    What the difference between 2 clients and why we have so strange result ? 

    DB:2.90:Wcf And Web Services zm

    The problem is resolved!
     
    I made a foolish mistake: TagEntity class at service and client side have a different namespace =)
    When I correct this error, all is work right!

  • RELEVANCY SCORE 2.89

    DB:2.89:Web Service Method Returns Null Instead Of Empty Array j7


    Hi,

    I have a web method which return type is SearchResult[]. The strange thing is that if I return an array of length 0 at the server, I always get NULL at the client. On the other hand, using an array of length 0 as argument on the client gives an array of length 0 at the server.

    Is there anyone who can give me a hint? I'm using JAX-WS 2.0 and tomcat 6.

    Thanks!

    DB:2.89:Web Service Method Returns Null Instead Of Empty Array j7

    Hi,

    I have a web method which return type is SearchResult[]. The strange thing is that if I return an array of length 0 at the server, I always get NULL at the client. On the other hand, using an array of length 0 as argument on the client gives an array of length 0 at the server.

    Is there anyone who can give me a hint? I'm using JAX-WS 2.0 and tomcat 6.

    Thanks!

  • RELEVANCY SCORE 2.88

    DB:2.88:Strange Behaviour Of "And Array Elements" 33


    If u connect an empty boolean array to "And Array Elements" function, The output is "True" !. Is this correct?. Is there something wrong ?. Please Help.

    DB:2.88:Strange Behaviour Of "And Array Elements" 33

    Hi J.A.C We both have the same answer 'cos were both NI. The support portal is our internal support site.Hi Luca greetings from UK.Nick

  • RELEVANCY SCORE 2.88

    DB:2.88:Heap Corruption On Deallocate 1d



     

    I have a complicated model - to convoluted to post here - and I am trying to debug some strange behavior. I occasionally get heap corruption errors at the end of the model run when it is deallocating memory. 

    I have created a simple test program hello.f90 which reproduces some of the really strange behavior that I see in our application.

    Any time the bounds of an array are exceeded - shame on me - it is the programmer's fault, but this behavior makes it really hard to figure out! Depending on the index that is exceeded - first or second of a 2D array - the program will raise a heap corruption error on deallocation or proceed without error when compiled with optimization.

    Obviously the thing to do is compile with check all and get a trace back to the line where the error occurs - but this still seems like bad behavior. I am really curious if someone can at least explain what is happening here!

    Here is a gist of the code: https://gist.github.com/dstuebe/7936460

    The exception raised by the OS is in the comments along with the version of Visual Studio/Fortran.

    Thanks 

    David

    DB:2.88:Heap Corruption On Deallocate 1d


    SRV*c:\symbols*http://msdl.microsoft.com/download/symbols*

    Of course instead of c:\symbols create your own directory.

  • RELEVANCY SCORE 2.87

    DB:2.87:Pupulating A Same Array In Multiple Configurations Inside If Statements xc



    Define it outside the IF statement. I'm not sure if you are trying to append to the array or not but if your just trying to reuse the same var and repopulate the values (which is what I think you want) then this below will be a good method. It uses builtin arrays instead of Javascript arrays (builtin arrays are faster and are type cast which is important for performance).

    var behavior : GameObject[]; // Behavior defined as GameObject array

    if(lifeforce == 5) {
    behavior = new GameObject[something.length]; // replace something.length with the array's intended length
    // Define the values of the array
    }

    if(lifeforce == 2) {
    behavior = new GameObject[something.length]; // replace something.length with the array's intended length
    // Define the values of the array
    }

    Instantiate(behavior[i],place,rotation);



    If you are trying to append the array and make it longer thats different. This above allows you to use the same var for both sets but not simultaneously. The array will populate when the condition is true. Don't forget to accept this if it answers your question so that others can search it.

    if(myVar == icosahdron) {
    behavior = new Vector3[20]; // Defines array of icosahdron
    for(var n = 0; n behavior.length; n++) {
    behavior[n].x = // Your math to create an Icosahdron X vert
    behavior[n].y = // Your math to create an Icosahdron Y vert
    behavior[n].z = // Your math to create an Icosahdron Y vert
    } // End For
    } // End IF



    This update will allow you scan through all the array indexes and populate the vector3 values very quickly and very efficiently. With that array you can do what you like.


    I'm at chow right now so I didn't have time to plug in the icosahdron math. It's on wiki so it shouldn't be too tough. I'd likely build a simple function to calculate the values of each vector3 and just call the function to populate the variables.


    Don't forget to accept an answer if it works for ya. ;-)

    DB:2.87:Pupulating A Same Array In Multiple Configurations Inside If Statements xc


    This solution also works:

    .......
    var tiling : Vector3[];
    }

    if (sides == 1){
    //TETRAHEDRON VERSION:

    var tile1 = new Array (Vector3(1, 1, 1), Vector3(1, -1, -1), Vector3(-1, 1, -1), Vector3(-1, -1, 1));
    tiling = tile1;
    }

    if (sides == 2){
    //6 SIDES CUBE

    var tile2 = new Array (Vector3(1, 0, 1), Vector3(1, 0, -1), Vector3(-1, 0, 1), Vector3(-1, 0, -1),Vector3(0, -0.1, 0), Vector3(0, .1, 0));
    tiling = tile2;
    }



    no error message

  • RELEVANCY SCORE 2.86

    DB:2.86:Problem Saving 2d Array To Binary File fj


    I am getting some strange results when trying to write a transposed 2D array of Unisgned 8-bit data to a binary file. Attached is an example program ("071026_ArraySave_Bug.vi") which demonstrates the suspicious behavior.

    The program generates a small 2D array of U8 data, then saves it to two temporary files using two different methods.
    1) Row-by-row: The 2D array is auto-indexed, and the indexed row is written to file at once (with the prepended size option disabled).
    2) Point-by-point: Two For loops are used to auto-index each element and write it to file individually.

    The saved files are then reopened and the data is read intotwo 1D arrays for display.

    The bug occurs when the generated 2D array is transposed before being saved to file. In the point-by-point method, the data is always saved to the file as desired, i.e. by row or by column depending on whether the data was transposed. However, in the row-by-row method the data is incorrectly saved when the input data is transposed. Without transposing the array, the row-by-row results are correct.

    Saving the array row-by-row is significantly faster for larger arrays, so this method is desired.

    Note that the option to transpose the input data in the attached VIis performed using a case structure with a boolean constant ("Bug Control"). This is important because:
    1) The bug does not occur if the boolean constant isreplaced witha control.
    2) The bug does not occur if the case structure is replaced with a "Select" node from the Comparison Palette.
    3) The bug still occurs if the case structure is removedsuch thatthe array is always transposed (i.e. keep the True case).

    For now, I have been able to circumvent the bug in practice by transposing the array and then passing it through a Select with a constant True (the False case uses the untransposed array). This allows the faster row-by-row method to be used without error, but requires new memory allocation for the transposed array.

    I will appreciate any help that can be given regarding this problem, or simply confirmation that it is indeed a bug in Labview 8.5. It is worth noting that the same program did not produce any errors when run in Labview 7.

    Thank you for your help,
    David Viggiano









    Attachments:







    071026_ArraySave_Bug.vi ‏29 KB

    DB:2.86:Problem Saving 2d Array To Binary File fj

    For your reference, here's the original discussion:

    http://forums.ni.com/ni/board/message?board.id=170​message.id=274905




    LabVIEW Champion . Do more with less code and in less time .

  • RELEVANCY SCORE 2.86

    DB:2.86:Bug: Byte Array Returned Instead Oracleblob k7


    We faced a strange behavior in the Oracle.ManagedDataAccess 4.121.1.0 driverWe are using simple ADO.NET connection to retrieve OracleBlob from a stored procedure adding two parameters- P_ID IN (the id of the row in the table)- P_BLOB_DATA OUT (the blob)PROCEDURE GET_BLOB(P_ID IN INT, P_BLOB_DATA OUT BLOB)We added the P_BLOB_DATA as an OracleParameter with ParameterDirection.Output.Executing command of type StoredProcedure sets the Value property in the OracleParameter to byte array instead OracleBlobNotes:We used the same implementation of our ORM which uses the unmanaged driver, and everything works perfectly.We set OracleBlob.Null to the Value property of OracleParameter during defining those parameters, but without success - the OracleDbType property returned OracleDbType.Blob value, but the Value was an byte arrayWe found a workaround for the issue: just set the property OracleDbType from the OracleParameter to the value retrieved from the same propertyoracleParameter.OracleDbType = oracleParameter.OracleDbType;Q: Is this a bug or a desired behavior (feature) ?

    DB:2.86:Bug: Byte Array Returned Instead Oracleblob k7

    Hello, thanks for the quick answer. I haven't looked at the forum for a while, I thought that I will receive an email (but never mind).Your project will work, because you are specifying the OracleDbType manually and I do not want to do that, I want, that the driver will do this for me like with the unmanaged provider and it seems that it is setting the type correctly, but the result is invalid.Please take my example below. I took the database method provided by you. Before execution and after execution the OracleDbType is set to Blob which is valid.Unfortunatelly the value before execution is of Oracle.ManagedDataAccess.Types.OracleBlob but after execution is of type System.Byte[]Workaround:When you will uncomment the line where I am calling the setter of the OracleDbType property with the value from the same property, then it works propertystatic void Main(string[] args)
    {
    var connectionString = "TYPE YOUR CONNECTION STRING HERE";
    using (var connection = new OracleConnection(connectionString))
    {
    connection.Open();
    var command = connection.CreateCommand();
    command.BindByName = true;
    command.CommandText = "GET_BLOB";
    command.CommandType = CommandType.StoredProcedure;

    var oracleParameter = command.CreateParameter();
    oracleParameter.ParameterName = "P_BLOB_DATA";
    oracleParameter.Direction = ParameterDirection.Output;
    oracleParameter.Value = new OracleBlob(connection);

    Console.WriteLine("P_BLOB_DATA OracleDbType = {0}", oracleParameter.OracleDbType);
    Console.WriteLine("P_BLOB_DATA value type = {0}", oracleParameter.Value.GetType());

    // BUG: Please note that I am not specifying the OracleDbType because it's already specified by the provider (see output), but...
    // oracleParameter.OracleDbType = oracleParameter.OracleDbType; // TODO: uncomment this line to make this working
    command.Parameters.Add(oracleParameter);

    var idParameter = command.CreateParameter();
    idParameter.ParameterName = "P_ID";
    idParameter.Direction = ParameterDirection.Input;
    idParameter.Value = 5;
    command.Parameters.Add(idParameter);

    command.ExecuteNonQuery();
    Console.WriteLine("## AFTER EXECUTION ##");
    // BUG: ... the result is a byte array instead of Blob
    var value = oracleParameter.Value;
    Console.WriteLine("P_BLOB_DATA OracleDbType = {0}", oracleParameter.OracleDbType);
    Console.WriteLine("P_BLOB_DATA value type = {0}", oracleParameter.Value.GetType());
    }

    Console.ReadLine();
    }

  • RELEVANCY SCORE 2.84

    DB:2.84:Strange Behaviour When Calling Wcf Service With Long Parameter cm


    Hi,
    I have a domain service that accepts a string parameter containing comma separated IDs of entities to return.
    I noticed that it starts to throw an error and behave strangely in VS2010 once the string exceed roughly 1470 characters (in my case corresponding to 233 entities). The error I get is 'Load opearation failed for query 'myQuery'. The remote server returned
    an error: NotFound.'
    When I remove just one ID and run the same query, it works.
    The strange behavior is that I set a breakpoint in the domain service and it gets hit when the string is short but doesn't even get hit when the length of the string exceeds those roughly 1470 characters!!!
    I suspect maybe it could have to do with the fact that in the domain service I parse the string, convert it to array of integers and then run the following query:
    myList=ObjectContext.myView.Where(d=customerIDs.Contains(d.customerID));
    Which I guess gets translated into a very long SQL query when the number if IDs in the int32 array customerIDs is more than 200. But at the same time I find it difficult to understand why doesn't the breakpoint get hit (and therefore the above mentioned
    code never exectuded).
    Any help is greatly appreacited.
    Jan

    DB:2.84:Strange Behaviour When Calling Wcf Service With Long Parameter cm

    By default, RIA serializes queries to the URL, but there is a maximum allows URL length. I'm guessing that you've run into it. Please take at look at
    http://forums.silverlight.net/forums/p/218303/520573.aspx#520573for workarounds.

  • RELEVANCY SCORE 2.84

    DB:2.84:Stack Overflow When A Large Array Is Passed To A Function 87



    I use Intel Visual Fortran 9.1 to compile a program on x64 xp. An array is passed to a function. When the array is small, everything is all right. But when the array is large, a stack overflow error occurs. As I know it is due to a temperary copy of the large array is being creating in the stack. But usually the address of the array should be passed to the function instead of the value of the array. Why this behavior exists? I try the compile option /noautomatic to prevent the compile from passing the array's values. But it is useless. How can I do to solve this error? Please help me.

    DB:2.84:Stack Overflow When A Large Array Is Passed To A Function 87


    The compiler thinks you're passing a non-contiguous arrsy to a routine which expects a contiguous array. This often happens with pointer arrays or if you pass an array slice with a stride other than 1. Because of this, the compiler has to construct a contiguous copy of the array and pass that- the copy goes on the stack by default.

    The best solution, if it works for your application, is to make the array contiguous. Second best is to have the routine accept the array as assumed-shape, with dimension (:), and provide an explicit interface visible to the caller. Third best is to set the Linker stack reserve size to a large enough value to permit the temp to be created. This is the /F switch to ifort or /link /stack:n switch at the end of the ifort line. Otherwise. use /heap-arrays which wull cause the compiler to allocate these temp copies on the heap.

    /automatic tells the compiler to allocate all variables on the stack, which makes the proble, worse.

    See the Newsletter articles in the sticky threads for more on these topics.

  • RELEVANCY SCORE 2.84

    DB:2.84:Foreach() Giving A Strange Cannot Convert Error? d7



    chatEntries is an array of strings in your code. You need to change it to:

    ChatEntries[] chatEntries;

    DB:2.84:Foreach() Giving A Strange Cannot Convert Error? d7



    chatEntries does not contain ChatEntries.




    If you want to use a array of chatEntries you need Declare it a array of ChatEntries like so:



    class ChatEntries
    {
    public string name = ;
    public string text = ;
    }
    .
    .
    .
    ChatEntries[] chatEntries = new ChatEntries[size]();




    and the foreach:



    foreach ( ChatEntries entry in chatEntries) {


    }



    Edit




    var is implicitly typed variables, typed by the compiler.




    From MSDN:






    Beginning in Visual C# 3.0, variables that are declared at method scope can have an implicit type var. An implicitly typed local variable is strongly typed just as if you had declared the type yourself, but the compiler determines the type. The following two declarations of i are functionally equivalent:functionally equivalent:



    var i = 10; // implicitly typed
    int i = 10; //explicitly typed

  • RELEVANCY SCORE 2.84

    DB:2.84:Array Subset Uses Twice As Much Memory a9



    I have been chasing a problem with running out of memory when manipulating large ammounts of acquired data.

    My attached vi exhibits some very strange behavior.

    My original code used "Array Subset" to clear the data in a shift register.

    My revised code just uses an empty constant.

    Question #1. Why should it take at least double (perhaps triple) the ammount of memory to store data using the Array subset method.

    and.. Why is the memory allocated before the "Array subset" is used.

    Question #2. Why am I seeing significant residual memory usage that is not being re-allocated

    Labview Version 9.0.1 (32-bit)




    iTm - Senior Systems Engineeruses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

    DB:2.84:Array Subset Uses Twice As Much Memory a9


    Many of your questions are answered in this tutorial (which, unfortunately, is somewhat dated). Also check out the In Place Element structure and the Data Value reference.

    You may also want to look at the Request Deallocation primitive. By default, LabVIEW keeps the memory allocated by a subVI around under the assumption that it will probably be used again if it was used once. You can get LabVIEW to release memory by using Request Deallocation. Be careful, however, as this can lead to major performance hits (which is why the default behavior exists).

    Another technique to clear memory is to use Reshape Arrayto clear an array (set to zero length). This lets LabVIEW know that you will no longer be using the old array size. It is also an inplace operation (as much as possible), so is fairly fast.

    If you have further questions, let us know.




    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • RELEVANCY SCORE 2.84

    DB:2.84:Some Strange Behavior z8


    I have found something in mathscript that I can't quite figure out.

    If I define the following:

    N = 8192
    fs = 1.92e9

    and then generate

    t = [0:1/fs1/fs*(N-1))]

    I get a array that is only 8191 long instead of 8192 which is what matlab gives me.

    What is more strange is that if I set N = 1024 then mathscript does in fact give me a 1024 elements. In fact every number I tried around 8192 gave the right result. When I change fs to something else I get the right number too. There is something to the relationship of fs to N which creates a special case that causes a drop of the last element?

    Thanks
    Jeff

    DB:2.84:Some Strange Behavior z8

    Hello Jeff,You have discovered a bug in MathScript. I have filed a CAR (#45TCCISF) and it should be fixed in a future release of LabVIEW. It looks like MathScript is only omitting the calculation of the last element and this is likely a rounding issue. For a workaround, you could manually compute the last element and append it to the matrix.Grant M.Staff Software Engineer | LabVIEW Math Signal Processing | National Instruments

  • RELEVANCY SCORE 2.83

    DB:2.83:What Is A 2d Array? ap



    A 2D Array is simply an array of arrays. Check this tutorial out: http://www.dotnetperls.com/2d-array

    DB:2.83:What Is A 2d Array? ap


    A 2D array has 2 dimensions, as opposed to a standard array that has 1 dimension.

    var myArray : int[]; // standard array
    var myArray2 : int[,]; // 2D array



    You access it with the x/y coordinates:

    var myArray2 = new int[50, 30];
    myArray2[45, 25] = 5;



    If performance is super-critical you may prefer to use a 1D array (which is faster than a 2D array), and treat it as a 2D array with a bit of math.

    var myArray = new int[50 * 30];
    myArray[45 + 25*50] = 5;



    But in most cases a 2D array would be preferable since it's easier to use.

  • RELEVANCY SCORE 2.83

    DB:2.83:Thread: [4.83sp3] Strange Behavior Under Windows 2000 : File Locked Can Bedeleted j9


    Hello,

    We have a NetWare 5.1 SP8 Server. The clients are under Windows 2000 Pro

    SP4, with the Novell Client 4.83SP3 version.

    Under Windows Explorer, I browse some directories on the NW Server. I

    know that some files are exclusively locked by an application.

    When I try to delete one of those files, it disappears from the Explorer

    without any error message. When I hit F5, the file reappears !

    The same behavior occurs in a DOS session.

    Any explanations ?

    TIA.

    Regards.

    -' + '-

    Stephane

    DB:2.83:Thread: [4.83sp3] Strange Behavior Under Windows 2000 : File Locked Can Bedeleted j9

    Hamish,

    Hamish wrote:

    I recall this occuring with 4.90 and being in a patch that was released,

    but wasn\'t aware of it with 4.83.

    Actually, it\'s the other way round. It only happens with 4.83. It

    started with NW5.1SP7 and still happens with SP8, but doesn\'t happen on

    older SPs. And it won\'t be fixed.

    CU,

    -' + '-

    Massimo Rosen

    Novell Product Support Forum Sysop

    No emails please!

    http://www.cfc-it.de

  • RELEVANCY SCORE 2.83

    DB:2.83:Adding Array Elements To An Array aj


    Hello!I tried to add elements from one array to another array using the InsertInArray node. Unfortunately I have a strange behavior doing this.I attached a simple sample scene, showing whats going wrong. In this sample I just insert 2 elements with the current frame number (held in an array) into another array. But the result is not the expected one. As result I expect a continous array with pairs of frame numbers:1-1-2-2-3-3-4-4-5-5.......but the result is1-1-1-1-1-1-1-1-5-5......I think this could be a bug in ICE....or can someone show me what I'm doing wrong?Thanks a lot!

    DB:2.83:Adding Array Elements To An Array aj

    I don't know what's wrong either, it seems to work though if you swap the inputs in the insert node

  • RELEVANCY SCORE 2.83

    DB:2.83:Three Dimensional Array Causing Repeating Pause In Movie a8


    I'm creating what is essentially a 3 dimensional array. It's
    an array of objects, and each of those objects (a map) contains a
    few properties, one of which is a two dimensional array of tile
    objects. The strange thing is that the act of pusing each of these
    map objects on the array causes my movie to run with a periodic
    (about once a second) pause. The more map objects are pushed onto
    the array, the longer the pause. In between the pause, the movie
    runs at what seems like normal speed.

    Does this sound normal? I can see the movie slowing down
    while building the 3 dimensional array, but once the array is built
    (and i've verified that it builds corrently- no endless loops or
    anything), even if I do absolutely NOTHING wtih it I still get the
    pause for as long as my movie runs...

    that's the part that really seems strange to me- the
    repeating pause is directly related to my pushing of the map
    objects onto an array... Even if I build all the map objects and
    don't push them onto an array, the movie plays fine...

    Any ideas or help would be appreciated. For anyone who is
    interested, the associated actionscript is attached. Thanks!

    DB:2.83:Three Dimensional Array Causing Repeating Pause In Movie a8

    anyone? I don't need a direct solution... if anything the
    biggest problem I'd like to understand is that if all my objects
    are already created (i.e. already stored in memory), and my array
    is already created- how can simply pushing the objects onto the
    array cause a recurring pause/performance hit- even if I don't use
    the objects (including the array) at all (? All the memory is
    allocated already- all i'm doing is pushing a reference to the
    object onto the array, right? If anything I would think there could
    be a performance hit WHILE pushing objects onto the array, but what
    the heck is creating the pause/performance issue the rest of the
    time?

    I would really appreciate any help, I don't know any flash
    experts in person, and I've been racking my brain on this
    one!

  • RELEVANCY SCORE 2.83

    DB:2.83:Timed Loop - Absolute Time Source Cause A Huge Delay Between Expected Time And Actual Time Instants 7a



    Hello everyone,

    I am facing a very strange behavior when using timed loop structures. At least, with all the tests I already performed I am still not able to explain what causes it.

    - When I am using a timed loop with an absolute time source a huge delay can be observed between the expected start time of each iteration and its actual start time.

    However if I use a relative time source instead, this behavior do not appear, thus, the start time and actual time are the same.

    To observe this behavior, I built up two similar VIs, both with timed loops (one with an absolute time source and the other with a relative time source), inside the timed loop only the expected and actual time instants are saved into an array, no more actions are performed.

    The results are shown below, they show two arrays one with the stored expected time instants and the other with the actual time instants. The time step used in these tests was 10ms. Even with larger time steps the same behavior can be verified (I have tested with 100ms and 1s).

    Absolute Time source results:

    (image will be added as soon as possible...)

    As you can notice, with an absolute time source, the delays between the expected time instant and the actual time instants are huge and their values are random. In this test case, with 10ms time steps, the delays observed are huge enough to make some of the timed events to be jumped off.

    Relative time source:

    (image will be added as soon as possible...)

    Here with the relative time source everything worked as I wanted and the expected time and actual time instants are the same!

    I am using LabVIEW 2012 SP1. I performed the same test on different company computers (similar machines) and the result was exactly the same. I also try to use LabVIEW 2010 and I observed the same behavior.

    Anyone has any idea to explain this strange behavior??

    I know my company's computers are a bit old and have a lot of stuff running on background, but if this was the reason for the delay, Why the same delay is not observed with both relative and absolute time sources?

    Thank you all.

    Regards,




    Diogo Ribeiro

    DB:2.83:Timed Loop - Absolute Time Source Cause A Huge Delay Between Expected Time And Actual Time Instants 7a


    Thanks for your help. I understand all you have mentioned...

    But in my example I was only running LabVIEW during tests and only one VI, with only one timed loop. I checked the amount of processor used during the execution of the code and it stays arround 7%, 8%. So, I think is not a problem of short resources, the processor is almost in idle state and there were pletty of memory available also. The desktop do not seem to stop at all. The cause of this beahvior must be something else... I am trying to understand it, bacause If I would be able to use the timed loop with the absolute time source, I will be able to synchronize the reading action and avoid polling!!

    I understand that, as I am using an windows OS, the timed loop may not respond at the exact instant specified, but I have very relaxed demands. But these delyas are too huge.

    It does not seem normal to me, that with the relative time source source the code runs at the proper time instants and with the absolute time source it does not... What is the big difference between these two time sources?? As far as I understand they came from the exact same source, they are only seen in a different manner by the timed loop. So, their beahvior should be similar, which is not the case, as I show you previously.

    Any more ideas??

    Thanks!!!

    Reagrds,




    Diogo Ribeiro

  • RELEVANCY SCORE 2.83

    DB:2.83:Apex_Items And Apex Global Arrays ap


    Hi,
    I'm using apex_item.checkbox and apex_item.text via an sql report like this:

    SELECT
    id,
    apex_item.checkbox(1,id) " ",
    apex_item.text(2,name) "name"
    FROM APEX_APPLICATION_FILES
    WHERE REGEXP_LIKE(name,'txt');and an after submit process like this:

    DECLARE
    BEGIN

    --Loop through the selected id
    FOR i in 1..apex_application.g_f01.COUNT
    LOOP
    IF apex_application.g_f01(i) IS NOT NULL
    THEN
    INSERT INTO INC9_TEST(t2)values(apex_application.g_f02(i));
    wwv_flow.debug('MY PROCESS:' || APEX_APPLICATION.G_F02(i));
    END IF;
    END LOOP;I've two rows sample data like:

    Id name
    1 abc
    2 defWhen I select the checkbox for Id 2, it keeps returning Id 1 in the apex_applicaiton.g_f01 global array instead of Id 2. But If I select both checkboxes, then it correctly loops through with id of 1 and 2. Does anyone know why this is happening and what the fix is for this strange behavior?

    Thanks

  • RELEVANCY SCORE 2.82

    DB:2.82:Vartype Vs Isobject 31


    Hi,
    I'm experiencing a strange behavior with the VarType Function
    I wanted to determine whether the element of an array was an object or not.

    Dim MyArray
    Dim Fso : Set Fso = wscript.CreateObject(Scripting.FileSystemObject)

    Redim MyArray(1)
    Set MyArray(0) = Fso.GetFile(C:\MyFile1.txt)
    Set MyArray(1) = Fso.GetFile(C:\MyFile2.txt)

    DB:2.82:Vartype Vs Isobject 31

    It is documented
    here (the Remarks section).Uros Calakovic

  • RELEVANCY SCORE 2.82

    DB:2.82:Automatic Initial Function On Custom Components 83


    Hello,

    I've spent several hours trying to find a way to realise my
    component. What I'd like to do is to create a custom component that
    will generate a number of canvas depending on the value passed to
    one property of my component.

    To do this I use a Repeater that uses an array which length
    is equal to the passed value of the property. The problem is that I
    need to define the length of the array depending of the value
    passed.

    One good and easy solution for me would be to use add a
    function that is executed when the component is instantiated (like
    a constructor), and use a for loop to fill in the Array. Such
    functions exist in some languuages such as init(). Does it exist
    too in Flex ? I've tried the initialize and creationComplete events
    too, but the for loop seems to be executed several times, strange
    behavior, filling up the Array and redefining it as empty again.

    Here is the code if you can help me. The solution might be
    quite easy I think, but I lack knowledge to find it.

    ?xml version="1.0" encoding="utf-8"?
    mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    mx:Script
    ![CDATA[

    import mx.controls.Alert;

    [Bindable] public var nbrCasesTotal:uint = 0;
    [Bindable] public var nbrCasesFilled:uint = 0;
    [Bindable] private var nbrCasesEmpty:uint = 0;
    [Bindable] public var colorCase:String = "#CC0000";
    [Bindable] public var widthCase:uint = 5;
    [Bindable] public var heightCase:uint = 5;

    // emulates the loop for the Repeater using dummy values
    [Bindable ] private var dataDummy:Array = new Array();

    public function init():void{
    for (var i:int=0; ithis.nbrCasesTotal; i++){
    this.dataDummy
    = i;
    }
    }

    ]]
    /mx:Script

    mx:Repeater dataProvider="{this.dataDummy}"

    mx:Canvas
    width="{widthCase}"
    height="{heightCase}"
    backgroundColor="{colorCase}"
    /

    /mx:Repeater

    Thanks a lot to anyone who can help

    DB:2.82:Automatic Initial Function On Custom Components 83

    The initialize or creationComplete events are where this sort
    of thing is normally done.

    Another solution is to use a setter function. f yo are not
    familiar with those, they are a way to implement a public property
    on a component that uses a function, so that you can perform work.

    So it would run when you passed the value into the component.
    this actually seems like the best way for you situation. Hereis an
    example (untested):

    [Bindable] private var _nbrCasesTotal:uint = 0; //the "_" is
    just a convention
    ...

    public function set nbrCasesTotal(value:uint):void { //note
    "set" is a separate word
    _nbrCasesTotal = value; //set the backing var (internal
    bindings will also fire)
    init();
    }

    Typically setters are used with getters:

    public function get nbrCasesTotal():uint {
    return _nbrCasesTotal; //return backing var value
    }

    Tracy

  • RELEVANCY SCORE 2.82

    DB:2.82:Strange Behavior Of Usercontrol_Sizechanged Event 3f



  • RELEVANCY SCORE 2.82

    DB:2.82:Error In Executing Statement, Resource Id #11 x9


    Having trouble with a PHP sqlsrv_execute.  Very strange behavior, bug?When attempting an INSERT that succeeds in different area of app, I get:Statement prepared. Error in executing statement. Resource id #11Array ( [0] = Array ( [0] = IMSSP [SQLSTATE] = IMSSP [1] = -14 [code] = -14 [2] = An invalid parameter was passed to sqlsrv_execute. [message] = An invalid parameter was passed to sqlsrv_execute. ) ) PHP Warning: sqlsrv_execute() expects parameter 1 to be resource, null givenEven if there is a NULL value, why would the statement fail to execute??If I let the app run through some error checking/business logic, the statement executes.  Any help is greatly appreciated.

    DB:2.82:Error In Executing Statement, Resource Id #11 x9

    I haven't seen a follow up to the questions and suggestions from Brian, Vimm and Jay.  If this is still an open issue, please let us know.  If you could provide a small snippet of code that would allow others to reproduce the problem, you'll be more likely to get a specific answer.David SceppaProgram Manager - SQL Server Driver for PHP

  • RELEVANCY SCORE 2.82

    DB:2.82:Strange Array Behavior jd



    I have included an (edited) screenshot of my program, and a screenshot of the excel data file and the expanded front panel array.

    As seen in [array building.jpg] my program builds 2 seperate arrays, each with 3 columns and 4 rows, and then populates the arrays (most of which has been cut out. the replace array subset functions used for inserting data are shown, but where it gets the data has been removed to make it a much smaller picture). The program then takes those arrays, does a bunch of math (some hard coded, some in the formula node) and then stores that data to a 1 column, 4 row array labled "AC/DC Diff," which is then decimated into its elements and stored to a data file.

    The second attachment [AC_DC difference.jpg] shows a screenshot of the data file, and a screenshot of the expanded AC/DC diff display on the front panel. Take a closer look and your will realize the strangeness. For some reason it stores the data in an offset-duplicate fashion on the front panel. In the data file, the data is perfectly fine, the correct numbers appear, but on the front panel it looks like it generates extra dimensions.

    I would have either expected the front panel display to be a single column, 4 row matrix of only data in the current iteration of the for loop, or a 2-D matrix containing all of the data, but as you can see, only data from the last iteration is present, and its duplicated in a strange fashion.










    Attachments:







    AC_DC difference.JPG ‏92 KB

    DB:2.82:Strange Array Behavior jd


    I don't really understand what you mean. As you mention correctly the "AC/DC Diff" array is inside the for loop. It's a 1D array (1x4). It will update the values after each iteration of the for loop, but if you look at it after executing the VI you'll only see the values from the last iteration.

    To see the values from all iterations you have to auto-index the 1D-array at the for loop border so you'll get a 2D array outside the loop.

  • RELEVANCY SCORE 2.82

    DB:2.82:Swapping Elements Of An Array mf


    stupid question
    how could i swap the element of an array where array[i] swaps with array[k]

    DB:2.82:Swapping Elements Of An Array mf

    You can do a simple method depending on your need to either loop

    y=1;
    for(x=0;xotherArray.length();x++)
    {
    firstArray[x]=otherArray[y];
    }

    if you are trying to swap all values from one array to another

    or
    for(x=0;xotherArray.length();x++)
    {
    tempArray[x]=firstArray[x];
    firstArray[x]=secondArray[x];
    secondArray[x]=tempArray[x];
    }

    if you want to swap same items in each array, at least as a really basic way of doing it. You may need alterations if the arrays are different lengths.

  • RELEVANCY SCORE 2.82

    DB:2.82:Re: Strange Behavior With For Loops And Array's 1m


    why such a large discrepancy?
    the only real difference is that their are 2 for
    loop's
    the number of assignment's to the array are the same.
    640*480 in both cases.But you do more calculations in the innermost loop in the 2-for-loop case. One multiplication and one addition extra. That adds up.

    DB:2.82:Re: Strange Behavior With For Loops And Array's 1m

    crunching some more number's

    source.newPixels();

    i have excellent speed here on testing this line alone.

    100 frames in milliseconds elapsed 60 seconds 0.06
    fps 1666.6667

    and testing these 3

    pc ++ ;
    Graphics g = strategy.getDrawGraphics();
    g.drawImage(img, 0, 0, w, h, this);
    strategy.show();

    i get the following

    100 frames in milliseconds elapsed 2090 seconds 2.09
    fps 47.846893

    so at best it seem's the bufferstrategy im useing is twice as slow as array assignment ? how can this be ?
    calling show() if i understand it right is bliting img to the system memory used for drawing which should be really fast why should this be
    the bottleneck of the program ?

  • RELEVANCY SCORE 2.82

    DB:2.82:Strange Classcastexception am


    Hello friends -

    My method returns an array of abstract objects. If I cast the array back into objects that extend that abstract object, I get a ClassCastException. If I cast the array back to Object[], I get no failure, and further, I can loop through that array and assign each value to a single abstract object of the same type in my previous test, it works fine.

    Am I going crazy? Any help is greatly appreciated.
    -cm

    DB:2.82:Strange Classcastexception am

    Thank you, friends.

    As predicted, the ghost in the machine was me. Also as predicted, paying more attention to the array type, regardless of the subclass of the contents allowed me to get my code operational.

    Thanks again!
    -cm

  • RELEVANCY SCORE 2.81

    DB:2.81:Exported Jpg - Strange Behavior 8c



    I am having a strange behavior. When I export my raw or dng file to jpg, the jpg thumbnail (in a standard windows viewer) looks strange, color is pinkish and washed out. However, the full size image looks fine. On the reverse, normal jpgs sent to me or right out of the camera look fine but the full size image in the same standard windows viewer look dark and very contrasty.

    Does anyone have an idea of what is happening?

    Jim

  • RELEVANCY SCORE 2.81

    DB:2.81:Strange Loop Behavior: Two Copies Of Variable? p3


    I've got some very strange behavior in very simple code. Trying to read a hex number and translate it using successive multiplication, each hex digit seems to be added to an alternate copy of the accumulating variable. The architecture is ARM, so I thought of register bank switching, but the generated code is using registers from 0 to 7. Anyone ever see something like this before?

    DB:2.81:Strange Loop Behavior: Two Copies Of Variable? p3

    Sten, my first reaction when I read your post was "I've gone over that already . . ."

  • RELEVANCY SCORE 2.81

    DB:2.81:K70 Rgb Strange Behavior Of Key Remap In Cue jk


    Hello to all,

  • RELEVANCY SCORE 2.80

    DB:2.80:Cuepointmanager Class 3m


    Hello!

    I'm experiencing some strange behavior when using the
    CuePointManager
    class. It doesn't seem to be able to sort the cue points
    correctly.

    My cue points are loaded from a database using AMFPHP 1.9,
    and then
    put into an array. I've also created a static array in the
    actionscript, just to compare the results, and they are
    identical. So,
    I've excluded the formatting of the result as a possible
    source for
    this strange behaviour.

    The cue points are attached to the VideoDisplay component
    like this:

    videoDisplay.cuePointManager.setCuePoints(cuePoints);

    where cuePoints is an Array, and videoDisplay is the id for
    the
    videoDisplay component.

    It seems to be going fine, but it doesn't. When I trace the
    Array
    after getting it from AMFPHP it looks right. But when I trace
    the cue
    points from the videoDisplay component, the sorting is not
    only
    reversed, but all cue points placed before 10 seconds are
    also
    reversed.

    The sorting of the Array after getting it from the database:
    3.05
    5.8
    7.43
    12.48
    14.5
    18.5
    21.44
    23.57
    27.06
    34.3
    50.9

    The sorting after attaching it to the VideoDisplay component:
    50.9
    34.3
    27.06
    23.57
    21.44
    18.5
    14.5
    12.48
    3.05
    5.8
    7.43

    In the first example the Array starts with the lowest number
    and ends
    up at the highest, which is how I like it. But after adding
    it to the
    VideoDisplay component, it starts at the top, going down to
    12.48, and
    then reverses the order of the lower numbers.

    I can't find any solution to this. Am I doing it wrong, or is
    there
    something wrong with the CuePointManager class?

    Best regards,
    Thomas Viktil
    Onkel Estrup AS

    DB:2.80:Cuepointmanager Class 3m

    Hello!

    I'm experiencing some strange behavior when using the
    CuePointManager
    class. It doesn't seem to be able to sort the cue points
    correctly.

    My cue points are loaded from a database using AMFPHP 1.9,
    and then
    put into an array. I've also created a static array in the
    actionscript, just to compare the results, and they are
    identical. So,
    I've excluded the formatting of the result as a possible
    source for
    this strange behaviour.

    The cue points are attached to the VideoDisplay component
    like this:

    videoDisplay.cuePointManager.setCuePoints(cuePoints);

    where cuePoints is an Array, and videoDisplay is the id for
    the
    videoDisplay component.

    It seems to be going fine, but it doesn't. When I trace the
    Array
    after getting it from AMFPHP it looks right. But when I trace
    the cue
    points from the videoDisplay component, the sorting is not
    only
    reversed, but all cue points placed before 10 seconds are
    also
    reversed.

    The sorting of the Array after getting it from the database:
    3.05
    5.8
    7.43
    12.48
    14.5
    18.5
    21.44
    23.57
    27.06
    34.3
    50.9

    The sorting after attaching it to the VideoDisplay component:
    50.9
    34.3
    27.06
    23.57
    21.44
    18.5
    14.5
    12.48
    3.05
    5.8
    7.43

    In the first example the Array starts with the lowest number
    and ends
    up at the highest, which is how I like it. But after adding
    it to the
    VideoDisplay component, it starts at the top, going down to
    12.48, and
    then reverses the order of the lower numbers.

    I can't find any solution to this. Am I doing it wrong, or is
    there
    something wrong with the CuePointManager class?

    Best regards,
    Thomas Viktil
    Onkel Estrup AS

  • RELEVANCY SCORE 2.80

    DB:2.80:Array Of Array fk


    I need an array of array datatype. In SL what can I have?

    DB:2.80:Array Of Array fk

    A workarround is to make a class that has an array as property. Then you make an array to this class. Something like this.
    public class ArrayContainer
    {
    public string[] subArray { get; set; }
    }
    To define the array...
    ArrayContainer[] generalArray = new ArrayContainer[10];
    To use the array...
    generalArray[3].subArray[4]
    Good look!

  • RELEVANCY SCORE 2.80

    DB:2.80:Is Marker Values[] Used On X And Y Axes? ac



    I see some strange behavior with the property Marker Values[] for the X and Y scales of a graph. I know what the markers are in the color scale of an intensity graph, but I don't understand it conceptually for X and Y. Does it just refer to the tick marks? That wouldn't really make sense, because those are handled with properties such as "range" and "style". Furthermore, if I look at the Marker Values[] with a property node, the array is empty, as if it's not used. But if I assign that same empty array to the Marker Values[] of an identical graph, it makes the intermediate tick marks and values disappear. What's going on?







    Solved!
    Go to Solution.

  • RELEVANCY SCORE 2.79

    DB:2.79:Output Field In Web Service Not Seen By Vc As An Array 1j



    I have a Web Service that returns an array of int's. When I map the output field to a table, it appears as VC only sees the first occurrence in the array. I also see this VC behavior when I use the Web Service Test tool. What can be done about this?

    DB:2.79:Output Field In Web Service Not Seen By Vc As An Array 1j


    I had the same problem using a web service. This is how you can resolve it:

    Drag that data service to your storyboard, right-click on it and click on bTest Web Service/b. You will see an additional button in the bottom right hand-side called bAdd fields/b. Click on that and the fields in that array will show up.

  • RELEVANCY SCORE 2.79

    DB:2.79:Access Dao.Recordset.Getrows Method Jumps To Random Pc fx


    After updating to 15.0.4420.1017 a call to DAO.Recordset.Getrows() jumps to a random programm counter (here a public vba function) and stays inside that function rather than completing the task of copying the contents of the recordset to a two dimensional
    variant array. I consider this a serious bug. Anybody sharing this strange behavior?

    DB:2.79:Access Dao.Recordset.Getrows Method Jumps To Random Pc fx

    Hi,
    After updating to 15.0.4420.1017 a call to DAO.Recordset.Getrows() jumps to a random programm counter (here
    a public vba function) and stays inside
    Firstly, I think you need to know the

    DAO.Recordset.Getrows method pass the NumRows as the parameter, the NumRows didn’t represent the number of data rows,
    It means the number of
    unread rows,
    after you call GetRows, the current record is positioned at the next unread row.
    Then, if this issue still persists, could you provide a simple code for us to reproduce the issue.
    Regards,
    MarvinWe 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.

  • RELEVANCY SCORE 2.79

    DB:2.79:Ap93 Strange Message 1s



    Hi all,

    In Monitoring-Local Events page of my Aruba650 Controller, I see this strange message from an AP93 a lot of time:

    KERNEL(APPT-Hall@192.168.100.144): ath_bstuck_tasklet: Radio 0 stuck beacon; resetting (bmiss count 16)

    Does anyone know what it means and what can be caused?

    Is this a wrong behavior? What can I do to avoid this?

    Thanks,

    Massimo




    ------------------------------------------------------------Massimo GallinaTelecommunications engineer - ACMP2013

    DB:2.79:Ap93 Strange Message 1s


    I attach here the command show ap debug radio-stats ap-name ap-name radio 0 advanced. The AP is now UP from 18 hours. As you can see there is a lot of Total Radio Resets than previous attachment, and all of these is in Resets BeacQ Stuck.

    ----------------------------------------- Total Radio Resets 84Resets Beacon Fail 0BB Check Positives 0Resets BeacQ Stuck 84Resets Fatal Intr 0Resets RX Overrun 0Resets RF Gain 0Resets MTU Change 0Resets TX Timeouts 0POE-Related Resets 0External Reset 0PCI Fatal Intr Reset 0TX Power Changes 1Channel Changes 1Radio Band Changes 0Current Noise Floor 76

    --------------------------------------------




    ------------------------------------------------------------Massimo GallinaTelecommunications engineer - ACMP2013

  • RELEVANCY SCORE 2.79

    DB:2.79:Foreach() Giving A Strange Cannot Convert Error? sz



    chatEntries is an array of strings in your code. You need to change it to:

    ChatEntries[] chatEntries;

    DB:2.79:Foreach() Giving A Strange Cannot Convert Error? sz



    chatEntries does not contain ChatEntries.




    If you want to use a array of chatEntries you need Declare it a array of ChatEntries like so:



    class ChatEntries
    {
    public string name = ;
    public string text = ;
    }
    .
    .
    .
    ChatEntries[] chatEntries = new ChatEntries[size]();




    and the foreach:



    foreach ( ChatEntries entry in chatEntries) {


    }



    Edit




    var is implicitly typed variables, typed by the compiler.




    From MSDN:






    Beginning in Visual C# 3.0, variables that are declared at method scope can have an implicit type var. An implicitly typed local variable is strongly typed just as if you had declared the type yourself, but the compiler determines the type. The following two declarations of i are functionally equivalent:functionally equivalent:



    var i = 10; // implicitly typed
    int i = 10; //explicitly typed

  • RELEVANCY SCORE 2.79

    DB:2.79:Strange Behavior If Statement Related To Code Contracts j3


    I have a strange behavoir of an if statement and if I turn Code Contracts off, this behavior is not strange anymore.Explanation:Machine info:- Windows Vista 64bits- Visual Studio 2008 (with all updates).My code contract properties: x Perform Runtime Contract Checking = Full x Perform Static Contract Checking   x Check in Background x Build a Contract Reference AssemblyOther properties:Build:   Platform Target: x86   x Treat warnings as errors      x AllCode Analysis   x Enable Code Analysis on Build   x For all Rules Enabled During Code Analysis: Treat Warnings as Errors ON.
    01: private bool _InsertAllowed;02: ...03: private bool ProcessRow(DataRow row)04: {05:    // [some code]06:    foreach (DataColumn column in row.Table.Columns)07:    {08:       _InsertAllowed = [call to another method];09:       // [some code]10:       if (!_InsertAllowed)11:       {12:          break; // out of the 'foreach column'.13:       }14:       // [some code]15:    }16: }
    Now the strange behavior: - If the _InsertAllowed is TRUE, the code DOES get into the if statement and the code breaks out of the foreach.Setting the _InsertAllowed in line 8 forcebly to True, does not change the behavoir.Replacing line 8-10 with:   bool x = true;   if (!x)Does not change the behavior.I cannot reproduce this behavior in an small consoleapplication. But on the machine of my colleague this behavior is the same.- Restarting my machine and VS ide does not change the behavior.- Turning MS CC off and restart the VS-IDE is the solution.- Turning MS CC on again and restart the VS-IDE brings back this strange behavior- Turning MS CC off again and restart the VS-IDE solves the strange behavior again.My conclusion is that this behavior must has something to do with MS CC.

    DB:2.79:Strange Behavior If Statement Related To Code Contracts j3

    Ok, I understand. For now we don't use the Contracts anymore because of this problem we had. Because we are programming on a release version, we don't have time to check if the problem still exists. I will keep you posted when we have the time again to test the use of contracts again, even if the problem does not exist anymore!!

  • RELEVANCY SCORE 2.79

    DB:2.79:Two Instances Of Quirky Behavior: Array Size Of Empty Array And Tab Control Freeze sm


    LV 7.1

    Array size of empty array. Adding empty arrays to an array of higher dimension produces afantom array of non-zero size.

    Tab control freeze. An event structure with checked 'lock front panel until the event case completes'option permanently freezes the front panel incertain special circumstances.

    Zador

    DB:2.79:Two Instances Of Quirky Behavior: Array Size Of Empty Array And Tab Control Freeze sm

    I got around to it again and now I do understand why the 2 empty elements are created - these are the 2 arrays which were put one "behind" the other to create the extra dimension, so yes, apparently no bugs. I hereby offer an official apology and promise to attempt not to use theB word unless I'm concentrated enough to actually really examine it.

    I guess multiple dimensions is not really my thing. Maybe NI should add an Alternate Realities option instead? That would mean that in at least one reality LV would figure out exactly what you're trying to do even if you're not doing it right and do it for you. Then, all LV RD need to do is find a way to detect that alternate reality and reproduce it. I'm sure that's much easier than chasing all those bugs.




    ___________________Try to take over the world!

  • RELEVANCY SCORE 2.79

    DB:2.79:Pe 2600 Percpro Error sx


    we have pe 2600 server and get an error message below.But it's STRANGE so that there is NOT any Array Disk 1 on our system.Because there is not a Virtual Disk 1 of Array Group.There is only a Virtual Array 0 and 4 disks on our system and we can see this on Array Manager.Where is the Array Disk 1:5 and why??????

    DB:2.79:Pe 2600 Percpro Error sx

    we have pe 2600 server and get an error message below.But it's STRANGE so that there is NOT any Array Disk 1 on our system.Because there is not a Virtual Disk 1 of Array Group.There is only a Virtual Array 0 and 4 disks on our system and we can see this on Array Manager.Where is the Array Disk 1:5 and why??????

  • RELEVANCY SCORE 2.79

    DB:2.79:Spline Fit Behavior When Input Array Size7 a9



    Hi,

    I'm having issues understanding the behavior of the cubic spline fit when the size of the input arrays is 7. I am using this vi to smoothen a series of data points but the output is not what I expect when the array size is less than 7. Attached is an example with an input of size=7, it works as expected. Delete the last value to make the size=6, and then the best fit output becomes very off. I don't understand that and it gives bad results for my smoothening VI. Any idea why does it do that and what could I do to fix my problem? Thank you very much!

    Jerome










    Attachments:







    SplineFitShortArray.vi ‏13 KB

    DB:2.79:Spline Fit Behavior When Input Array Size7 a9


    Splines + Fitting = discomfort. That is a good thing. The limited functionality of this particular VI sort of drives you into the most disconcerting use of splines (fitting to data). They are great for visual aides, if I have five points defining a contour on my intensity graph I would rather see a smooth blob than a polygon.

    And it was not on purpose (perhaps subconsciously) but that is pretty much an ordered list, from least to most annoying.

  • RELEVANCY SCORE 2.78

    DB:2.78:Array Of Jlabel Help d3


    how would I create an array of JLabels?

    DB:2.78:Array Of Jlabel Help d3

    If you are not sure of how many object you want to place within the array, ArrayLists can grow dynamically. Here is how to use it:
    java.util.ArrayList arraylist = new java.util.ArrayList();
    //
    //To Add Your Class:
    YourClass yourClass = new YourClass();
    arraylist.add(yourClass);
    //
    //To Use Your Class:
    YourClass yourClass = (YourClass)arrayList.get(0);

  • RELEVANCY SCORE 2.78

    DB:2.78:Strange Variable Behavior kk


    I noticed this strange behavior in a program I waswritingand this shows what happens:
    S1=1
    S1[1]=2
    TextWindow.Write(S1=S1 )
    TextWindow.WriteLine(S1[1]=S1[1])
    S1=S1[1]
    TextWindow.Write(S1=S1 )
    TextWindow.WriteLine(S1[1]=S1[1])
    When you run this you get:

    S1=1=2; S1[1]=2
    S1=2 S1[1]=
    Press any key to continue...
    S1=1=2; is strange in the 1st line, as is S1[1]= in the 2nd line. I am trying to use the single variable S1 and I also have an array S1. I guess I can't do that?
    Thanks

    DB:2.78:Strange Variable Behavior kk

    Wow, now that makes sense. Thanks. I will need to use variables of different names.

    Thanks again.

  • RELEVANCY SCORE 2.78

    DB:2.78:Index Array Always Returns Zero When Reading From 3d Array cd



    I have 3D array diamension as a 9x2000x5 array. I have this array filled with data and when I attempt to read a single data point out of the array the Index Array function always reads zero. I have place a probe on the input 3D array and when I set the probe indexes to the same data point the probe shows the value stored in the array. I also have an indicator displaying the 3D array data and it shows data in allthe locations. For example if I attempt to read location 0, 144,0 in the 3D array it alway returns zero. Yet I know the value in that element is 6.8616E-5. Every element I attempt to retreave from the array yields zero.

    Has anyone seen the Index Array exhibit this kind of behavior?







    Solved!
    Go to Solution.

    DB:2.78:Index Array Always Returns Zero When Reading From 3d Array cd

    Issue resolved. As usual it was pilot error on my part. Had the row and column lines reversed.

  • RELEVANCY SCORE 2.78

    DB:2.78:Unallocated Array In Rhs Of Assignment 89



    Hi, is the following code standard conforming?

    integer, allocatable :: array(:)
    array = [array, 1, 2]
    array = [array, 3]
    print *, array
    end
    I mean, does the standard allow an unallocated array to be part of an array expression? Compiling with /stand and /assume:realoc_lhs doesn't issue any warning, and there's no runtime error either.

  • RELEVANCY SCORE 2.77

    DB:2.77:Strange Performance Issues Vmware Server 2.0.2 On Windows Server 2003 ap



    Hi,

    We have a Dell Poweredge 2850 with 10 Gigs of RAM with a Perc 5 raid5 array. Originally this machine was running Vmware Server 1.0.x with no issues. We had to install vmware server 2.0.2 due to the fact we had to install a vmware appliance that only supports vmware server 2.x. So I removed vmware server 1.0.x and installed vmware server 2.0.2. I turned all of the guests and everything seemed to go well. Then the strange behavior started. The machine and the guests would come to a screeching halt at random times. Everything would run awfully slow for no apparent reason. Checking the CPU and memory usage would gave us no clues whatsoever for this behavior as they were withing normal limits. The system logs gave no indication either. Then it would start running very well for a while and then back to running like a dog. It just randomly does this or at least I haven't figured out a pattern. I set the guests to strictly run on memory without being swapped to the hard drive just to remove the array out of the mixture but the strange behavior continues to occur.

    I would appreciate someone shedding some light on this issue.

    Thanks a lot

    DB:2.77:Strange Performance Issues Vmware Server 2.0.2 On Windows Server 2003 ap

    deeztech69 schrieb:
    ...we had to install a vmware appliance that only supports vmware server 2.x.

    What is that that only VMware Server 2.x should be supported? One of the benefits of VMware virtualization is that the guests are pretty independend of the hypervisor used. You may need to convert the machine (use the free VMware Converter Standalone) but that'ss do it.

    Which host OS do you use, which guest OS is affected? Are the VMware Tools installed?

    Have you tried Vmware Player, yet?

    AWoVCP 3 4\[:o]===\[o:]=Would you like to have this posting as a ringtone on your cell phone?=

    =Send "Posting" to 911 for only $999999,99!=

  • RELEVANCY SCORE 2.77

    DB:2.77:Setproperty Problem jf


    I have a jsp page that has mutiple rows of data, each row having multiple columns. One column of data may be called itemNumber.

    When I use request.getParameterValues("itemNumber"), I receive a string array. Very good.

    When I use jsp:setProperty name="mybean" property="*" /, I have the following problem:

    When the value in the first row contains a value, I get back a string array as expected, but if the value in the first row is empty, I get back null. Even when the values in row 2 contains a value, I still get null.

    My Question: is this behavior "expected" behavior? The documentation for this is mostly for parameters expecting one value and this behavior conforms to that spec. But is receiving an array dependant on the value in the first occurance of the array?

    Thanks for any help,
    P.

    DB:2.77:Setproperty Problem jf

    Since you are getting values back, regardless of which boxes you enter data, and I am not, then I guess this would be a bug in the application server I am using?

    I am currently running with IBM's Websphere version 3.02 but have also tested this (with the same results) under version 3.5.

    Thank you all for your help.
    P.

  • RELEVANCY SCORE 2.77

    DB:2.77:Anomaly In Gparted 7s



    Gparted lists the active devices when opened in arch.

    This is always true in HDD boot of the system which lista all sd, hdd, and raid items.

    However, when booted into raid0 dev md0, gparted does not list md0 as a device but does list the component devices of the raid array.

    The md0 array can be mounted in /mnt with the normal command...mount /dev/md0 /mnt/md...

    The array is assembled from two separate CF to Sata adapters using either two 8GB or two 16GB CF cards.

    Either of the arrays when booted display the same gparted anomaly, showing up in HDD when queried and not being discovered when booted in raid0.

    Other than this strange behavior, the raid arrays perform as expected.

    As outlined above, this occurs in both raid0 arrays.

    Gparted reports that the array is identified as .../dev/md/0....no such device. Addressing the array as md0 (not md/0) permits the array to be mounted in /mnt/md when the array is the OS device as described previously

    Thus gparted identifies the array correctly from HDD boots but not from raid0 array boots.

    No further clues.............EDIT: x86_64 Latest kernel

    Last edited by lilsirecho (2011-07-13 16:09:03)

    DB:2.77:Anomaly In Gparted 7s


    Gparted lists the active devices when opened in arch.

    This is always true in HDD boot of the system which lista all sd, hdd, and raid items.

    However, when booted into raid0 dev md0, gparted does not list md0 as a device but does list the component devices of the raid array.

    The md0 array can be mounted in /mnt with the normal command...mount /dev/md0 /mnt/md...

    The array is assembled from two separate CF to Sata adapters using either two 8GB or two 16GB CF cards.

    Either of the arrays when booted display the same gparted anomaly, showing up in HDD when queried and not being discovered when booted in raid0.

    Other than this strange behavior, the raid arrays perform as expected.

    As outlined above, this occurs in both raid0 arrays.

    Gparted reports that the array is identified as .../dev/md/0....no such device. Addressing the array as md0 (not md/0) permits the array to be mounted in /mnt/md when the array is the OS device as described previously

    Thus gparted identifies the array correctly from HDD boots but not from raid0 array boots.

    No further clues.............EDIT: x86_64 Latest kernel

    Last edited by lilsirecho (2011-07-13 16:09:03)

  • RELEVANCY SCORE 2.77

    DB:2.77:Unflatten Pixmap Unexpected Behavior ad



    This is not actually a bug in the function Unflatten Pixmap but I see a fail in the function implementation.

    It seems that the output is missing the an entire line and collumn of the array corresponding to the input picture.

    What is your oppinion ?




    University of Sao PauloPolytechnic School of EngineeringDept. of Electronic Systems

    DB:2.77:Unflatten Pixmap Unexpected Behavior ad

    tst wrote:
    JK-USP wrote:How about to fix it now ?

    There's nothing to fix, as there's nothing broken. Even if NI did decide to change it now to make it easier to work with, they would have a problem because there's a lot of existing code in the world and even if for a lot of it being one pixel off is not a huge deal, at least some of it will depend on having the correct sizes.

    NI probably could deal with this by having the old function as a wrapper for a new function and then let the wrapper fix the values, but in general, the picture control does not seem to have gotten too much attention from NI and I don't know if they would touch it now or simply come up with something else to replace it (for instance, something which can do proper vector graphics, aliasing, hardware acceleration and so on).

    Fully agree here. This is not a bug but "unexpected" behaviour at most. And as such there are two possible solutions, one being to change the behaviour and the other to change the expectations. The first option is after 20 years of existence of the Picture Control not an option at all. The best you can hope for if you report it as bug is that the documentation is amended to point out thisbehaviour more explicitedly.

    As to a more functional control, it already exists as the 3D Picture Control which uses OpenGL internally. Still not the egg producing, wool spending pig that some would want, but at least offering vector based operations.




    Rolf KalbermatterCIT Engineering Netherlandsa division of Test Measurement Solutions

  • RELEVANCY SCORE 2.77

    DB:2.77:Wcf Service Not Firing Callback 93


    Hi,
    I have implemeneted a WCF service and my silverlight application is consuming it. It has a strange behavior. Whenever the call returns an array or list, the callback is not fired in silverlight. I have made sure that its nothing related to size. I even tried
    to return an array with just one item. Still the callback was not fired. But when a string value is returned, the callback get fired. Any idea why is this occuring.
    Regards
    Renis

    DB:2.77:Wcf Service Not Firing Callback 93

    Hi,
    You need to make the entity as DataContract, follow this please:
    http://www.request-response.com/blog/PermaLink,guid,ff5fab81-affb-4b2b-aa67-c80bdfc86cbd.aspx

  • RELEVANCY SCORE 2.77

    DB:2.77:Some Trouble Using Cluster Array m7


    Hi,

    I'am french noviceuser, using labview 8, and I have trouble to use a cluster array.

    My cluster array contain element configuration, so user can use or not an element, and check or not the barrecode value. If user uncheck to verify barrecode ("Check"), the textbox ("BarreCode value")must be disable and grayed. My firstprobleme is here because either all the textbox are grayed or it all active.
    Second point, texbox ("Name") are disable and text is editing in software.I would to change the background color of the array line wich user has clicked and know in software the index of the clicked cluster.

    I have looking for a long time to have this behavior, but I don't find anything. Maybe this behavior is too much for Labview ?










    Attachments:







    TabClusters.vi ‏10 KB

    DB:2.77:Some Trouble Using Cluster Array m7

    OK, en tant que développeur j'ai tendance à donner plus d'importance au code et au bon fonctionnement qu'à l'aspect de l'interface... mais si l'interface t'es imposée... (ça m'arrive parfois aussi) alors bon courage, ça force à trouver des astuces... un bon moyen d'apprendre en somme Bon courage !



    _______________________________________________________________________When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • RELEVANCY SCORE 2.77

    DB:2.77:Re: Array 88


    Use an ArrayList instead of a standard Array

    DB:2.77:Re: Array 88

    By the way:
    int empid=Integer.parseInt(empList.get(m).toString());could be:
    int empid=((Integer)empList.get(m)).intValue();The values in empList are already integers--no sense in converting to String and then back to int.

    If using Java 5 or 6, you could even have (using autoboxing [be careful with autoboxing, though--it sometimes does 'strange' things, if you aren't careful or don't know the rules that autoboxing follows]):
    int empid = (Integer)empList.get(m);[If using Java 5 or 6, you could also use generics in your ArrayList, to eliminate the need for the cast to Integer.]

  • RELEVANCY SCORE 2.77

    DB:2.77:Strange Behavior Of Usercontrol_Sizechanged Event px


    Hello All,

    DB:2.77:Strange Behavior Of Usercontrol_Sizechanged Event px

    Hi Min Zhu,

    I posted it here because my question involved Xaml and controls which are common to both WPF and Silverlight hoping for some support. I posted it in Silverlight forums too but eventually I had to figure it out myself.

    Regards,
    Hamza

  • RELEVANCY SCORE 2.77

    DB:2.77:Programm Shows Strange Behavior On Saving A Mutablearray To The Defaults 3x


    I have a very strange Bug, I have spent hours with the debugger, and i did not find an answer.This is quite a strange Bug, so it might be to complectatet to resolve without enough material to read. If you need more contend, simply ask for more, I will give you everything.I have an Array with some Selfmade objects inside. Every object (They are all the same Type) has a name (NSString) and 6 NSMutableArrays. Everything Works fine until I close the App and it should save the entire array to a NSData object, and this NSData object to the NSUserDefaults. Lets do a little exampleArray:Object1Object2Object3Now we close the App. With the debugger I found out, that a wrong Array is saved:Object3Object2Object3Object2 is not affectet all the time. But this happens not allways! It just happens if the case is like this:Object1: Array 1 contains somethingObject3: Array 1 and / or Array 2 contains somethingSo in the end It is like this: If there are objects in in the higher countet Arrays than in Object1, Object1 = Object2I do not know what causes this, and it would be great, if you could give an answer. As said, if you need further recources, simply ask me. Thanks

    DB:2.77:Programm Shows Strange Behavior On Saving A Mutablearray To The Defaults 3x

    I did some more reseach, and I found out, that the bug also appears while running (not only while saving loading) I send you the complete projekt, hoping, that you can find anything The comments are in german, but the names of the vocabulary explain everything. http://cl.ly/3M1A0A2n0z1B1e1n3C0q

  • RELEVANCY SCORE 2.76

    DB:2.76:Findtext() Within Itembyrange(): Strange Behavior m7



    Hi,

    I'm a little bit stuck with this:

    var myScope = myDoc.selection[0].parentStory.characters.itemByRange(start,end); // at this stage, start is first character of Story and end is last one

    var myFoundCharas = myScope.findText(); // find some text

    alert(myScope.constructor.name); // gives "character", ok

    alert(myFoundCharas.constructor.name); // gives "array" made of a mix of "word" "character" "textStyleRange"..., ok

    alert(myFoundCharas[0].constructor.name); // gives "array" made of a mix of "word" "character" "textStyleRange"... ?!!!!? why not just "word"

    alert(myFoundCharas[0][0].constructor.name); // gives "word"

    If I change myScope to be the entire Story it gives the normal behavior:

    var myScope = myDoc.selection[0].parentStory; // no more itemByRange

    var myFoundCharas = myScope.findText(); // find some text

    alert(myScope.constructor.name); // gives "story", ok

    alert(myFoundCharas.constructor.name); // gives "array" made of a mix of "word" "character" "textStyleRange"..., ok

    alert(myFoundCharas[0].constructor.name); // gives "word", ok

    Any idea to explain this would be welcome?

    Thanks

    DB:2.76:Findtext() Within Itembyrange(): Strange Behavior m7


    Typically, itemByRange() produces a special "plural" specifier.

    When you invoke a method on such a range, you invoke it on every element of the range, then yield an array of the individual results.

    The result of each findText() is an array, so you get arrays wrapped up in another array.

    You get closer with story.texts.itemByRange() which is a bit special in that regard - there is always only one text in any range.

    In a similar situation I'm actually using an even more convoluted expression: text = story.texts.itemByRange(posIP,endIP).getElements()[0];

    The additional getElements() forces the specifier to evaluate, it also returns an array with always a single element in the case of texts.

    Have a look at the output of the toSpecifier() method for the various intermediate values to understand what's going on.

  • RELEVANCY SCORE 2.76

    DB:2.76:New Array Linked To Old Array ? fa


    I'm new to Java so bear with me.

    I've got an arraylist that contains many arrays. Each array has an index.

    I want to copy an array out of this arraylist and into another array.

    Here is how I have been doing it.

    String[] arNewFields;

    arNewFields = (String[]) myArrayList.get(iRequestedIndex);I end up with a new array which is good. But I have a fear. My app exhibits a strange
    bug where, if I modify the new array, the array that it was copied from, (inside the arraylist),
    changes also.

    Is this supposed to happen this way?

    Is it because I didn't use the word new, and my new array is actually
    just a reference to the array inside the ArrayList ?

    How would I write the statement if I wanted a copy of the array?
    I tried using
    arNewFields = new String[(String[]) myArrayList.get(iRequestedIndex)];

    and that didn't work. What is the syntax?

    Thanks
    Josh

    DB:2.76:New Array Linked To Old Array ? fa

    Awesome, thats exactly what I ended up doing.

    Except I stored length into a var instead of using

    temp.length directly in the statements.

    Thanks
    Josh

  • RELEVANCY SCORE 2.76

    DB:2.76:Characters Panel Is Reset To Default When Touching "Tabulations" In Old Table (Cs5) zc



    Hello -

    Colleagues of mine complain about Illustrator CC (17.1) and old CS5 tables.

    We recently made the upgrade to CC (coming from CS5).

    And we noticed strange behavior when we open a file within tables.

    When we try to modify the tabulations inside an existing table (array), well the "characters" panel is reset to default (leading, H/V scales, baseline shift, kerning, are lost).

    Is this a bug?

    Or is there a logical reason?

    How could we avoid this (ie. that the table stay formatted as it is), because we have thousand of such "old" tables in our .AI documents.

    Thank you for any input.

    Have a nice day

    - Dimitri

  • RELEVANCY SCORE 2.76

    DB:2.76:How Can I Find The Execution Time Of A Method? 1f


    Hi there, I'd like to know how many ns a method needs in order to complete its task.
    I've tried
    long start = System.nanotime();
    //my code
    long end = System.nanotime();
    long elapsed_time = end - start;but it gives strange values...my function works on arrays so, if array size increases, it should take more time right? Well according to this code an ordering on a 100 element array takes less time than an ordering on a 20 element array...strange isn't it? :S

    DB:2.76:How Can I Find The Execution Time Of A Method? 1f

    (If you want a proper example of a performance benchmark, try searching for some posts by uh... jverd or jschell maybe)What I recall from past discussions here, and my own experience, is that:
    - code benchmarks are useless and misleading outside of an application
    - application benchmarks are misleading if conducted over an unrealistic/unrepresentative test set
    - "manual" (wall clock, or System.nanotime) benchmarks measures are relevant only for user-observable timings (e.g. the time it takes to load a screen). For time spent in individual methods, use a profiler (ranging from good-quality free tools included in the stock JDK to commercial products): too much "noise and unpredictability" from the hand-made counters, which, especially, do not take GC into account.
    - most too often, premature optimization is harmful - leads to bad coding decisions, led by unbacked assumptions about which part of the code will perform often enough to deserve concern.

  • RELEVANCY SCORE 2.76

    DB:2.76:Strange Behavior With Assigned To Field In Cmdb_Ci_Computer xm



    Hi,I found a strange behavior with a reference field in cmdb_ci_computer.In the list view of this class every user who has access to this list can see the value in the field 'assigned to'. If the user clicks on the entry of a computer the field 'assigned to' does not contain a value.If I check the entry with my admin account I can see the entry. Reason for this strange behavior seems to be that deactivated users won't be visible for an itil user.If this is expected behavior then the list overview also should not show the entry in the assigned to field.And how can I change this behavior? Is it possible to make the deactivated users visible in this field?BrMatthias

  • RELEVANCY SCORE 2.76

    DB:2.76:Strange Recursive Function Behavior 81


    Hi,
    I'm trying to create a recursive function that will walk through a filepath and checks for ACLs. When he find an out of default ACL he needs to log this file into a array and keep on processing. When this function is done the array will then be used for
    further processing.
    The problem is the array in which the found elements are logged. While the function is looping everything seems te be in working order but the moment the function is done the array is empty.
    I have been able to recreate this in a simple test script that will simply loop 5 times and adds a number to an array. Every times the function is processed the values of the array is being printed to the screen. As you can see in the script it will print
    out the results 5 times but when it's done it needs to print out the result one more time but fails to do so.
    Script:

    #Declaring Array
    $Test = @()

    function Start-Count {
    param(
    $i
    )
    $Test = $i
    Write-Host Parsing Results so far
    $Test
    #Starting the function again if the threshold has not been reached
    If ($i -lt 5) {
    Start-Count ($i 1)
    }
    }

    #Starting Recursive function
    Start-Count 1

    #We are done, print out the results
    Write-Host Done
    $Test

    DB:2.76:Strange Recursive Function Behavior 81

    Thanks,
    I have read the artikel (totally new concept for me) and have adjusted the script as follows. It's working perfectly now.
    Thank you for the answers.

    #Declaring Array
    $global:Test = @()

    function Start-Count {
    param(
    $i
    )
    $global:Test += $i
    Write-Host Parsing Results so far
    $Test
    #Starting the function again if the threshold has not been reached
    If ($i -lt 5) {
    Start-Count ($i +1)
    }
    }

    #Starting Recursive function
    . Start-Count 1

    #We are done, print out the results
    Write-Host Done
    $test

  • RELEVANCY SCORE 2.76

    DB:2.76:Resizing Array Of Custom Type 1f



    I first create a custom type that is a container of 3 strings.

    I then create a custom type that is an array of that custom type and give it size 1 (lower and upper bound = 0).

    If I then re-size that array, why does TestStand not make every additional element of that array match the original container of 3 strings?

    The same behavior happens both in a .seq file and in the types file itself. I could sort of see in a .seq file if I drop down this custom type that is initially size 1 and try to change the array bounds that it wouldn't automatically make the additional elements match but I wouldn't expect this behavior in the types file. This seems to be a bug to me. TestStand 2012.

    DB:2.76:Resizing Array Of Custom Type 1f


    Are you getting an instance of the type in the additional elements but with the wrong value? Or just empty containers? If the former, then you probably just need to recreate the array type. The array element prototype of an array is created when the array is created, so it will reflect what an instance of the element type would have had at that time. If you later change the element type, that, just like for instances, the array element prototypes values do not change unless you also check the checkbox to "update all instances" when modifying the element type (or recreate the array type).

    If this is not the cause of your problem then please post more details about what exactly you are seeing and/or an example sequence file illustrating the problem.

    Hope this helps,

    -Doug

  • RELEVANCY SCORE 2.76

    DB:2.76:Css Strange Behavior a1



    Hi

    I am not sure what is the cause of the problem. Bare with me and i will try to explain the better i can.

    We have an owner with many content rules (100) load balance over six services .  What we are seeing is some the of content rule is forward to the wrong services. The Apache servers were the http request is send is reporting 404 which is what you expected because the content is not there.

    This is a intermittent problem. Any of you experience this behavior

    DB:2.76:Css Strange Behavior a1


    Hi Pablo,

    What are the commands to monitor with services that is receiving the request, I would like to try it on the Lab CSS, can we set it up to monitor one rule?

    Thanks

    Gilles

  • RELEVANCY SCORE 2.75

    DB:2.75:Strange Behavior In Timertask xd



    Hi,

    i have an application which logs if an application is in the foreground or background. I created a timertask and checks the applicationdescriptor object and see if there's a new running application in the foreground. My problem here is that, it looks like TimerTask object only get's called once. I use the scheduleFixrate of the program.

    public TMObject extends TimerTask{ public void run(){ System.out.println("running"); }}

    DB:2.75:Strange Behavior In Timertask xd

    If the Timer is not used outside of the same application instance/process, then why do you need to place the a TimerTaskManager into a RuntimeStore? Also, you may want to cancel the existing timer task (if any) inside activate before scheduling a new one.

  • RELEVANCY SCORE 2.75

    DB:2.75:Strange Skeleton Behavior While Running An Animation 8a



  • RELEVANCY SCORE 2.75

    DB:2.75:Character Array Value "Invalid Debug Information" When Debuging x8



    Hello,

    I have attached a simple program that calls a subroutine to concatenate the components of a character array into a single character variable. In the subroutine, the debugger cannot display the values of the character array. Instead it shows "Invalid Debug Information". Is this an expected behavior for the debugger or is it a bug?

    Thanks for any help,
    Jon

  • RELEVANCY SCORE 2.75

    DB:2.75:Array Of Cluster Does Not Initialize! xm


    Hi all! I have an application for compact FieldPoint, and I'm using LV 7.1 + RT. I have a global variable, containing quite a complex data structure. It is an array of fixed sze (50 elem), each element is a cluster. The cluster contain some U8 and an array. At the beginning, this structure is not initialized (all grayed out, to keep it easy). I first initialize it to 50 elements, set to zero, with Initialize array function. The strange thing, is that sometimes, the array keeps un-initialized! I've check software around this, I initialize this array at each start, but some times it initializes (all elements to zero), sometimes not. I've also tried with build array function, and store it in the global variable containing it, but I got the same behavior. Am I missing something? Of course, I can work it out setting default value to 50 initialized elements, but... just want to understand! Thanks everybody....grazianoVoilà : Message Edited by Graziano on 01-21-2008 09:58 AMMessage Edited by Graziano on 01-21-2008 09:59 AM









    Attachments:







    array_of_cluster.PNG ‏32 KB

    DB:2.75:Array Of Cluster Does Not Initialize! xm

    Hi all! I know functional global, but when I implemented this program I didn't so it would take me some refactoring.... I'll see what I can do! graziano

  • RELEVANCY SCORE 2.75

    DB:2.75:Maxloc Behavior cd



    My colleagues and I were a bit surprised by the results of the MAXLOC function in the following example:

    PROGRAM TEST
    INTEGER, DIMENSION(-1:2) :: A
    DO I = -1, 2
    A(I) = 3-I
    ENDDO
    WRITE(*,*) A
    WRITE(*,*) MAXLOC(A), MAXVAL(A)
    END

    Which results in:

    4 3 2 1
    1 4

    We had all expected the MAXLOC(A) to be -1 since that is the index of the array A.

    Now, I can understand why the result is 1 -- if I were to make a subroutine/function and passed in an array where the argument was declared as DIMENSION(:) or DIMENSION(*), the indexing inside the function begins at 1 regardless of the start index of the actual array.

    But, logically, this is obviously a surprising behavior. For what it's worth, gfortran does the same thing.

    I don't think this conforms to the standard.

    The standard says:

    The result of MAXLOC (ARRAY) is a rank-one array whose element values are
    the values of the subscripts of an element of ARRAY whose value equals the
    maximum value of all of the elements of ARRAY.

    I interpret "the values of the subscripts of an element of ARRAY" as meaning in the index-range of ARRAY (ie., -1:3). The behavior now is returning the subscript of an element in the argument internal to the MAXLOC routine, not the subscript of ARRAY.

    Thoughts?

    Tim

    DB:2.75:Maxloc Behavior cd


    I suggest you read the sentence in the standard after the one from which you quoted: "The ith subscript returned lies in the ranger 1 to ei, where ei is the extent of the ith dimension of ARRAY." I think that sentence makes it clear that ifort's behavior does conform to the standard.

    -Kurt