Re: Accessing DLL

Sivaram,
You will need to get the DLL into a LIB and wrapper it. Do this (in Win
3.1 & Borland) using the IMPLIB command. Then you can wrapper the lib.
Obviously, you will need to know the function prototype in order to wrapper.
The most common problem is that the functions will probably be defined
as using the PASCAL calling convention and Forte generates function
prototype without the PASCAL. If that happens, you need to modify the
generated *.cc files to add before compiling and linking.
Regards,
Tony Elmore
MSF&W
Springfield, IL
[email protected]
-----Original Message-----
From: Sivaram S Ghorakavi <[email protected]>
To: 'forte' <[email protected]>
Date: Monday, October 27, 1997 11:26 AM
Subject: Accessing DLL
Hello Guys,
Can anybody tell me is there any way to access DLLs from Forte ??
Through external system wrapping or Direct accessing!!!
Any clue will be very helpful
Thanx
Sivaram
International Business Corporation (IBC)

Pascal calling convention is implemented in R3.
Please review technote 11183 to set it up.
linh ...
At 03:15 PM 10/29/97 -0600, Jeanne Hesler wrote:
Hi Stephen,
If your errors show all of your function statements with an underscore at
the beginning, then that function has most likely been defined using the
pascal calling convention. Unfortunately, Forte does not provide a way for
you to specify the pascal calling convention prior to generating its
wrapper code. This makes it a bit awkward to wrapper functions that use
that convention, since you must do the fcompile manually. After you make
the library distribution, but before you do the fcompile, you will need to
edit the *.cc files that were generated, and add the call convention on
each of your function statements. This is a bit ugly, especially if you
have 200+ function statements, but once you have everything wrappered,
hopefully you will not need to do it again for a while.
As a point of interest, using the underscore to decorate the function name
for the pascal call convention is not specific to the Microsoft compilers.
Call conventions specify what sequence is used to pass the parameters from
the caller to the callee, and whether the caller or the callee will reset
the stack upon return from the function call. It is imperative that both
caller and callee follow the same rules, or the results will be fairly
disastrous. Using the underscore to decorate the name helps prevent that
kind of mismatch by keeping them from linking accidentally.
On the other hand, you probably can blame Microsoft for the prevalence of
the pascal call convention. Even though cdecl is the default call
convention for the compiler, it is fairly common for developers in the
Windows realm to use the pascal convention instead. This is the convention
used by all of the Windows API's, and I think people just got used to
specifying them that way. In fact, the convention is so prevalent that
some development environments will only utilize external DLL's where the
call convention is pascal. This makes it a bit of a challenge for those of
us who are producing external DLL's to be used in more than one development
environment. When we created the Forte version of our Imaging Developer
product, we changed the call conventions to simplify the wrappering
process, but I suspect that most vendors will stick with the pascal
convention in their DLL's.
Jeanne--
Pardon me for butting in.
I am following this conversation with great interest
because I am trying to do the same thing and I lack
experience in working with the Microsoft build environment.
I have from vendor X the following: A.dll B.dll C.dll and
A.lib and block of about 200 Declare Function statements
all of which reference library A.dll.
So far our attempts to fcompile a Forte 3E0 wrapper have
failed to link due to unresolved symbols, specifically the
Forte wrapper calls, each prefixed in the linker error mssg
with "_". I have heard that the "_" prefix is a Microsoft
"decoration code" for something.
I've done TOOL wrappers for ANSI C callouts on UNIX but this
DLL stuff looks like it has more moving parts.
Are there any tools in the MSVC 5 environment that would
enable us to see the service interfaces that the DLL's
export or determine what is in the LIB?
Stephen Porterfield
Developer
[email protected]
===================================================================
linh pham | ... Do I dare
510.869.2153 | Disturb the universe?
http://www.forte.com | In a minute there is time
| For decisions and revisions
which a minute will reverse.
t.s.eliot

