Baseline of connection sharing

I have an application to LabVIEW 8.5 user interface.  The application connects to a database to retrieve and save information on the product images.  As the user draws the King on the image, I use a structure of the event to select, insert, or update records in a database. At first, I was a connection / disconnection from the database for each insert / update / select SQL statement.  As I moved from prototype to release, I decided to connect to the database once and then re - use the reference connection stored in a global variable.

Now, sometimes, I get the following error:

Exception occurred in the Microsoft OLE DB provider for ODBC drivers: Transaction cannot have multiple recordsets with this cursor type. Change the cursor type, commit the transaction or close one of the recordsets. in Conn-> SaveCrackDimensions.vi-> Main.vi Execute.vi

I use an event structure to handle user events.  That is to say: when a user draws and KING on the image, a "Mouse Up" event capture data, and then calls a user event "SaveData".  The "SaveData" user event can be called in several places. It seems that maybe the user event is executed twice in parallel.  I thought that the structure of the event only to run a single event at a time.  The error guess I'm called ExecSQL.vi more than once without release the reference to the Recordset.  I looked and looked, but I see nothing. The user event "SaveData" releases all recordsets and performs a validation or cancellation for all transactions before leaving.

Anyone have any idea why I would get this error?

Thank you

Glen Morel

I found the error.  In image1.png attached below, the first call to DB tools free Object.vi has nothing to keep the structure of the case and for the first processing loop.  So apparently, sometimes the for loop would execute before the first call to DB tools free Object.vi.  The tools run DB Query.vi, circled in red, run and return an error.

See image2.png for the simple solution.  I have just connected the error to case structure to ensure the... Free object.VI executes first.

Tags: NI Software

