Dll C structure

I search all the examples about how to pass the c  structure dll in LABView, but I really don't know the true answer.here is my question:
I want to use this dll which was given from my  customer.but I don't get the following data that I expected.
/*struct SDownloadInfo {
 BYTE status; // status of the  process (Eeprom Dawnload Status)
 BYTE perc;  // percentage of the process (0 - 100)
 BYTE err;  // error code (see ERR_CODE)
 BYTE nRetry; // n. attempt (1 - 3)
SBIT100_API SDownloadInfo GetDownloadInfo(),
the sepc. say that if the downloadinfo  is 4, the process is complete, but because this involed the SDownloadinfo,
I use the dll like this
but there is no correct data display,
Thanks! need your  help.
maincool
Attachments:
eep dll.doc ‏25 KB

dll C structure
maincool
Attachments:
setting.GIF ‏61 KB
setting1.GIF ‏61 KB

Similar Messages

  • %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next p

    I am getting the error in my 7200 vxr router where running ios is c7200p-advipservicesk9-mz.124-15.T4.bin
    my observation is
    when tunnel interface is going down that time i am getting this error
    error is
    %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next pointer, -
    Traceback= 0x140C170 0x3760FDC 0xE0E31C 0xE0EB80 0xE0B910 0x1A4C9FC 0x1A4CC44 0x1A5C378 0x168B05C 0x2D9298 0x1A3E854 0x1A3F110 0x2930240 0x2E5850 0x2905A30 0x2905F08

    It does not say much !
    The following are utility messages.
    Message
    %UTIL-3-DLL : Data structure error -- [chars]
    Explanation A software error occurred, resulting in a data structure inconsistency.
    Recommended Action Copy the message exactly as it appears on the console or in the system log. Research and attempt to resolve the issue using the tools and utilities provided at
    http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying information. Also perform a search of the Bug Toolkit
    http://www.cisco.com/pcgi-bin/Support/Bugtool/home.pl. If you still require assistance, open a case with the Technical Assistance Center via the Internet
    http://tools.cisco.com/ServiceRequestTool/create, or contact your Cisco technical support representative and provide the representative with the gathered information.

  • %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next po

    I am getting the error in my 7200 vxr router where running ios is c7200p-advipservicesk9-mz.124-15.T4.bin
    error is
    %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next pointer, -
    Traceback= 0x140C170 0x3760FDC 0xE0E31C 0xE0EB80 0xE0B910 0x1A4C9FC 0x1A4CC44 0x1A5C378 0x168B05C 0x2D9298 0x1A3E854 0x1A3F110 0x2930240 0x2E5850 0x2905A30 0x2905F08
    Please help me out from this problem

    Error message decoder results:
    1. %UTIL-3-DLL: Data structure error -- %s A software error occurred, resulting in data structure inconsistency.
    Recommended Action: Copy the message exactly as it appears on the console or in the system log.  Research and attempt to resolve the issue using the tools and utilities provided at  http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying  information. Search for resolved software issues using the Bug Toolkit at  https://tools.cisco.com/bugsearch/?referring_site=emd. If you still require assistance,  open a case with the Technical Assistance Center via the Internet at  https://tools.cisco.com/ServiceRequestTool/scm/mgmt/case, or contact your Cisco technical support  representative and provide the representative with the information you have gathered. Attach the  following information to your case in nonzipped, plain-text (.txt) format: the output of the show  logging and show tech-support commands and your pertinent troubleshooting logs.
    Related documents- No specific documents apply to this error message.

  • SIT abs brake model error 14103

    Hi everybody,
    I installed the SIT to communicate between LabVIEW and Matlab simulink. I tried the example with the abs brakes which is given on the NI-homepage because I'm new with this stuff. First there appeared the error 14103. So I went to Tools->Options->Front Panel and unchecked the "Use localized decimal point". Then it seemed to be ok, there was no error anymore. But the program doesn't run. When I start it and change the slider there is no change in the vehicle speed or wheel speed e.g.. They are at 0.
    Does anybody know why? Does the simulink model has to be open or closed? Or could there be another error? Do I have to synchronize LabVIEW and Matlab???
    Thanks for your help.
    Steffi

    Steffi,
    what you gonna try to implement isn't that easy with your approach.
    Simulink and LabVIEW are running independent from each other. Furthermore, Simulink is generally a simulation environment,  to combine it with other targets (HW or SW) you need to use the Real-Time Workshop (RTW) from Matlab to create a DLL of your Simulink model. Afterwards you can implement this DLL in LabVIEW by using the SIT. In case of using the Simulink DLL, the structure of two independent running frameworks changes in the following way: Just imagine that LabVIEW is the only framework and in this framework you call the Simulink model again and again and again... (the model is compiled with a fixed steped solver, therefore, the calling framework (LabVIEW in our case) is the time base for the model)
    If you don't have the RTW, I recommend to go one of the following ways:
    Use either the LabVIEW Simulation module to translate the Simulink model into LabVIEW code or use LabVIEW for controlling (Kp,Ki, etc.) and/or monitoring (specific signals) only.
    Another possible - but really hard way - would be to synchronize Simulink by using a timer obj in combination with a triggered subsystem.
    I hardly recommend to use the RTW.
    Thanks,
    Thomas
    http://www.newgistics.com

  • Assign global array of structures of structures of std strings in a dll

    I have a dll which consists of three c files. Find bellow the c file of the loader and the three files of the dll. In dll, file 1 and file 2 are almost identical, static arrays names and sizes, structure names, Prepare_1() and Prepare_2() functions. There
    is a small difference in the function Prepare_1 in the way MuxStatusSupl[ u32Idx ].FileInfo.Name is assigned and there I get an exception. Another difference is that the structure StructStatus in file 2 has an extra member compare to file 1. From this point
    I couldn't strip down even more the sample code because small changes make the problem disappear without, I'm afraid, really solving the problem. That's why I have put so much code here, I'm not even sure what is relevant and what not. For example, if I add
    in file 1 in the StructStatus the extra member u32ExitPoint (and, of course, I modify Status_Init accordingly), I don't see the problem anymore.
    ///////////////////////////////////////////////////// loader file begin ////
    #include "stdafx.h"
    int main(int argc, char* argv[])
    {   HINSTANCE hDLL = LoadLibrary( DLL_FQN_FILE_NAME );
        if( void ( * pCreateDllInterface )( void ) =
                (void(*)())GetProcAddress( hDLL, "CreateDllInterface" ) )
            pCreateDllInterface();
        FreeLibrary( hDLL );
    ///////////////////////////////////////////////////// loader file end //////
    ///////////////////////////////////////////////////// dll main file begin //
    extern void Prepare_1( void );
    extern void Prepare_2( void );
    extern "C" _declspec(dllexport) void CreateDllInterface( ) { Prepare_1(); }
    ///////////////////////////////////////////////////// dll main file end ////
    ///////////////////////////////////////////////////// dll file 1 begin /////
    #include <string>
    #include <sys/stat.h>
    #define STORAGE_SIZE  254
    typedef unsigned long  int uint32;
    struct StructFileInfo
    {   std::string Name; 
        struct stat FileStatus; 
    static struct StructStatus
    {   bool bDownloaded;      bool bDownloadedLast;
        bool bCalled;          bool bCalledLast;
        uint32 u32EntryPoint;
        StructFileInfo FileInfo;
    } MuxStatusMain[ STORAGE_SIZE ], MuxStatusSupl[ STORAGE_SIZE ];
    void Prepare_1() 
    {   struct stat Stat_Init;
        memset( &Stat_Init, 0, sizeof(struct stat) );
        StructStatus Status_Init =
                        { false, false, false, false, 0, { "", Stat_Init } };
        std::fill_n( MuxStatusMain, STORAGE_SIZE, Status_Init ); //  this seems
                               // to overwrite MuxStatusSupl[ 3 ].FileInfo.Name
        for( uint32 u32Idx = 0; u32Idx < STORAGE_SIZE; u32Idx++ )
            MuxStatusSupl[ u32Idx ].FileInfo.Name = ""; // crash when u32Idx==3 
    ///////////////////////////////////////////////////// dll file 1 end ///////
    ///////////////////////////////////////////////////// dll file 2 begin /////
    #include <string>
    #include <sys/stat.h>
    #define STORAGE_SIZE  254
    typedef unsigned long  int uint32;
    struct StructFileInfo
    {   std::string Name; 
        struct stat FileStatus; 
    static struct StructStatus
    {   bool bDownloaded;      bool bDownloadedLast;
        bool bCalled;          bool bCalledLast;
        uint32 u32EntryPoint;  uint32 u32ExitPoint;
        StructFileInfo FileInfo;
    } MuxStatusMain[ STORAGE_SIZE ], MuxStatusSupl[ STORAGE_SIZE ];
    void Prepare_2()
    {   struct stat Stat_Init;
        memset( &Stat_Init, 0, sizeof(struct stat) );
        StructStatus Status_Init =
            { false, false, false, false, 0, 0xFFFFFFFF, { "", Stat_Init } };
        std::fill_n( MuxStatusMain, STORAGE_SIZE, Status_Init );
        std::fill_n( MuxStatusSupl, STORAGE_SIZE, Status_Init );
    ///////////////////////////////////////////////////// dll file 2 end ///////
    I get the crash with the message: Unhalted exception at 0x10001f90 in Test.exe: 0xC0000005: Access violation writing location 0x1006d320
    Another strange phenomena is that in watch window, expressions
        sizeof(MuxStatusMain)/sizof(MuxStatusMain[0])
        sizeof(MuxStatusMain)/sizof(MuxStatusMain[0])
    show both a value of 232 instead of 254 (but if I add in file 1 in the struct the missing member they show the correct values). On the other hand, if I printf those values, they are correct, 254.

    "Another difference is that the structure StructStatus in file 2 has an extra member compare to file 1."
    That's not going to work. It is possible to define the same struct in different translation units but the definitions need to be identical. Use different names for StructFileInfo and StructStatus.

  • LabVIEW Mac prompting me for dll's in conditional disable structure

    I'm using LabVIEW 2014 Mac and I have several conditional disable structures which call user32.dll but only in the Default case whereas they do nothing in the TARGET_TYPE=Mac case.  When loading my source code in LV Mac I get prompted to find "user32" and I have to Ignore All.  Afterwords the code is open with no errors.
    It seems to be a bug that this prompt is occuring?  Is there a way to supress it?
    Solved!
    Go to Solution.

    Hello Thomas,
    It sounds like the user32.dll is being loaded along with your LabVIEW code on launch instead of being loaded when called. What you can do is encapsulate the function that is making the user32.dll call in a subVI (if you haven't already done this), right-click the subVI and go to Call Setup. From this window, choose Load and Retain on First Call. This should make sure the user32.dll is only loaded when you reach the Default case in your Conditional Disable structure, and not search for it every time the code is loaded into LabVIEW.
    Hope this helps,
    Siana A.
    Application Engineering
    National Instruments

  • Calling a dll function that as a structure

    I'm trying to call the following function with the Call library function node:
    XLstatus xlLinSetChannelParams (
    XLportHandle portHandle,
    XLaccess accessMask,
    XLlinStatPar statPar)
    The statPar parameter is a stucture which is define as follow
    typedef struct {
    unsigned int LINMode
    int baud rate;
    unsigned int LINVersion;
    unsigned int reserved;
    } XLlinStatPar;
    I used a cluster to pass the data to the function but labview is crashing everytime. The  C output of the CLFN is :
    typedef struct {
     unsigned long LinMode;
     long baudrate;
     unsigned long Linversion;
     unsigned long reserved;
     } TD1;
    long _xlLinSetChannelParams28(long portHandle, uInt64 accessMask,
     TD1 *statPar);
    Why is labview sending a pointer to the struct instead of the structure itself? Is this the cause of my problem? Any Solution?

    The CLFN ouput shown in my previous message was done with the "handle to value" parameter. As you stated, it sends a reference to the struct memory location.The problem is that i need to pass the structure value as an input and not a pointer to it (well, that's what i think the problem is). I read the various documents about CLFN and I tried the examples but they are all have function of that kind:
    returnval ExampleFunc (structPointer *struct)
    While the function in my dll is made like that
    returnval ExampleFunc (structValue struct) (see the real function in my first message)
    I included the dll and Vi and documentation for the xlLinSetChannelParams function.  The CLFN node that calls it is the fourth one (the one with a cluster as input). The first 3 CLFN are used to call the initialization function:init driver,get channel and open port.
    Attachments:
    LIN test.zip ‏130 KB

  • Passing structures bet top level functions and DLL's

    I need to access information stored in a structure(manipulated within a DLL)
    from
    the calling function. I defined the structure in the DLL include file and
    #include "dll_include.h"
    in the source code. The dll function manulipates the contents of the structure
    as desired; however,
    I can not get access to that structure from the calling function. If anyone
    has any ideas, I would
    certainly appreciate the help
    Phil

    Hi Phil
    I think the key for this problem is simply to export that structure in the
    dll that you want to access from the other app.
    for example if you write in your dll_include.h file something like this:
    typedef struct
    ULONG ID;
    CHAR Name[32];
    } MY_APP_PERSON,*P_MY_APP_PERSON;
    typedef void (*SET_PERSON)(void);
    then in your dll source write:
    #include "dll_include.h"
    DLLEXPORT MY_APP_PERSON DllPerson;
    DLLEXPORT void SetPerson()
    DllPerson.ID = 3;
    lstrcpy(DllPerson,"Daniel A.B");
    In your other application which uses this dll write:
    #include "dll_include.h"
    static P_MY_APP_PERSON AppPerson;
    static SET_PERSON SetPerson;
    void main()
    HINSTANCE dllHandle;
    dllHandle=LoadLibrary("Persons.dll");
    if(dllHandle)
    AppPerson=(P_MY_APP_PERSON)GetProcAddress(dllHandle,"DllPerson");
    SetPerson=(SET_PERSON)GetProcAddress(dllHandle,"SetPerson");
    // Watch here with the debbuger the AppPerson structure state it
    will probably containt dirty data
    SetPerson();
    // Now watch again the value of AppPerson and see it was changed
    by calling SetPerson
    Phil Spratt wrote in message
    news:[email protected]..
    >
    > I need to access information stored in a structure(manipulated within a
    DLL)
    > from
    > the calling function. I defined the structure in the DLL include file and
    > #include "dll_include.h"
    > in the source code. The dll function manulipates the contents of the
    structure
    > as desired; however,
    > I can not get access to that structure from the calling function. If
    anyone
    > has any ideas, I would
    > certainly appreciate t
    he help
    > Phil

  • Pointer to structure in parameter list of DLL

    I want to use the CALL_LIBRARY_FUNCTION to access a function in a DLL
    which returns a pointer to a structure in its parameter list. How can I
    access this structure under LabVIEW 6.02? What is the parameter type I
    have to select in the CALL_LIBRARY_FUNCTION configuration window - there
    is no STRUCTURE or CLUSTER entry?
    Any help is very much appreciated. Thanks, Frank

    You may select "Adapt to Type" as a type of the parameter of the function, and then connect appropriate cluster to the output of the "Call Library" node.
    Oleg Chutko.

  • Returning structure from dll to pl/sql

    hi
    we have a problem regarding how to return structure of arrays from c dll. It may be possible with oci programing . Is it possible with simple c program using oracle object types or by pl/sql records .
    We are having oracle 8i running on windows 2000 server
    Thanks,
    Zuber
    null

    Oracle9 i JDBC Developers Guide and Reference(page 21-16):
    It is not feasible for Oracle JDBC drivers to support calling arguments or return
    values of the PL/SQL RECORD, BOOLEAN, or table with non-scalar element types.
    However, Oracle JDBC drivers support PL/SQL index-by table of scalar element
    types. For a complete description of this, see "Accessing PL/SQL Index-by Tables"
    on page 16-21.
    As a workaround to PL/SQL RECORD, BOOLEAN, or non-scalar table types, create
    wrapper procedures that handle the data as types supported by JDBC. For example,
    to wrap a stored procedure that uses PL/SQL booleans, create a stored procedure
    that takes a character or number from JDBC and passes it to the original procedure
    as BOOLEAN or, for an output parameter, accepts a BOOLEAN argument from the
    original procedure and passes it as a CHAR or NUMBER to JDBC. Similarly, to wrap a
    stored procedure that uses PL/SQL records, create a stored procedure that handles
    a record in its individual components (such as CHAR and NUMBER) or in a structured
    object type. To wrap a stored procedure that uses PL/SQL tables, break the data
    into components or perhaps use Oracle collection types.

  • Call library node - using a structure with dll

    Hi folks.
    I was hoping to recieve some help or advice on solving this problem I am having in labview:
    Some background info - I am trying to use the 'call library node' to allow me to use a .dll to allow for control of a remote power supply over RS-232.
    I have been doing fine up till now, however I am now trying to use the following:
    int TC4GetFnBlockSettings(struct T_FnBlock *p_fnblock, unsigned int type)
    int TC4SetFnBlockSettings(struct T_FnBlock *p_fnblock, unsigned int type)
    where
    struct T_FnBlock
    unsigned int BaseFunction;
    double Amplitude;
    double Offset;
    double Symmetry;
    double Frequency;
    int BipolarAmplitude;
    int RectifyAmplitude;
    double ExpTimeConstant;
    unsigned int NumPeriods;
    unsigned int UserDefAmplitude;
    unsigned int UserDefTimePrescaler;
    double UserDefPeriodLength;
    unsigned int UserDefNumPoints;
    unsigned int InactiveLevelType;
    double InactiveLevel;
    unsigned int AAPInputType;
    unsigned int AAPInputFilterKoeff;
    unsigned int AAPFlags;
    double AAPInputScaling;};  
    Obviously there is no such thing as a structure in Labview; I had hoped to use a cluster in it's place however the CLN does not allow for input or output of a cluster.
    Any help would be appreciated!
    Thanks
    Solved!
    Go to Solution.

    Akiel wrote:
    unfortunalty the call library node doesnt map labview types to c types very well. It can be done but took me a lot of time and effort (and overworking google) to manage it. In the end i abandoned the cln and write a c# code that interfaces between my dll and labview. 
    sorry cant be of much more help.
    I think NI need to improve this functionality as the CLN could be useful but hard to get working on anything beyond a simple dll interface
    That is not true!
    The Call Library Node does a tremendous job in providing configuration options to map LabVIEW data to most C datatypes. In most cases the two match directly except when arrays and strings are concerned. Those two are very different in LabVIEW than in C but the Call Library Node allows to configure parameters to map LabVIEW strings and arrays to according C string and array pointers.
    A structure in C is directly equivalent to a LabVIEW cluster unless it contains strings or arrays. Also there is the potential of structure element alignment which you have to take care of explicitedly but that is hardly the fault of LabVIEW but rather a direct consequence of the rather low level character of the C language.
    Since the OPs C struct only contains scalar datatypes you can directly create a LabVIEW cluster with the same elements and the same order of elements and pass that cluster to the Call Library Node parameter configured as Adapt to Type.
    The reason that you might have to get google overworked for such things is not because LabVIEWs support for interfacing to C code is bad, but because interfacing to C code is such a complex topic in itself. Without a lot of low level knowledge about what a C compiler really does when creating functions you are bound to do a lot of trial and error and googling. You get the same issue when trying to interface unmanaged code in C# (.Net).
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to access data structures in C dll from java thru JNI?

    We have been given API's( collection of C Functions) from some vendor.
    SDK from vendor consist of:
    Libpga.DLL, Libpga.h,Libpga.lib, Along with that sample program Receiver.h (i don't know its written in C or C++), I guess .C stnads for C files?
    Considering that I don't know C or C++ (Except that I can understand what that program is doing) & i have experience in VB6 and Java, In order to build interface based on this API, I have two option left, Use these dll either from VB or Java.
    As far as I know, calling this DLL in VB requires all the data structures & methods to be declared in VB, I guess which is not the case with Java (? I'm not sure)
    I experiemnted calling these function from Java through JNI, and I successfully did by writting wrapper dll. My question is whether I have to declare all the constants & data structures defined in libpga.h file in java, in order to use them in my java program??
    Any suggesstion would be greatly appreciated,
    Vini

    1. There are generators around that claim to generate suitable wrappers, given some dll input. I suggest you search google. Try JACE, jni, wrapper, generator, .... Also, serach back through this forum, where there have been suggestions made.
    2. In general, you will need to supply wrappers, and if you want to use data from the "C side" in java, then you will need java objects that hold the data.

  • Structure using dll

    Hello all,
    does anyone know how to operate on the structure in LABVIEW?
    I need to develope the interface in LabVIEW to call the external code WinMCL Plus (developed by GSI Lumonics),
    but I do not know how to operate on the global parameter sets. I try to use DLL to call the function
    "MC_set _ParamSet" (see below), but I cannot point to the parameter sets in the "Call Library Function".
    MC_set_ParamSet
    //         Routine Description:
    //                     Set the global DLL Parameter set at Params[Index] to
    //                     the values stored in *p
    //         Parameters:
    //                        Index - Parameter set index.
    //                        *p             - Pointer to the parameters to set.
    //          Return Value:
    //                        WMCL_OPERATION_OK or WMCL_OPERATION_FAILED.
    //           Comments:
    WINMCL32_SPEC unsigned long_stdcall MC_set_ParamSet(int Index, PSET *p);
    Any help would be greatly appreciated. Thanks in advance for your help.
    Gennady

    Gennady,
    Check out this link to get some more info...
    http://zone.ni.com/reference/en-XX/help/371361B-01/lvexcodeconcepts/configuring_the_clf_node/
    Near the bottom of this link it has the section ;
    Calling Functions That Expect Other Data Types
    It looks like your best solution would be to create a wrapper that splits up this structure into more basic elements for labview.  Hope this helps.

  • The suitable LabVIEW data type correspinding to the array of structure in Visual Basic ActiveX DLL

    Hi!
    I need to call a VB ActiveX DLL from LabVIEW. When I run my LabVIEW code, I always meet an error as:
    Error 1 occurred at Incorrect Function in T06.vi
    Possible reasons:
    LabVIEW: An input parameter is invalid.
    I have read the VB DLL code that defines the data type. It fills data to a structure, then puts this structure to the array, and sends the array of structures to the method.
    VB Code:
    For I = 1 To 31
    Set MyInputData(I) = New EM_nkd_DataPoint
    Next I
    With MyInputData(1)
    .Amplitude = 8.44
    .DataPointType = R_HW
    .DataSource = MEASURED
    .Wav
    elength = 409.56
    End With
    With MyInputData(2)
    .Amplitude = 91.60113
    .DataPointType = T_SUB
    .DataSource = MEASURED
    .Wavelength = 409.56
    End With
    ~~~
    With MyInputData(31)
    .Amplitude = 91.96825
    .DataPointType = T_SUB
    .DataSource = MEASURED
    .Wavelength = 657.43
    End With
    My problem is that I can’t find a suitable kind of data type in LabVIEW which is corresponding to this case
    Attached my LabVIEW code for reference.
    Many thsnks.
    TX
    Attachments:
    T07.vi ‏166 KB

    Hi,
    if you have a complete source code including EM_nkd_DataPoint class module, take a look inside in order to see data types for Amplitude, DataPointType, DataSource and Wavelength (probably for Amplitude and Wavelength is SINGLE). If this code is not available, maybe the author mentioned a type for T_SUB and MEASURED even if they are constants.

  • Newbie: Passing Structures between DLLs via Java

    A fairly high level question for you good people:
    I have two DLLs. The first DLL is called by Java via JNI, and needs to return something akin to a C Structure (say an int, a double and a string for simplicity).
    My Java code does not need to do anything with this data, except pass it to a second DLL for more processing (the second DLL for example needs to do something with just the double and the string).
    My question is, is this sort of thing practical to do using JNI (I have the DLLs already but can easily add the JNIEXPORT etc functions) ?
    (I have used JNI for a passing single values and arrays back and forth, but nothing with anything akin to structures).
    Many thanks in advance.
    Dave

    My Java code does not need to do anything with this
    data, except pass it to a second DLL for more
    processing (the second DLL for example needs to do
    something with just the double and the string).
    My question is, is this sort of thing practical to do
    using JNI (I have the DLLs already but can easily add
    the JNIEXPORT etc functions) ?
    Somewhere in memory a hunk is reserved for this. Your code does it or some external piece does.
    You have a pointer to that.
    It is very important that the memory does NOT go away until you tell it to.
    You cast the pointer to a long and return that to java. Your java piece keeps track of that.
    It passes the long off to the other dll. That dll casts it back to what is needed (a pointer) and uses it.
    If the second dll disposes of the pointer then you are done. If not then you must dispose of the pointer.
    If you want to keep it then you should add a 'destroy()' method in java that frees the pointer (native call) appropriately. This is also one of the few time where using finalize is probably appropriate as well.

Maybe you are looking for

  • Hardware requirement for PI 7.1 SDN subscription

    Hello, has any developer installed PI 7.1 on a notebook or PC for development purpose only (SDN subscription, no productive use, just for learning) and can give me a hint if 4 GB RAM will really be enough (DB,ABAP and Java running on the same machine

  • BPC 7.5 NW Installation- Dump on UJS_ACTIVATE_CONTENT Load Data Into AppSet

    Env: Win 2008 R2, SQL 2008. NW EHP2 702, BI_CONT 706, After installing Apshell running UJS_ACTIVATE_CONTENT, I am now hitting a road block at "Load data into appset" step. The st22 dump analysis is like this "MESSAGE_TYPE_X" " " "CL_RSDMD_UPDATE_MAST

  • Test & Dev on Same Machine

    Hi, I want to install test & dev on the same machine what i know is i have to assign different port numbers to them. But i want to access them with diffrenet url addresses how i can install with same host or different host plz clarify one more thing,

  • What changed in the Find/Change Object behavior?

    In Indesign CS4 all graphics in a document could be centered through the Find/Change feature (Object tab) by leaving the Find field blank and setting the Change field to "Fitting Reference Point: Center" (clicking the center button). This no longer w

  • [svn] 2780: Sync up AIR for marshall plan.

    Revision: 2780 Author: [email protected] Date: 2008-08-07 14:35:08 -0700 (Thu, 07 Aug 2008) Log Message: Sync up AIR for marshall plan. Fixes bugs: SDK-16377 SDK-16378 SDK-16380 SDK-16388 Review: DJL Ticket Links: http://bugs.adobe.com/jira/browse/SD