Similar Messages

  • Error 1310. Error writing to file: Policy.12.0.Microsoft.Office.Interop.Access.dll AHHHHHH!!!

    I'm trying to install Office 2010 Professional Plus on Windows 7 Ultimate
    I keep getting this error and I'm at witts end
    Error 1310. Error writing to file: Policy.12.0.Microsoft.Office.Interop.Access.dll.
    Verify that you have access to that directory
    I have completely uninstalled Office 2007, ran CCLeaner, Windows Install Cleanup, followed the idea's on the forums
    http://social.technet.microsoft.com/Forums/en-US/office2010/thread/4e8beb60-ac2b-4fc5-b510-628b65d7cc67
    WTH? I get the same error no matter what I do, Can anyone PLEASE help?

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    Follow these methods one by one test this issue:
    1.      
    Complete uninstall previous version of office: 
    http://support.microsoft.com/kb/290301
    2.      
    troubleshoot a problem by performing a clean boot in Windows 7
    http://support.microsoft.com/kb/929135
    3.      
    Test with a new user account
    Ÿ  
    Create a user account
    Ÿ  
    Fix a corrupted user profile
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best regards
    William Zhou
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Cannot download itunes, error message says I am missing media accessibility.dll  Can you help me?

    I cannot download itunes on my PC.  Error message says i am missing Media Accessibility.dll  Can anyone help?

    Hi, you may have resolved this issue already, but if not...
    There should be one copy of MediaAccessibility.dll in the folder:
    C:\Program Files\Common Files\Apple\Apple Application Support (32-bit systems) or
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support (64-bit systems)
    If you can locate the file, right-click on it and select Properties, then on theDetails tab it should have File Version - 48.1.0.11. If it has a different version number then it is out of date and is likely to be cause of the problem.
    Please search your Programs Files and/or Programs Files (x86) folders for all copies of the file MediaAccessibility.dll - Any other copies of the file in different locations are likely to be out of date, but might be called in error by an executable file in the same folder, thereby causing the error.
    Should you find more than one copy of MediaAccessibility.dll could you please let me know in which other locations it was found. This will let us more effectively help others with the same issue by suggesting where they should look. If you have the correct version, in the correct place, then deleting any others should fix your problem. This is similar to the QTMovieWin.dll issue dealt with in the first box of the user tip Troubleshooting issues with iTunes for Windows updates.
    If you don't have the correct version of the file then completely removing all components, deleting the named folders, and reinstalling as suggested in the second box of the user tip should work. You could try repairing Apple Application Support alone from the the Programs and Features or Add/Remove Programs control panel first as that would be quicker, but only if it works.
    tt2

  • Access DLL

    Hello,
    I would like to write my own access DLL (libconnect.dll ) for
    authenticating requests and possibly changing the s-uri. I found
    some documentation on this in the flashmediaserver_managing.pdf
    file. This doc refers to a sample project with an Adaptor.cpp,
    Adaptor.h, Sample.dsp, and Sample.dsw file that I cannot find
    anywhere. A code snippet of the Adapter.cpp is in the
    documentation, but that is all. Where can I find this sample? Also
    is there some more in depth API documentation where I can get
    information on what libraries I need to link with and where they
    are, what functions I need to export, and what the function
    signatures looks like? I have searched this site and the web but I
    am not able to find anything.
    Thanks!

    Thanks a lot Cor.
    This was a big helper.
    I downloaded the latest SDK in which there is an VB .net example.
    In my case problem was I should declare function as:
    Declare Function usb_tc08_get_single Lib "c:\usbtc08.dll" (ByVal handle As Short, ByRef temp_buffer As single, ByRef overflow_flags As short, ByVal units As Short) As Short
    and then instead using intptr just callingget_single with temp_buffer(0)
    ok = usb_tc08_get_single(tc08_handle, temp_buffer(0), overflow_flag, 0)
    Thanks a lot again.
    Best regards,
    Grega

  • Labview hangs when accessing dll

    Im accessing an active x dll using labview 8.21.   When we query the dll all parallel loops in labview hang until the dll returns.   Is there a way to get around this behaivour?

    HI,
    I do not know if this will help, but there is an issue with the Call Function Library node in LabVIEW 8.2.1 and is posted in the LabVIEW 8.2.1 Readme help here:
    If you configure a Call Library Function Node to call a LabVIEW DLL, place a checkmark in the Specify path on diagram checkbox on the Function page of the Call Library Function dialog box, and select Run in UI thread in the Thread control, LabVIEW hangs when executing the Call Library Function Node. To correct this problem, select Reentrant instead of Run in UI thread in the Thread
    control. If you configure the Call Library Function Node to call a DLL
    written in C with these same settings, LabVIEW works correctly.
    I hope this helps,
    Regards,
    Nadim
    Applications Engineering
    National Instruments

  • How can java directly access DLL

    I have some DLLs that are either written in C or C++ ( no access to source code), I now need to access some objects from it. is there a quick way to do this? are there any libraries already developed to allow my java code to access the objects inside those DLLs directly?
    This is to convert some powerbuild code to java and the powerbuilder code is like this":
    OLEObject loo_test ;
    loo_test.connectToNewObject("AMS5.Almi);
    then it just uses loo_test to call the methods and get results
    AMS5 is the application name (there is actually an ams5.exe in the directly), and then a whole bunch of DLLs. I do not know which DLL is the code actually using..
    any help will be greatly appreciated!

    Clearly, at minimum, you need to know which DLLs contain the methods you're interested in. If you look at the JNA example below, it loads a Windows system DLL then contains 'beep', describes how to call it, then calls it. You will need to do something similar:
    * JNATest.java
    * Created on 24 August 2007, 12:12
    package com.sdl;
    import com.sun.jna.Library;
    import com.sun.jna.Native;
    import com.sun.jna.Structure;
    import com.sun.jna.ptr.LongByReference;
    import com.sun.jna.win32.StdCallLibrary;
    /** @author amalcolm */
    public class JNATest
        // Windows XP kernel library
        interface Kernel32 extends StdCallLibrary
            void Beep(int frequency, int duration);          
        public static void main(String[] args)
               Kernel32 kernel32=(Kernel32)Native.loadLibrary("kernel32",Kernel32.class);
                for(int freq=10;freq<10000;freq*=2)
                    kernel32.Beep(freq, 5);
    }

  • Error Having access DLL

    hi all,
    I am trying to have access a DLL written in I linguegem C, but I am not obtaining...
    I also have the archive h and nao I have the source of the DLL...
    The call of the function in the header file is Int16 PPEXPORT PP_iOpen (void);
    my class is
    public class Test {
         private static native void PP_iOpen();
         public static void main(String[] args) {
              System.loadLibrary("ppsetis"); // --> DLL
              PP_iOpen();
    The following error is happening :
    java.lang.UnsatisfiedLinkError: PP_iOpen
         at Teste.PP_iOpen(Native Method)
         at Teste.main(Teste.java:8)
    Exception in thread "main"
    Somebody already passed therefore?
    Thanks
    Positive Vibrations
    Lucas Ferst

    The call of the function in the header file is Int16 PPEXPORT PP_iOpen (void);That isn't a JNI method.
    Java only calls JNI methods.
    You must write a JNI wrapper method and then call that.

  • Accessing DLL in Java doesn't work - really it DOESN'T !!!

    Hi,
    I've got big troubles accessing a DLL in Java - almost for one week !!!
    I want to call some methods from the LDCNLIB.DLL (www.logosolinc.com -> Software)
    First, I tried to access the file via JNI ->
    Exception in thread "main" java.lang.UnsatisfiedLinkError: LdcnInit
    at Test.LdcnInit(Native Method)
    at Test.main(Test.java:11)
    Of Course, the DLL is loaded, everything seems fine.
    I tried to create header files, I tried SWIG, JNIWrapper, JACE, JAWIN, ... Nothing!!!
    I just want to call this method: "int count = LdcnInit("COM1", 19200);"
    Can anybody help me? Please (don't be angry with me), just tell me what to do, no links to tutorials or documentations - I ALREADY READ THEM ALL!!!
    Thanks
    Torsten

    Hi,
    I had no problem at all to access this lib with JNative.
    Here is a sample code.
    package org.xvolks.test.Ldcnlib;
    import org.xvolks.jnative.JNative;
    import org.xvolks.jnative.Type;
    import org.xvolks.jnative.exceptions.NativeException;
    public class Test {
         public static void main(String[] args) throws NativeException, InterruptedException, IllegalAccessException {
    //          System.setProperty("jnative.loadNative", "E:\workspace\JNativeCpp\Win32_Release\libJNativeCpp.dll")
              for(String s : JNative.getDLLFileExports("C:\\Documents and Settings\\Administrateur\\Bureau\\ldcnlib\\Ldcnlib.dll")) {
                   System.err.println(s);
              System.load("C:\\Documents and Settings\\Administrateur\\Bureau\\ldcnlib\\Ldcnlib.dll");
              JNative LdcnInit = new JNative("Ldcnlib.dll", "LdcnInit");
              LdcnInit.setRetVal(Type.INT);
              LdcnInit.setParameter(0, "COM1");
              LdcnInit.setParameter(1, 19200);
              LdcnInit.invoke();
              System.err.println("LdcnInit returned "+LdcnInit.getRetValAsInt());
    }The output was as expected :
    AddArcSeg
    AddLineSeg
    AddPathPoints
    ClearSegList
    FixSioError
    GetComPort
    GetSioError
    IOSynchOutput
    InitPath
    IoBitDirIn
    IoBitDirOut
    IoClrOutBit
    IoGetADCVal
    IoGetBitDir
    IoGetOutputs
    IoGetPWMVal
    IoGetStat
    IoGetTimerMode
    IoGetTimerSVal
    IoGetTimerVal
    IoInBitSVal
    IoInBitVal
    IoOutBitVal
    IoSetOutBit
    IoSetOutputs
    IoSetPWMVal
    IoSetSynchOutput
    IoSetTimerMode
    IsBusy
    LdcnChangeBaud
    LdcnDefineStatus
    LdcnFullInit
    LdcnGetGroupAddr
    LdcnGetModType
    LdcnGetModVer
    LdcnGetStat
    LdcnGetStatItems
    LdcnGroupLeader
    LdcnHardReset
    LdcnInit
    LdcnNoOp
    LdcnReadStatus
    LdcnResetDevice
    LdcnRestoreNetwork
    LdcnSendCmd
    LdcnSetGroupAddr
    LdcnShutdown
    LdcnSynchInput
    MaxStepPeriod
    MinStepPeriod
    PathGetVelocity
    PathTime
    SegmentsInBuffer
    ServoAddPathPoints
    ServoClearBits
    ServoEEPROMCtrl
    ServoGetAD
    ServoGetAD10
    ServoGetAux
    ServoGetCmdAcc
    ServoGetCmdAdc
    ServoGetCmdAdc10
    ServoGetCmdPos
    ServoGetCmdPwm
    ServoGetCmdVel
    ServoGetGain
    ServoGetHome
    ServoGetHomeCtrl
    ServoGetInport1
    ServoGetInport2
    ServoGetInport3
    ServoGetIoCtrl
    ServoGetMoveCtrl
    ServoGetNPoints
    ServoGetOutport1
    ServoGetOutport2
    ServoGetOutport3
    ServoGetOutport4
    ServoGetPError
    ServoGetPos
    ServoGetSDMode
    ServoGetServoInit
    ServoGetStat
    ServoGetStopCtrl
    ServoGetVel
    ServoInitPath
    ServoLoadTraj
    ServoLoadTraj10
    ServoResetPos
    ServoResetRelHome
    ServoSetFastPath
    ServoSetGain
    ServoSetHoming
    ServoSetOutputs
    ServoStartMotion
    ServoStartPathMode
    ServoStopMotor
    SetFeedrate
    SetOrigin
    SetPathParams
    SetTangentTolerance
    SimpleMsgBox
    SioChangeBaud
    SioClose
    SioClrInbuf
    SioGetChars
    SioOpen
    SioPutChars
    SioTest
    StepGetAD
    StepGetCmdAcc
    StepGetCmdPos
    StepGetCmdST
    StepGetCmdSpeed
    StepGetCtrlMode
    StepGetEmAcc
    StepGetHoldCurrent
    StepGetHome
    StepGetHomeCtrl
    StepGetIObyte
    StepGetInbyte
    StepGetMinSpeed
    StepGetMvMode
    StepGetOutputs
    StepGetPos
    StepGetRunCurrent
    StepGetStat
    StepGetStepPeriod
    StepGetStepTime
    StepGetStopCtrl
    StepGetThermLimit
    StepLoadTraj
    StepLoadUnprofiledTraj
    StepResetPos
    StepSetHoming
    StepSetOutputs
    StepSetParam
    StepStopMotor
    StepTime2StepsPerSec
    StepsPerSec2StepTime
    StepsPerSec2mSecPerStep
    ___CPPdebugHook
    mSecPerStep2StepsPerSec
    LdcnInit returned 0--Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Accessing DLL method's pointer parameters

    I want to retrieve the values stored at some addresses. My DLL method contained pointer as a parameter.
    So how could i write the program to access those values stored at those locations.
    Thanx in advance.

    how to create a wrapper to dereference the pointer.
    and how to retrieve the data.Do you understand how to write C/C++ code that uses a pointer to get to data?
    If not then you can't write a solution.
    Do you understand how to use the JNI access methods?
    If not then you can't write a solution.
    Do you understand how to create a JNI shared library?
    If not then you can't write a solution.
    If yes to all of the above then you do the following.
    1. Write the above code such that it extracts the data into C/C++ primitives.
    2. Use the JNI access methods to do something with those values.
    3. Wrap all of the that in a JNI shared library.

  • Access dll library

    Hi, I would like to operate some stepper motors from flash,
    the stepper interface board is usb and has a DLL function library .
    Can anyone tell me if its possible to access a dll function
    library from within flash
    Thanks, John

    Hello stringetje,
    > Hi, I would like to operate some stepper motors from
    flash, the
    > stepper interface board is usb and has a DLL function
    library .
    >
    > Can anyone tell me if its possible to access a dll
    function library
    > from within flash
    >
    > Thanks, John
    Using wrappers only.
    For example:
    http://www.multidmedia.com/software/zinc/

  • Accessing DLL files from Java

    I have a problem with Java, and the problem is that I'm trying to call a DLL file declared by C++ only but without a support for Java programs, is what I'm aiming for going to be available by using the rundll32.exe file.
    Note: I'm trying to use the (skydll.dll) file for controling skystar2 DVB card.
    Message was edited by:
    JZoro

    You cannot directly call a DLL from Java unless the DLL exposes entry points that are compatible with the JNI calling conventions.
    For example a Java class calling a native function like below:
    class Arguments
       private native void setArgs (String[] javaArgs);
       public static void main (String args[])
          Arguments A = new Arguments();
          newArgs[] = A.setArgs(args);
       static
          System.loadLibrary("MyArgs");
    }Needs a DLL entry point with the following signature:
    JNIEXPORT void JNICALL
    Java_Arguments_setArgs (JNIEnv *jenv, jobject job, jobjectArray oarr) {Notice that the first parameter of the method is of type JNIEnv and the second can be either a reference to a class or Java object instance.
    Jacques Gonzalez
    J4SOFT

  • Accessing DLL buffer data after receiving Windows Message

    Hi,
    I am programming MS4404 bar code scanner using LabVIEW. This is a miniscan and does not have trigger button. So we need to trigger it using Software. 
    Could communicates with scanner to enable. disable, beep, etc....issue is with the decoded data.
    DLL put data in the allocated buffer, and send a windows message WM_XXXX to application. Problem is to check these windows messages and copy the buffer data into application..............struck up here..........There was an example for this scanner but that is in VC and it is using ON_MESSAGE function to catch windows message and memcpy() to copy buffer data into local.........................Not sure how to go ahead in LabVIEW
    Appreciate any help from fellow members...........
    Thanks in advance
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

    Little advancement in the issue......
    I am able to capture windows messages using Windows messages queue library (found on ni.com), Now the issue is with creating buffer for DLL and pulling data from that DLL on successfull Decode of data from scanner.
    I think I am going wrong in giving cirrect data type while creating buffer here.
    Below is the description of the function from manual
    SSIDLL_API int __stdcall SetDecodeBuffer(int nComPort, unsigned char *pData, long max_length);
    where:
    . nComPort is the COM port number used in the call to SSIConnect. pData is a pointer to the destination buffer for decode data returned from the scanner
    . max_length is the size in bytes of the destination buffer 
    I am sure I am going wrong about the pData parameter.
    I need to create this buffer before decoding, so the scanner fills this buffer with decoded data.
    Thanks in advance for your help.
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

  • Accessing Dll from JNI

    Hello,
    I have a dll (COM component) that can create *.wfl files. I am writing an applet to call that dll file so that I can use the component to create the *.wfl file.
    Can any one tell me how to do this? Please help me with some source code. I am new to JNI.
    Thanks

    sir, this is raaj,, long back u posted a question in forum that, how to call functions or procedures from dll created as a com component from java... Did u got it, do u have any idea about it.. Plz help me.. I am also created one dll in vb which contains some functions. I know what the dll does, but I want to call all the functions availabe in vb dll want to call from java. plz help me ya sir..

  • How to access C/C++ functions in Java using existing .dll library

    Hi JNI Guru's,
    I am having well written API in C/C++.This C/C++ files are made into *.dll files.The api are working fine.
    I wan't access the C/C++ api functions in Java., just using System.LoadLibrary("*.dll").Is it possible.I kindly request you to suggest some examples and how to do this.
    Its Urgent !.
    Thanks and Regards,
    V K LAL

    In general you cannot simply access dlls that have already been written. The DLLs called using JNI must conform to JNI calling standards.
    This means you will probably have to write one or more "wrapper" dlls which a) provide the correct JNI interface, and b) call the existing dlls.
    There are some programs around that claim to be able to generate such wrappers. Try a google search for "wrapper", "jni", "generate".
    The JNI tutorial covers creating wrappers.

  • Local MS Access file and SET COUNT

    I have a small app that relies on a local MS Access database file for retrieving and storing information.
    I've used the "Add new data source" wizard in Visual Studio and then I've bound a couple of richtextboxes to the one (1) table in the database file.
    I use this code to let the user save updated text to the file, however it sometimes keeps throwing an error. The code is:
    MyDataBindingSource.EndEdit()
    CustomersTableAdapter.Update(CustomerdatabaseDataSet)
    The error thrown, seemingly at random, but probably occuring when the users edit multiple values, is this: "An unhandled exception of type 'System.Data.DBConcurrencyException' occurred in System.Data.dll". According to http://support2.microsoft.com/kb/310375/en-us
    I should set "NOCOUNT" to OFF instead of ON, but no amount of googling is able to tell me how to do that. I've been all over my code and the queries/code generated by the VS wizard, but I cant find any NOCOUNT setting anywhere.
    Help, please?

    Hello again
    Does this output help? I've also pasted the code I'm using below. Many thanks, really out in the deep end here
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized
    and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code'
    is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is
    optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger
    option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\bin\Debug\RuBe Ktj.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Deployment\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is
    enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option
    'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My
    Code' is enabled.
    The thread 'vshost.NotifyLoad' (0x1674) has exited with code 0 (0x0).
    The thread 'vshost.LoadReference' (0x1e80) has exited with code 0 (0x0).
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\bin\Debug\RuBe Ktj.exe', Symbols loaded.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_sv_b77a5c561934e089\System.Windows.Forms.resources.dll'
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_sv_b77a5c561934e089\mscorlib.resources.dll'
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is
    enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just
    My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll', Skipped loading symbols. Module is optimized and the debugger option
    'Just My Code' is enabled.
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code'
    is enabled.
    StackTrace: '   vid System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
       vid System.Environment.get_StackTrace()
       vid RuBe_Ktj.Form1.Form1_Load(Object sender, EventArgs e) i C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\Form1.vb:rad 20
       vid System.EventHandler.Invoke(Object sender, EventArgs e)
       vid System.Windows.Forms.Form.OnLoad(EventArgs e)
       vid System.Windows.Forms.Form.OnCreateControl()
       vid System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       vid System.Windows.Forms.Control.CreateControl()
       vid System.Windows.Forms.Control.WmShowWindow(Message& m)
       vid System.Windows.Forms.Control.WndProc(Message& m)
       vid System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       vid System.Windows.Forms.ContainerControl.WndProc(Message& m)
       vid System.Windows.Forms.Form.WmShowWindow(Message& m)
       vid System.Windows.Forms.Form.WndProc(Message& m)
       vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       vid System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       vid System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       vid System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       vid System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       vid System.Windows.Forms.Control.set_Visible(Boolean value)
       vid System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       vid System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       vid System.Windows.Forms.Application.Run(ApplicationContext context)
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       vid RuBe_Ktj.My.MyApplication.Main(String[] Args) i 17d14f5c-a337-4978-8281-53493378c1071.vb:rad 81
       vid System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       vid System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       vid Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       vid System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       vid System.Threading.ThreadHelper.ThreadStart()'
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic.resources\v4.0_10.0.0.0_sv_b03f5f7f11d50a3a\Microsoft.VisualBasic.resources.dll'
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.resources\v4.0_4.0.0.0_sv_b77a5c561934e089\System.Data.resources.dll'
    A first chance exception of type 'System.Data.DBConcurrencyException' occurred in System.Data.dll
    'RuBe Ktj.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Transactions.resources\v4.0_4.0.0.0_sv_b77a5c561934e089\System.Transactions.resources.dll'
    System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Ohanterat
    undantag</Description><AppDomain>RuBe Ktj.vshost.exe</AppDomain><Exception><ExceptionType>System.Data.DBConcurrencyException, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Simultankörningsfel:
    UpdateCommand inverkade på 0 i stället för 1 poster.</Message><StackTrace>   vid System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
       vid System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
       vid System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
       vid System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
       vid System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
       vid RuBe_Ktj.KunddatabasDataSetTableAdapters.KunderTableAdapter.Update(KunddatabasDataSet dataSet) i C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\KunddatabasDataSet.Designer.vb:rad 1409
       vid RuBe_Ktj.Form1.Button6_Click(Object sender, EventArgs e) i C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\Form1.vb:rad 152
       vid System.Windows.Forms.Control.OnClick(EventArgs e)
       vid System.Windows.Forms.Button.OnClick(EventArgs e)
       vid System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       vid System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
       vid System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.Button.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
       vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       vid System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
       vid System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       vid System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       vid System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       vid System.Windows.Forms.Application.Run(ApplicationContext context)
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       vid RuBe_Ktj.My.MyApplication.Main(String[] Args) i 17d14f5c-a337-4978-8281-53493378c1071.vb:rad 81
       vid System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       vid System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       vid Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       vid System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       vid System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.Data.DBConcurrencyException: Simultankörningsfel: UpdateCommand inverkade på 0 i stället för 1 poster.
       vid System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
       vid System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
       vid System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
       vid System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
       vid System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
       vid RuBe_Ktj.KunddatabasDataSetTableAdapters.KunderTableAdapter.Update(KunddatabasDataSet dataSet) i C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\KunddatabasDataSet.Designer.vb:rad 1409
       vid RuBe_Ktj.Form1.Button6_Click(Object sender, EventArgs e) i C:\Users\rbl\Documents\Visual Studio 2012\Projects\RuBe Ktj\RuBe Ktj\Form1.vb:rad 152
       vid System.Windows.Forms.Control.OnClick(EventArgs e)
       vid System.Windows.Forms.Button.OnClick(EventArgs e)
       vid System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       vid System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
       vid System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.Button.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
       vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
       vid System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       vid System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
       vid System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       vid System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       vid System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       vid System.Windows.Forms.Application.Run(ApplicationContext context)
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       vid Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       vid RuBe_Ktj.My.MyApplication.Main(String[] Args) i 17d14f5c-a337-4978-8281-53493378c1071.vb:rad 81
       vid System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       vid System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       vid Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       vid System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       vid System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>
    An unhandled exception of type 'System.Data.DBConcurrencyException' occurred in System.Data.dll
    Additional information: Simultankörningsfel: UpdateCommand inverkade på 0 i stället för 1 poster.
    The program '[7824] RuBe Ktj.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
    Adding a new row:
    Private Sub Button6_Click_1(sender As Object, e As EventArgs) Handles SkapanyrutinBtn.Click
    Dim newrow As DataRow = KunddatabasDataSet.Tables("Kunder").NewRow()
            Dim newrowname As Object = InputBox("Skriv in (kund)namn på den nya rutinen")
            newrow("Kundnamn") = newrowname
            If newrowname = "" Then
                Exit Sub
            End If
            KunddatabasDataSet.Tables("Kunder").Rows.Add(newrow)
    KunderBindingSource.EndEdit()
            KunderTableAdapter.Update(KunddatabasDataSet)
    End Sub
    Attempting to save:
    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles SavechangedBtn.Click
    KunderBindingSource.EndEdit()
            KunderTableAdapter.Update(KunddatabasDataSet) ' <--- This is where the error is thrown!
    End Sub

Maybe you are looking for

  • How do I use CreateBookmarksFromGroupTree and NOT guid in the name for my top level?

    Post Author: Barbdcg CA Forum: Deployment I have a report that I have created that uses uses groups and I wanted export a PDF using the CreateBookmarksFromGroupTree option. While that works, I get an ugly top level bookmark name that starts with the

  • Can't Update or Download Apps PLEASE HELP!!!

    I recently got a macbook pro and ever since I got it I couldn't download or update any apps. When I click download or update it downloads the app into a folder called downloads, which is inside iTunes Media in a .tmp folder, but the app does not go i

  • Purchase Order total weight

    Hi Gurus, I am working on an enhancement to handle the total weight of the purchase order during creation.We need to validate with few custom fields in MARA table to handle small pack and large pack materials based on container group(ZCONGR) . Based

  • OLAP 11g - Passing external Paramteres into AW

    We are on OLAP 11gR2 release I  have a scenario where in I need to pass Period dimension chosen by the USERS while they run queries ( via Cube ET views from BO application) against OLAP Cube. Since this is dynamic scenario, is there a way to do it vi

  • ITunes.exe has disappeared from my computer

    iTunes has been working spendidly for quite some time, but went in today and my shortcut doesn't work to open it.  I used Windows Explorer to find it, and while my library and other peripherals are there, the actual application has disappeared.  Does