Similar Questions

  • Bluetooth network and Internet connection sharing problem

    I am putting in place a network via Bluetooth between two computers later with Toshiba Stack installed and to share the Internet connection with the second computer.

    On the computer of trees I put Internet connection sharing, and for this reason, it automatically assigns addresses TCP/IP for the Bluetooth Personal Area network (192.168.0.1).
    On computer 2, I put everything to get it automatically. Firewall (Kaspersky) disabled.

    When I connect 2 Bluetooth devices, everything looks fine, the 2nd automatically gets the IP address, I can ping both computers and Internet works also on the 2nd computer, for a few seconds! After that, it appears as the 2nd computer is disconnected from the network... what could be the problem?

    In the case of the observer under the System tab, I found information like these:
    2nd comp:
    The system has detected that the network \DEVICE\TCPIP_{E44D18EB-91F5-4 adapter has been connected to the network and launched a normal operation via the network card.

    The browser has forced an election on network \Device\NetBT_Tcpip_{E44D18EB-... because a master browser was stopped.

    and the 1st model also appears this:
    The system has detected that the network Bluetooth adapter... Area Network - Packet Scheduler Miniport has been disconnected from the network, and the network adapter configuration has been released. If the network adapter was not disconnected, this may indicate that it has malfunctioned. Please contact your vendor for updated drivers.

    In your case, I would look at the following Web site:
    http://APS.toshiba-tro.de/Bluetooth/redirect.php?page=pages/HOWTO.html
    It lists the following document:
    "Internet on PDA via PAN using Notepad as a gateway."
    In your case, the PDA is another laptop, but the procedure should be very similar.
    I would check the firewall settings later if it still does not work.

  • NJR, I have installed connectify on mn pc connection sharing software 2000 computer hp laptop, but it displays a yellow triangle with AP not supported. What do I do?

    Hi I have installed connectify on mn pc connection sharing software 2000 computer hp laptop, but it shows me a yellow triangle with Ap not supported, what to do?

    Hello

    You asked your question in the text of the Microsoft Community. Please could you click on the globe icon to the world (change region) at the bottom left of the screen and then choose your preferred language. Now ask you question once again.

    Thank you.

  • ICS: Internet connection sharing ERROR while allowing IP.

    Hi all

    My "Netgear" router gives the IP Address of the gateway 192.168.0.1 and my laptop is connected via a wireless connection. When I turn on my connection sharing wireless internet connection, windows xp tells me with the message below:

    "When Internet connection sharing is enabled, your LAN adapter will be on use the 192.168.0.1 IP address." Your computer may lose connectivity with other computers on your network. If these other computers have static IP addresses, you must set them to obtain their IP addresses automatically.
    "Are you sure you want to enable Internet connection sharing?"

    When I press 'Yes', it gives me an error:

    "An error occurred while Internet connection sharing was being enabled.

    Internet connection sharing cannot be enabled.
    A LAN connection is already configured with the IP address that is required for automatic IP addressing.

    My question is, if we can configure ICS service to activate other windows of the IP ADDRESS is required to apply?

    Thanks in advance for your help...

    I'm sorry, but ICS is completely inflexible and does not change its LAN IP address.

    The settings that you found are for something else: allowing unsolicited Internet connection requests to pass through the firewall on the ICS computer to a client computer.

    Change the address LAN IP of the router.  It is easy to do and will solve the problem.

  • Failed to start service Windows Firewall/Internet Connection Sharing (ICS) on the local computer. Error 5: access is denied. »

    original title: error 5 access denied firewall

    Failed to start service Windows Firewall/Internet Connection Sharing (ICS) on the local computer. Error 5: access is denied. »

    Hi vipin sharmavg,.

    1. did you of recent changes on the computer?

    2. do you have security software installed on the computer?

    See the below Microsoft article and try the steps mentioned, check if it helps.

    You cannot start the Windows Firewall service in Windows XP SP2

    http://support.Microsoft.com/kb/920074

  • Problem with Vista and XP computers Internet connection sharing.

    I have a host computer running Windows XP service pack 3, with an of Virgin Mobile Broadband2Go modem and a laptop computer with Vista. The host computer is connected to a Microsoft MN - 700 via a CAT5 network cable. The laptop is connected via a wireless connection. I'm sharing the Broadband2Go internet connection by using Internet connection sharing. I enabled sharing on the network, on the host computer connection. But the laptop does not connect to the internet. I can ping the host of the laptop, but cannot ping the laptop computer from the host. I have tried everything I can think of, to get the job of network. He worked, until Thursday. Thursday, there is some automatic updates installed on the host computer. They have been updated for security. I don't know if updates of security would have affected the network or not. All helkp would be appreciated.

    Thank you

    Oscar

    It is a facility that is complicated, because the host computer and the MN-700 can act as routers and DHCP servers, making it uncertain given the laptop its TCP/IP configuration.  Here are two ways to make it work:

    • Use the MN-700 as a router: connect the host computer to the "Modem" port of the MN-700.  To do this, interface LAN of the MN - 700 must have an IP address in a different subnet from the 192.168.0.x subnet that uses ICS.  The laptop will be able to ping on the host, but the host will not be able to ping from the laptop.

    or:

    • Use the MN-700 as a point of access only, not as a router: connect to the host computer to one of the MN-700 Ethernet ports and disable the DHCP server integrated of the MN-700.  Both computers should be able to ping each other.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • How can I fix Internet connection sharing?

    I said that it's corrupted... :-(

    Hi Bill SS,.

    (1) what is the exact\complete error message you get?

    (2) remember to make changes to the computer before the question?

    Consult the following links...

    How to configure Internet connection sharing in Windows XP
     
    Troubleshooting Internet connection sharing in Microsoft Windows XP
     

    Suggestions for a question on the help forums

    http://support.Microsoft.com/kb/555375

    Get back to us with more information on the issue so that we can send the exact resolution.

  • Problem to create the Internet connection sharing between Windows XP and Windows Vista.

    Original title: Internet connection sharing between Windows XP and Windows Vista.

    Hello

    Recently, I plugged a laptop running Windows XP to a desktop computer running Windows Vista using a standard Ethernet cable with the intention of use sharing of Internet connection. The notebook contains a wireless connection that I've routed to the office via the cable said.  While the initial phase of installation went well (I was too lazy to do it manually, so I just used the Wizard "Set up a home or small business network" Windows XP,) I had to turn off the host computer to install a program. When I tried to set up ICS again, I couldn't connect to the Internet by using ICS. After this failure, I tried to configure the properties of TC/IPv4 (IP, gateway by default, etc.) manually, but I still couldn't run.  I am able to access the shared host PC and client files. It seems to me that some service essential to the proper functioning of the ICS may be disabled in some way, but it's just speculation, as I have no evidence of such a service. Help would be most appreciated.

    Thank you

    FG-man

    I tried this before using a laptop to share internet with my 360.  problem is there was Nat on the router, and it is in contradiction with the ics.

    Anyway long story short I did some research on the Internet and discovered that if you're behind a router ICS will be confllict with her, as ICS also does routing. a much better option is to "bridge the conections ' on the laptop.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/hnw_bridge_install.mspx?mfr=true

    If you go this route, you need to set a static ip address for the office,

    Either that or if you want to continue using ICS put the laptop in the DMZ in the router may help, but it will be less secure.

    Hope that this helped good luck

  • Error: "Windows cannot start the windows firewall/internet connection sharing (ICS) service.

    On my Eee PC under XP Home edition tablet, I get the error "Windows cannot start the windows firewall/internet connection sharing (ICS) service" when I try to access my firewall. I also can't connect to my router Wireless Lan to go on the internet. This may be due to some viruses that have been deleted using Microsoft Security Essentials.But the problem persists. Could recharge SP2 solve this problem or am I condemned to reload the operating system?

    Hi jdmanel,

    NOTE: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link. http://support.Microsoft.com/kb/322756

    Follow the steps in the article.

    You cannot start the Windows Firewall service in Windows XP SP2

    Troubleshooting settings of Windows Firewall in Windows XP Service Pack 2 for advanced users

    For reference:

    How to manually open ports in Internet Connection Firewall in Windows XP

  • Why my internet connection sharing with my xbox 360 does not?

    my internet connection sharing use to work with my Xbox, but all of a sudden, it stops working, I then went on another computer which had xp (my other had 7) and it worked for a little started but still spoil later. I have another computer with xp and won't work at all with it. I think that I put everything in the right seat, and when I plug my 360 into my router it works but I want to be able to play in other rooms. I also tried to fill the connection on all 3 computers and it never worked.

    Hello

    See the following article:

    Use your computer to connect your Xbox 360 console to Xbox LIVE

    See also:

    Xbox 360 support

  • Internet connection sharing (6) error during installation of nintendo wifi connector

    "sharing the internet connection (6) error" appears when I try to install a nintendo wi - fi connector (to connect between my wii and computer for netflix). I have high speed dial-up (canada), but apparently can use wi - fi connector to talk about the wii. with the first installation, it worked well enough to allow the wii. but the wii could not connect to netflix.
    the first time I had hung it, I ended up uninstalling and now when I try to reinstall it, this error message appears.
    When I got the wi - fi connector connected the first time, I did it with my antiviirus running program: the help site suggested to uninstall then reinstall the wifi band program. so this time (after you have uninstalled it), I disabled the antivirus, but now get the error message.
    I have a call in nintendo, but fear that it is a problem of microsoft xp.

    I don't have personal experience with this, but the title claims that it fixes your exact problem: Guide to fixing ' error (6) Internet connection sharing

  • Internet connection shared with Xbox

    I need to restart my internet connection shared with my Xbox everytime I turn it on to connect to Xbox Live.  How can I keep this happen and more keep the Xbox all the time?

    Hi JohnnyBz,

    I suggest you send your query in Xbox live forum to get the best support that this is a dedicated forum for Xbox live. Link: http://forums.xbox.com/

    With regard to:

    Samhrutha G S - Microsoft technical support.

  • With the help of a computer connected to internet wireless as a connection shared by eithernet

    I'm in an office that I rent. The landlord provides a wireless connection to the internet. I have here four computers.

    I want to take a computer with a wireless card and share the connection to my other computers through a router connected by ethernet.

    I tried but can't seem to make it work.

    I use a windows xp pro corporate version

    Anyone know how I can do this?

    I'm in an office that I rent. The landlord provides a wireless connection to the internet. I have here four computers.

    I want to take a computer with a wireless card and share the connection to my other computers through a router connected by ethernet.

    I tried but can't seem to make it work.

    I use a windows xp pro corporate version

    Anyone know how I can do this?

    What you're talking about is called Windows Internet connection sharing.  There are a lot of 'how to' sites which can be found using Google.  Here's one from Microsoft:http://support.microsoft.com/kb/306126

    In order to have more computers to share the connection, you must connect a switch (or hub) to the computer 'host' and then other computers to connect to the switch. http://www.Newegg.com/store/subcategory.aspx?subcategory=30&name=switches&order=price

    I agree with Brian, however.  You would be better off adding features wireless to other computers.  In this way, they will be able to connect even if the 'main' computer (one that connects currently) is off.

    Wireless adapters: http://www.newegg.com/Store/SubCategory.aspx?SubCategory=31&name=Wireless-Adapters

  • Internet connection sharing everything just works. Problem really very annoying. Help.

    I have an Internet connection sharing situation. It worked perfectly until I got a little virus. Then, with the CORRECT settings, when I try to turn it on in Vista "allow the other network users to connect through this computer's Internet connection", I get an error message stating "unable to enable shared access. Error 0 x 80004005: unspecified error. "I checked and overchecked. The settings are OK, it's just my computer that has the problem, the other OS I installed (Windows 7) he shares perfectly. It is not material, it's just because of VISTA. What can I do? I searched on the Internet for 5 days and nothing. People seem to encounter this problem, but no answers, or nobody gives one any solution. Can I reinstall just the ICS service? Is this possible? To correct it, a key "reg", a patch, no matter WHAT? It is really really important. I removed all viruses from my computer. Internet works fine on my computer. What can I do? Please, please help me... Please, I beg you.

    Dear engineers,

    I have computer (A) where I use Vista Home edition and I have internet connected with the Ethernet adapter, and I have an another Computer (B) when I want to use internet. I did an adhoc network and connected two computers via wireless adapters, but computer B can not use internet b/c on computer A, I can't start Internet - ICS connection Service. whenever I try to start the service it gives following error;

    "Service ICS (ICS) on Local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs"

    Can you please suggest a solution for this.
    Waiting for your response.

    Concerning

  • Vista internet connection sharing configuration

    Please take note that I have already visited the URL for windows: http://Windows.Microsoft.com/en-us/Windows-Vista/using-ICS-Internet-connection-sharing

    I did the following:

    • Configured Internet connection service.  Service is set to automatic, running, recovery failures all the value zero seconds
    • Connection to the LAN is configured as 'shared '.

    BlackBerry Curve 8330 is connected the USB cable live and is considered 'removable disk' records can be seen

    The Blackberry a browser opera mini version 4.2 installed but cannot connect to the internet.  I ask for advice on how much of the configuration is proveable and how much more needs to be configured to connect to the internet. Concrete measures to solve the problem so that I can work on what remains to do research

    Hello

    I suggest you to send your application in Blackberry forum for better support.

Maybe you are looking for