Same float code compiled differently on different machines
Hi,
Scenario: same project build on different machines. and then both the application executed on
same machine .. giving slightly different results..(like 23.07499 to 23.07500)
project involves many float operations. project build on vs2013. c++
there is difference oberved in the final value of float calculations.. like 23.07499 to 23.07500
seems , Same float code compiled differently on different machines, any input
Regards,
james
>Scenario: same project build on different machines. and then both the application executed on same machine ..
giving slightly different results..(like 23.07499 to 23.07500)
Do you get consistent results with the same executable each time you
run it?
Assuming you do, and the only difference is the EXEs, what's the
difference between them - there must be something. Have a look at "How
to compare binary images of the same project builds"
https://support.microsoft.com/en-us/kb/164151/ and see if that sheds
any light onto the issue.
Dave
Similar Messages
-
Possible solution to avoid deadlock when two inserts happen on same table from two different machines.
Below are the details from deadlock trace.
Deadlock encountered .... Printing deadlock information
Wait-for graph
NULL
Node:1
KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
Grant List 2:
Owner:0x00000013F494A980 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:376 ECID:0 XactLockInfo: 0x000000055014F400
SPID: 376 ECID: 0 Statement Type: INSERT Line #: 70
Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
Requested by:
ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
NULL
Node:2
KEY: 8:72057594811318272 (ffffffffffff) CleanCnt:3 Mode:RangeS-S Flags: 0x1
Grant List 2:
Owner:0x0000000B3486A780 Mode: RangeS-S Flg:0x40 Ref:0 Life:02000000 SPID:238 ECID:0 XactLockInfo: 0x0000002AA53383F0
SPID: 238 ECID: 0 Statement Type: INSERT Line #: 70
Input Buf: RPC Event: Proc [Database Id = 8 Object Id = 89923542]
Requested by:
ResType:LockOwner Stype:'OR'Xdes:0x000000055014F3C0 Mode: RangeI-N SPID:376 BatchID:0 ECID:0 TaskProxy:(0x000000080426E538) Value:0x30614e80 Cost:(0/41748)
NULL
Victim Resource Owner:
ResType:LockOwner Stype:'OR'Xdes:0x0000002AA53383B0 Mode: RangeI-N SPID:238 BatchID:0 ECID:0 TaskProxy:(0x00000027669B4538) Value:0x10d8d500 Cost:(0/38828)
deadlock-list
deadlock victim=process5daddc8
process-list
process id=process5daddc8 taskpriority=0 logused=38828 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994026815 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.347 XDES=0x2aa53383b0 lockMode=RangeI-N schedulerid=43 kpid=14156 status=suspended spid=238 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.463 lastbatchcompleted=2014-07-25T12:46:57.463 clientapp=pa hostname=pa02 hostpid=1596 loginname=myuser isolationlevel=serializable (4) xactid=2994026815 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
executionStack
frame procname=mydb.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
INSERT INTO [dbo].[Prod1] .....
inputbuf
Proc [Database Id = 8 Object Id = 89923542]
process id=process5d84988 taskpriority=0 logused=41748 waitresource=KEY: 8:72057594811318272 (ffffffffffff) waittime=2444 ownerId=2994024748 transactionname=user_transaction lasttranstarted=2014-07-25T12:46:57.320 XDES=0x55014f3c0 lockMode=RangeI-N schedulerid=39 kpid=14292 status=suspended spid=376 sbid=0 ecid=0 priority=0 trancount=2 lastbatchstarted=2014-07-25T12:46:57.440 lastbatchcompleted=2014-07-25T12:46:57.440 clientapp=pa hostname=pa01 hostpid=1548 loginname=myuser isolationlevel=serializable (4) xactid=2994024748 currentdb=8 lockTimeout=4294967295 clientoption1=671088672 clientoption2=128056
executionStack
frame procname=pa.dbo.SaveBill line=70 stmtstart=6148 stmtend=8060 sqlhandle=0x03000800d61f5c056bd3860170a300000100000000000000
INSERT INTO [dbo].[Prod1]....
inputbuf
Proc [Database Id = 8 Object Id = 89923542]
resource-list
keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
owner-list
owner id=process5d84988 mode=RangeS-S
waiter-list
waiter id=process5daddc8 mode=RangeI-N requestType=convert
keylock hobtid=72057594811318272 dbid=8 objectname=pa.dbo.prod1 indexname=PK_a id=lock1608ee1380 mode=RangeS-S associatedObjectId=72057594811318272
owner-list
owner id=process5daddc8 mode=RangeS-S
waiter-list
waiter id=process5d84988 mode=RangeI-N requestType=convertDon't know. Perhaps these can help. I scanned the second link but didn't see much about Ending Deadlocks. I'd say the Fourth link probably has better information than the first three links. But maybe read them all just in case the Fourth is missing something
one of the first three have.
Deadlocking
Detecting and Ending Deadlocks
Minimizing Deadlocks
Handling Deadlocks in SQL Server
Google search for "SQL Deadlock"
La vida loca -
How to copy data of a table to the same but on a DIFFERENT MACHINE?
Hello experts,
I want to copy all entries of table TE422 to the same, but on a <u>different machine</u>. I created a transport request (workbench request using TABU) intending to copy the entire table data from QA into DEV environment.
However, this is not working, because, in our installation, QA is on one server, and DEV on another! So, in a way, each machine seem to be transparent to the other and I cannot, or, do not know, how to specify the DEV environment as target.
I was told that I have to do something at the OS level. That is to say, have some kind of SQL query which collects data from one and uploads it onto the other.
Now my question is: Is there a SAP way to do this, that is to say, forget the SQL thingy and do it with some SAP transaction? If yes, how? If not, do you have a sample code which does this please?
Your help is greatly appreciated.
GoharjouMethod 1:
You can transport using ALE/IDOC, Write a simple outbound function moule in Source System and Develop a Inbound function module in target system.
Method 2:
Download the entire table contents into a flat file from source system by developing a simple report using WS_DOWNLOAD function module. Then Develop a report using WS_UPLOAD in target system and upload thd flat file.
Thanks & Regards,
Vijay -
How do we do production orders for same item code in different sizes
Hi,
We have Items which we buy as a single sheet of material and our customers can ask for us to cut the complete sheet into different sizes before despatching it. i.e
Item Code Sheet1: Sheet size 100mm x 100mm
Customer asks for sheet to be cut into 10 off 10mm x 10mm sheets, which we presently put on the sales order as a line note
We then generate a production order for this item and indicate on the production order printout the line note
We've recently had a customer who has asked for Item 1 in two different sizes on the same sales order ie
Order Line 1 Sheet1 Qty:1 Line note: cut into 10mm x 10mm sheets
Order Line 2 Sheet1 Qty:1 Line note: cut into 50mm x 50mm sheets
When generating the Production order SAP combines the items into
Product No: Sheet1
Planned Qty: 2
Where as we want it to create 2 production orders 1 of each different sizes items.
I know I can create BOMs for those two sizes, but customers can ask for the sheets to be cut to whatever size they want. Is the best method to create BOMs on the fly for each different sizing option or are there alternative methods that are easier to manage ?
Thanks
CarlHi Carl Rutter,
You have to creat 2 special production order for this item. when issue the component make sure you issue the stock as per the cosumption becaue one have 10mmx10mm and the another item have 50x50 in this case you issue component by square inch wise. for example 10*10 = 100 squre inch.
50*50 = 2500 square inch so the cost will be approtionate. you can Use multiple uom method to obtain this, other wise you have covert into stock then you issue the component. If you want traxk size wise ,you can use batch option for Finishe goods.
Regards
Sridharan -
Same C++ code gives different result in MacOSX and Ubuntu
Hi
I have a C++ program which starts by reading an external file, but changing the name of the file give me different results.
I selected just the important part and made a simple file with the reading part of my program and can be downloaded here
http://dl.dropbox.com/u/664351/files.zip
It just reads the external file and does the output of some values.
It has two external file examples. If one uses "x.txt" everything works fine, but if we use "dados.txt", which is a copy of "x.txt", the last value in the output is wrong.
The stranger is that if i use these same files in ubuntu everything works just fine!
I tried in a MacBook, a MacBook Pro and an iMac (all of them with macosx 10.6) and i always got the error, but not on ubuntu!
Does anyone has a clue about what is happening here?
Cheers,
Marcelomarcelobarbosa wrote:
Does anyone has a clue about what is happening here?
Change OutFile from a 20 byte character array to a string. GCC isn't able to tell what type that is and is picking int or something, corrupting your memory. -
Same exact Code but different results
I am trying to fill a Listbox in a single Dialog based program using names
from a file. I started by using an example program from the MSDN - Modeless.
A simple Dialog based program using a modeless dialog to add strings to a
Listbox in the main dialog. I inserted into the sample program the following
code, which works perfectly:
#include <Fstream>
BOOL CLeasesDlg:nInitDialog()
char* names;
CListBox* pList = (CListBox*) GetDlgItem(IDC_LIST);
infile.open("Leases",ios::in, filebuf:penprot);
while( (infile.getline(names,25,'\n')) != NULL)
pList->AddString(names);
infile.close();
Sunce the sample program was just a stepping stone I created my own Dialog
based program using the AppWizard. I inserted the above code. I now receive
an "unhandled exception" error every time during the "getline" execution. I
have been trying for the last several days to track down the problem but can
not.
Some of what I learned:
First-chance exception in Leases.exe (MSVCIRTD.DLL): 0xC0000005: Access
Violation.
so I wrote code to establish access permissions:
int test = 0;
// Check for existence
if( test = ((_access( "Leases", 0 )) != -1) )
// Check for read permission
if(test = ((_access( "Leases", 4 )) != -1) )
I stepped thru both with no problem. The file exist and is readable but can
not retreive the first name.
In the disassembly window it stops on this line:
strgetl.cpp --------------------------------------------------------------
102A75CD 88 08 mov byte ptr [eax],cl
I do not understand how the code can work in the sample program and not work
in the one I created. I looked back at another program I wrote several years
ago and I used the exact same code with no problem. I would think that my
compiler was corrupted but it compiles the modeless sample program.
I am totally baffled .... PLEASE ... PLEASE help!
I would be greatly appreciativeHey Randy,
This forum is reserved for Measurement Studio questions. I recommend checking with Microsofts forums because the people there will have more experience doing what you are looking for.
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Same gui code 2 different results in xp and 7
First Machine:Xp,netbeans 6.8, jdk 6 update 19(upgraded due to that problem)
Second Machine:7,netbeans 6.7.1, jdk 6 update 17
Image1: http://img686.imageshack.us/img686/5781/gui1.jpg
Image2: http://img30.imageshack.us/img30/3751/gui2y.jpg
Here is the code:
public class MyFrame extends JFrame{
public Point point1;
public Point point2;
private ImageIcon imc;
private ImageIcon imc2;
private final Color c1 = Color.green;
private final Color c2 = Color.cyan;
private final Color c3 = Color.yellow;
private final Color c4 = Color.red;
public MyFrame(Point p1,Point p2,String filename1,String filename2){
super("xxx");
imc = new ImageIcon(filename1);
imc2 = new ImageIcon(filename2);
point1 = p1;
point2 = p2;
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(850,650));
getContentPane().add(emptyLabel, BorderLayout.CENTER);
//Display the window.
pack();
setVisible(true);
@Override
public void paint(Graphics g){
g.setColor( c2 );
g.fillRect(50, 100, 750, 500);
g.setColor( c1 );
g.fillRect( 150, 200, 550, 300 );
g.setColor( c3 );
g.drawRect( 100, 150, 650, 400 );
g.setColor( c4 );
g.drawLine( 425, 500, 425, 600 );
imc.paintIcon(this, g, point1.x, point1.y);
imc2.paintIcon(this, g, point2.x, point2.y);
}Any solution for that?
Thanks in advance.
Edited by: kapodistrias on Mar 31, 2010 12:06 AMReally thanks.
But I think if I had not run it in another machine I would have thought that it was right.
I have done all the backround but I still cannot add the 2 image icons.
I tried these inside the jpanel after the background but it seems they don't work.
Image imc3 = imc.getImage();
g.drawImage(imc3, point1.x, point1.y, this);
or
imc.paintIcon(mypanel, g, point1.x, point1.y);
public class MyPanel extends JPanel{
public MyPanel(){
add(new JLabel(""), BorderLayout.CENTER);
this.setBackground(c1);
@Override
public void paintComponent(Graphics g){
super.paintComponent(g);
g.setColor( c2 );
g.fillRect(50, 100, 750, 500);
g.setColor( c1 );
g.fillRect( 150, 200, 550, 300 );
g.setColor( c3 );
g.drawRect( 100, 150, 650, 400 );
g.setColor( c4 );
g.drawLine( 425, 500, 425, 600 );
Image imc3 = imc.getImage();
g.drawImage(imc3, 0, 0, this);
//imc.paintIcon(mypanel, g, point1.x, point1.y);
//imc2.paintIcon(mypanel, g, point2.x, point2.y);
} -
Using same Aperture library with different machines
Hi
I travel between locations some 7hrs apart and want to take my Aperture Libary and Vault with me to add to and work on in each location.
I have a Mac Pro at one location and MBP and 2011 Mac Mini (pre thunderbolt) at the other running Aperture v3.1.3 and Snow Leopard 10.6.8
I have my Aperture Libary, Vault and Referenced files etc on a seperate/external drive/s to my OS and applications.
Having to reconstruct the libary from a vault each time I change locations is time consuming as I am working with a growing Libary at the moment 720GB + 500 GB of referenced files on a second HDD
I would just like to be able to set it up so I can just plug the Aperture library and Referenced files in launch Aperture and start working
Is anyone doing this? or has any ideas ?
Many thanks in anticipationA few points to consider:
To make a vault into a normal library you use the restore function in Aperture.
Having the vault and live library on the same spindle is not a good idea as you realize, if one goes they both go, so you need to get the vault onto a separate drive ASAP. Also as the masters are referenced you need to make provision to get those backed-up as well. And remember as they are referenced backing up the library (either by vaulting it or copying it) will not back up the masters in this case.
Given that you are physically moving the drive between locations getting everything backed-up is even more important. Also remember if the environments you are moving the drive between are extreme (moving from cold to warm in either direction) give the drive time to acclimate before spinning it up. And after you have spun it up give it some time before actually writing to it.
The question of using a vault over simply copying the library is asked a lot. There are pros and cons to each.
On the plus side. If you have a managed library the masters are backed-up with the vault and as libraries with masters in them tend be large the fact that the vault operation only write the changes after the initial vault operation makes for quicker back-ups. Copying a full library with referenced masters can't be a long process.
If the library has referenced masters in it the advantages of the vault aren't as great. You still need to back-up the masters seperatly and as the library tends to remain smaller copying it isn't as big a deal.
One other thing to keep in mind about vaults. You can't get just a single image or project out of it. It needs to be restored before you can open it with Aperture. So you will need the disk space to do the restore. With a copy you can just access it with Aperture.
Hope this helps,
regards -
Hi,
Are company is going through bank transition in US, and Canada, and we process 820's that post into SAP using payment advices. So, we will be getting 820's from both banks in the transition. We are on ECC6.0.
**I'm wanting to know whether we should use one clearing G/L account for both banks, or one clearing G/L account per bank?** FYI. We will also be implementing EBS from the bank to debit the bank account, and credit the clearing account.
If I should be looking at two clearing account, what is the best way to achieve this?
The configuration for automatic incoming payment advice is configured:
Payment advice - 06 (payment advice from customer(EDI). and using posting rule BE01, which points back to G/L account in the payment advice configuration. It does not look at the bank it's coming from to determine the G/L account to post to.
I do notice that there is Additional account determination keys which looks like an additional account could be used if I setup another custom interpretative algorithm. Is this a possibility?
Is there something else I should be thinking about in doing this process?
Thanks for help!!!Hi,
I've the same problem, could you solve it?
Can someone provide a solution? -
Data not populated when run from a different machine
I have a stored procedure which populates a table
The stored procedure when it is run on my machine using SQL Plus populates data correctly in a table.
I select using SQL PLUS and it shows that the data is there
But when I run the SAME procedure ( SAME schema, SAME parameters, same everything ) from a
different machine using SQL PLUS , it shows that "PL/SQL procedure completed successfully", BUT does not populate
the table.
SAme thing is happening for all other procedures too.
Why is this happening
Please help
AshwinI checked using this
SELECT * FROM V$PARAMETER WHERE LOWER(NAME) ='nls_language'
AND I get same results on both machines
NUM NAME TYPE
VALUE
ISDEFAULT ISSES ISSYS_MOD ISMODIFIED ISADJ DESCRIPTION
UPDATE_COMMENT
96 nls_language 2
AMERICAN
TRUE TRUE FALSE FALSE FALSE NLS language name
Thanks
Ashwin N. -
Consolidated balance sheet for 3 company codes having different fiscal year
Hi,
In our current organisation, we have 3 company codes assigned to the company.
All the three company codes use the same chart of accounts.
Among the 3, 2 company code are having the same fiscal year variant, controlling area and tha same local currency.
One company code has different fiscal year variant , controlling area and local currency.
Now is it possible to see the balance sheet in f.01 for all the 3 company codes.
If no, could anyone let me know if I have to use the multiple ledger concept to do thid.
I am aware that multiple ledger concept appears when the same company code has different fiscal year variants , we can see tha same posting in different fiscal year variants.
I am not sure if I have to use the multiple ledgers to see the consolidate balance sheet for the three companies.
Please provide me with a clarity on the same.
Thanks,
Shilpa.
Edited by: ashilpa54 on Jan 12, 2011 5:24 AMHi,
Thanks for the extended help.
But Group Chart of accouts should be maintained for all the comany codes if they have different Chart of accounts at the company code level.
It is not mandatory have it when all the three company code have tha same COA.
Thanks,
Shilpa. -
Item code with different description
Hi All
The requirement is
in a PO, the items have same Item code with different item description and diff price and UOM
How to receive into Inventory ?
Please suggest
ThankyouMy issue has been resovled
-
Compilation problem in diferent machine
Hi All,
I am having some problem in compiling my code in different machine.
The problem is that i have defined classes which access each other in a cyclic manner. e.g. class A access the class B, class B access class A and C while class C access A and B.
So it didn't give me any problem when i was coding since it was a step by step process so class B was already compiled when class A needed it. Now that i am doing the cmpilation from the scratch i am getting the above problem.
In C++ one can do a forward declaration. I tried that here but it is not working..
Could you guys give me any suggestions...
Thanks
AmitabhI'm kind of confused by what you mean. You say you
can't compile on a different machine but it seems like
you are trying to use multiple inheritence in Java
which isn't allowed. Have you even got this to compile
in Java at all? Post some code.Hi JustLee,
By accessing a class i mean i am just calling the public memebers of that class I am not inheriting from that class.
here is a part of the code
There are 4 classes: RouteTable, RouteTableEntry, InterfaceList and InterfaceListEntry
the following code is in RouteTable
public static boolean IfEntryPresentInRouteTable(InterfaceListEntry tmpEntry){
Iterator r = routingTable.iterator();
while (r.hasNext()){
RouteTableEntry tmpRoute = (RouteTableEntry)r.next();
if (tmpEntry.ipAddress.equals(tmpRoute.dstIP) && tmpRoute.selfRoute == 1)
return true;
return false;
It access the InterfaceListEntry class. Now InterfaceListEntry, i have defined in a file named InterfaceList. And InterfaceList calls the members of RouteTableEntry and RouteTable which are defined in the same file viz. RouteTable.
So because of this cyclic accesing of classes the compilation is not going through
Does it make any clearer?
Amitabh -
Why differences in the way different machines handle the same code??
OK, I've posted some other threads re some difficulties in getting the same code to function identically on, not only different platforms, but even on different machines running Windows!
Here's another, and I would really appreciate an explanation:
I have a tree control. Per the user's request, I made the right button function the same way it does on MS File Explorer: When they right click, the currently selected nodes are compared to the node they clicked over. If they clicked over a selected node, then the context menu for the nodes selected is displayed. If they clicked over a different node, then the selection is changed to the new node and the context menu displayed. If they right click over the tree control, but not a node in the tree, then the selection is cleared and no context menu is displayed.
Works great on my machine.
However, on some machines, no context menu is displayed, nor is the node selected... UNLESS THEY ALREADY HAVE A NODE SELECTED. I.e., if they have no nodes in the tree selected, they cannot display the context menu by right clicking on a node, nor does the selection change to the node they right click over. It only works if they already have something selected.
My app is distributed as an executable jar file and I am distributing the JRE with it, so there are no class path issues or differences in the JDK. Basically, my problem can be paraphrased as: Why doesnt' Swing behave the same way on different machines...? At least why not the same on the eame machine.
It's driving me nuts to think that I've resolved some UI glitch only to find out that, no, it's only fixed on some machines, not others.
Thanks.Well, I normally develop on OSX and then deploy to Windows. But, this last build I have switched to Windows XP. The kinds of differences I am seeing are subtle: what triggers a repaint of the UI and now, it seems, what events are getting triggered by mouse clicks.
My deployment is an executable jar file, therefore it uses the manifest in the jar, not any classpath variables. I deploy an entire JRE along with the app, and the bat file that launches the app ensures that is the JAVA_HOME I'm using.
I can only guess that it's some underlying difference in versions of the platform and OS that causes this.
Here's the entire code for this latest issue re the popups:
private void maybeShowPopup(NodeInfoTree tree, MouseEvent e) {
if (e.isPopupTrigger()) {
// They clicked the platform dependent popup trigger...
int x = e.getX();
int y = e.getY();
TreePath[] selectedPaths = tree.getSelectionPaths();
if (selectedPaths == null) {
selectedPaths = new TreePath[0];
TreePath clickedPath = tree.getPathForLocation(x,y);
if (clickedPath == null) {
// they right clicked, but not on a node, so clear the selection and return
tree.clearSelection();
return;
} else {
// They clicked on a path, so let's see if it is a selected
// node. Search the selected array of paths, short circuiting
// out if it is found...
boolean foundInSelection = false;
for (int i=0; (!foundInSelection && (i < selectedPaths.length)); i++) {
foundInSelection = clickedPath.equals(selectedPaths);
if (!foundInSelection) {
// They right clicked elsewhere than the selection, so
// reset the selection to the new path...
tree.setSelectionPath(clickedPath);
final TreePath menuPath;
selectedPaths = tree.getSelectionPaths();
if (selectedPaths == null) {
return;
} else {
menuPath = selectedPaths[selectedPaths.length-1];
// Since they did click on a node, now we need to determine
// what popup menu should be displayed...
tree.scrollPathToVisible(menuPath);
NodeInfo ni = (NodeInfo) menuPath.getLastPathComponent();
// If the last path component is null, then they don't have
// anything selected, so we do nothing
if (ni == null) return;
// See if the Node is overriding our default popup menu...
com.harcourt.applications.tgen.browser.nodes.NodeMenu nodeMenu = ni.getMenu();
nodeMenu.activate(tree.getView(),ni);
JPopupMenu popup = (JPopupMenu) nodeMenu;
if (popup != null) {
popup.show(e.getComponent(),
e.getX(), e.getY());
The nodeMenu.activate call is just used to check whether or not certain menu options need to be enabled or disabled before displaying the menu. My theory right now is that, on some of these machines (all windows), a right click of the mouse is not generating a mouse event unless they have already something selected. I don't think it's a focus issue, because if they left click to select a node, and then ctrl-left click to de-select it, the right button then no longer generates a popup menu. They must select a node, then right click. Maybe there's no mouse event generated, or maybe this line is failing on some machines?:
TreePath clickedPath = tree.getPathForLocation(x,y); -
Same error code for two different errors
I have a simple state machine with a few states, two of which are read ini file and read GPIB data. I also have an error handling state where I would like to handle all errors. Errors are checked for on each iteration of the loop, passed by shift register. However, I can't just unbundle the error cluster and wire the error code to a case structure because if the ini file doesn't exist (error code 7) I want to exit the program. But if I get error 7 from the gpib (Nonexistent GPIB interface) I want the program to continue running. What is the best way to track where the error is coming from so I know how to handle it when two error codes for different errors have the same error code value?
Message Edited by for(imstuck) on 01-27-2010 03:47 PM
CLA, LabVIEW Versions 2010-2013Another option is to check the existence of the file before opening the config file, then exit the program if nessecary. Relying on error codes might be a bad option.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Maybe you are looking for
-
How can I stop multiple downloads of the same email from sympatico.ca?
Sympatico email has been set up with POP enabled and Do What the App says when deleting downloaded messages. TBird Account has been set up with server settings Leave Messages On Server unchecked. Starting a month or so ago, a second copy of an email,
-
What is the keyboard shortcut to select multiple files?
I have the wireless keyboard and Mac OS 10.6.8. How do I select multiple contiguous files in Finder? I've tried shift + click, fn + click, control + click, option + click, and command + click, but nothing works. Is there some burried setting somewhe
-
How to check message Holding capacity in PI 7.1
Hi All, How to check message holding capacity in PI 7.1 Thanks Dayakar
-
Problem with ESS Leave Request Workflow
We had configured ESS Leave request, which is working fine with Leave request approval. 1) Cancellation of Leave Request using the workflow WS12400005. Workflow is not getting triggered when we try to delete the le
-
I my safari automatically wiped when i took update. I am using Mac 10.6.8. Can you please send me how to reinstall it. Due to this my mail email system also effected. can you please help me soon