DLL in different direcotries

Hi all and thanks in advance.
I've realized a wrapper dll for a C library. The wrapper uses another dll (the C library), and this second uses more others dll. I was asking to myself if it is possible to load the dll that implements the wrapper and take the others dll in different directories? If yes what I've to do? Or is it only possible to copy them in a unique directory?
Best regards,
Marco Bn�

Hi,
You may load each dependent library with System.load("/absolute/path/name/to/libYourLib.so");or under M$ System.load("X:/absolute/path/name/to/YourLib.dll");--Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • XI  - dll versions different

    Post Author: AADAC
    CA Forum: Deployment
    Hello,
    We have Crystal Reports XI - Developer edition installed on our developer workstations.
    We have Crystal Reports XI - Enterprise edition installed on our production server.
    The problem is that the dll's
    CrystalDecisions.reportAppServer.Clientdoc
    CrystalDecisions.Enterprise.Infostore
    CrystalDecisions.ReportSource
    CrystalDecisions.Enterprise.framework
    CrystalDecisions.CrystalReports.Engine
    CrystalDecisions.Shared
    and CrystalDecisions.Web
    are all version 11.0.3300.0 on the developer workstations and version 11.5.3300.0 on the server.
    So when we go to deploy we are getting the following error message:
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: File or assembly name CrystalDecisions.ReportAppServer.ClientDoc, or one of its dependencies, was not found.Source Error:
    Line 31:                           <add assembly="CrystalDecisions.Shared, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>Line 32:                           <add assembly="CrystalDecisions.Web, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>Line 33:                           <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>Line 34:                  <add assembly="CrystalDecisions.Enterprise.Framework, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>Line 35:                  <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies>
    Source File: E:\ASIST_6.8.1\Reports\web.config    Line: 33 Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.ReportAppServer.ClientDoc' could not be loaded.
    Does anyone know why or how to fix the problem correctly?
    Thanks

    Post Author: mewdied
    CA Forum: Deployment
    From what you are saying, you actually have XI release 2 installed on the server not XI and this is why the file versions are different.  You should install XI release 2 developer edition onto your development machine.

  • Creating dll, lib, fp's to be used in other CVI programs

    Disclaimer: I am a self-taught CVI (and C) programmer in which I learned from examples, NI forums, and google  
    Main question: What is the proper way to create a dll, lib, and fp to be used in other CVI programs?  What I am doing is creating a "wrapper class" called PowerSupplies (and other wrapper classes) that takes arguments from the user and call the correct functions based on the power supply model type.
    Inside my Power Supplies project, I have included each power supply's function panel.  In the C file, I have added my functions and include file.  for example, here's one
    int _VI_FUNC Supply_InitSupply (int devs, char *resourceName, int IDQuery, int resetDevice, int *instrumentID) {
    switch (devs) {
    case AG663XXA:
    return ag663xxa_init(resourceName,IDQuery,resetDevice,instrumentID);
    case HPE364XA:
    return hpe364xa_init (resourceName, IDQuery, resetDevice, instrumentID); //Has Voltage and Current
    return -1;
    and then of course at the bottom, there resides the DllMain and DllEntryPoint functions.  What the heck are these, and am I suppose to rename these?  I ask because I created another wrapper classes with DMM's and I get the Multiply Defined Symbol Error with these two functions when using together in a separate program.
    Additionally, I have created a header file, which can be included in other CVI programs to know what functions there are.  I noticed I could "Generate Prototypes" after the fact and wasn't sure if this was the correct way or not.  My header file is below:
    #ifndef __PowerSupplies_H__
    #define __PowerSupplies_H__
    #ifdef __cplusplus
    extern "C" {
    #endif
    //==============================================================================
    // Include files
    #include "cvidef.h"
    #include "ivi.h"
    //==============================================================================
    // Constants
    #define POWER_SUPPLY_ENUM_FACTOR 200
    typedef enum
    AG663XXA = 200,
    HPE364XA
    } power_supply_type;
    static IviStringValueTable power_supply_table =
    {AG663XXA, "AG-663##X"},
    {HPE364XA, "HP-E364#A"}
    //==============================================================================
    // Types
    /************** Static Function Declarations **************/
    /************** Global Variable Declarations **************/
    /************** Global Function Declarations **************/
    int _VI_FUNC Supply_InitSupply(int devs,char *resourceName, int IDQuery, int resetDevice,int *instrumentID);
    /*commented out long list of functions for this forum's sake*/
    int _VI_FUNC Supply_Close(int devs, int instrumentID);
    int __stdcall DllMain(HINSTANCE hinstDLL,DWORD fdwReason, LPVOID lpvReserved);
    int __stdcall DllEntryPoint(HINSTANCE hinstDLL,DWORD fdwReason, LPVOID lpvReserved);
    #ifdef __cplusplus
    #endif
    #endif /* ndef __PowerSupplies_H__ */
    I then have built it as a static library and dynamic link library.  I then generated a Function Panel from the header file with Prefix Supply_ and Qualifier as _VI_FUNC.
    All worked nice and dandy, copied files to appropriate places in the IVI directory.
    In my other CVI program in which uses these "wrapper classes", I have included the function panel's that I created.
    Well with the error i mentioned above about Multiple Defined Symbol, I have come here to figure out what went wrong.
    What are the DllMain and entry point functions?
    Is my c and h files created correctly with proper prefixs?  I tried extern once, and got errors I believe.
    Does the function panel use the .lib files? Am I going about this correctly or is there an easier/more efficient way?
    Any and all advice is greatly appreciated!!!
    Thanks!

    There's info in the CVI help on how to make DLL,s in CVI.
    There's quite a bit more to it than you might imagine at first.
    I've pasted a DllMain that I wrote.
    Some key issues:
    You can put a type library into your DLL, that way if you add the DLL as a reference in Visual Studio, VS will know the prototype without your having to bring in a header file or import library of any kind.
    CVI created DLL's are not "active" DLL's and should not be registered with regsvr32, this will just make a mess.
    You can tell CVI what you're exporting in a couple of different ways, I always use "symbols marked for exports"  and use the macros DLLEXPORT DLLSTDCALL, but NI says using a header file is preferable, I forget why.
    The DLL search path is a wonderful thing - it's easy to wind up using a different copy of the DLL than you intended due to the way windows searches for the DLL.  Different versions of windows have slightly different rules.  Some allow redirection to help you manage the search path.
    CVI will not automatically switch between debug and release versions of the import library - you have to call out the correct version in your project and link it to any executable using it. 
    You can do "dynamic" loading / linking of a CVI DLL without binding to an import library using GetProcAddress function, but it's easier to use the import library.
    A DllMain isn't necessary but is good practice.
    Good luck.
    /*== PRAGMAS =====================================================================================================*/
    #if defined (_CVI_) && (_CVI_ >= 850)
      #if defined _CVI_DEBUG_
        #pragma C99_extensions_on  
      #endif
    #endif
    /*== INCLUDE FILES ===============================================================================================*/
    #include <windows.h>
    #include <userint.h>
    #include <ansi_c.h>                                                                                     
    #include <cvirte.h>
    #include <stdio.h>
    #include <utility.h>
    #include <analysis.h>
    #include <toolbox.h>
    #include <formatio.h>      
    /*== MACROS ======================================================================================================*/
    #define MAX_STRING_SIZE 256   
    #define MAX_MESSAGE_SIZE 256
    #undef  MAX_LOG_MESSAGE_SIZE
    #define MAX_LOG_MESSAGE_SIZE 256                                                
    #undef  WriteFile   // To deconflict formatio (CVI) version of this function
    #undef  ReadFile    // To deconflict formatio (CVI) version of this function             
    /*== TYPEDEFS ====================================================================================================*/
    // Data type providing reference structure for thread local storage (TLS).
    typedef struct ThreadData {
      CHAR ErrorString[MAX_STRING_SIZE];
    } ThreadData, * LPTHREADDATA;
    /*== MODULE SCOPE VARIABLES ======================================================================================*/   
    static FILE * logFileStream;                      
    static HANDLE hModule = INVALID_HANDLE_VALUE;
    /*== GLOBAL (HEAP) VARIABLES =====================================================================================*/
    // TLS index
    DWORD g_dwTlsIndex;
    /*== PROTOTYPES ==================================================================================================*/    
    /*== CODE ========================================================================================================*/  
    * Function: DllMain
    * Description:
    *    DLL Main entry point.  Provides for DLL initialization.  
    * Limitations:
    * Parameters:  System defined.
    * Return Value:
    BOOL WINAPI DllMain (HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved) {
      LPTHREADDATA lpThreadData;      
      switch (fdwReason) {
        case DLL_PROCESS_ATTACH:
          // Allocate a TLS index.
          if ((g_dwTlsIndex = TlsAlloc ()) == 0xFFFFFFFF) return FALSE;
          hModule = hInstDLL; 
          // No break - fall through and initialize for main thread
        case DLL_THREAD_ATTACH:
          lpThreadData = (LPTHREADDATA) calloc (1, sizeof (ThreadData));
          if (lpThreadData != NULL) TlsSetValue (g_dwTlsIndex, lpThreadData);
          lpThreadData = TlsGetValue (g_dwTlsIndex);
          lpThreadData->ErrorString[0] = '\0';     
          break;
        case DLL_THREAD_DETACH:
          // Release the allocated memory for this thread.
          lpThreadData = TlsGetValue (g_dwTlsIndex);
          if (lpThreadData != NULL) free (lpThreadData);
          break;
        case DLL_PROCESS_DETACH:
          // Free the allocated memory for this thread (main thread).
          lpThreadData = TlsGetValue (g_dwTlsIndex);
          if (lpThreadData != NULL) free (lpThreadData);
          // Release the TLS index.
          TlsFree (g_dwTlsIndex);
          break;
      return TRUE;
    } // end, DllMain
    INT DLLSTDCALL DllEntryPoint (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
      // Included for compatibility with Borland
      return DllMain (hinstDLL, fdwReason, lpvReserved);
    } // end, DllEntryPoint
    implement dll functions like this:
    int DLLEXPORT DLLSTDCALL myFunc (int iParam) {
      return 1;

  • Problem with loading dll in CrEme VM

    Hi,
    I want to create an application for Pocket PC and I must user a dll.
    I use NetBeans 6 on my desktop and CrEme as CDC implementation.
    I write a CDC application which works fine on my PC, but in the Emulator (Windows Mobile 6) throw this error
    java.lang.UnsatisfiedLinkError: no OSlib in java.library.path
    I tried to manually copy this dll in different places, but with no success. I found another topic in this forum
    http://forum.java.sun.com/thread.jspa?forumID=80&threadID=742870.
    But even in windows folder it doesn't work.

    Hi ReneNSIcom,
    Thank you for your reply.
    Do you know some tutorials on how a dll can be created for CrEme?
    I tried to run also the jni example which comes with the NSIcom SDK, but with no success.
    Right now, I have another problem. I tried to install CrEme on another PC. I have already installed VS2005 and the Emulator. But when I try to install the file CrE-ME412_ARM_CE42_PPCSP.exe which, I think, it is the right file for Windows Mobile 6 Emulator, it throw an error.
    The Error is: "application manager cannot install this application on your mobile device due to an error in the setup file. Reinstall and try again."
    I should mention that the same file worked fine on the other PC.
    The configurations of the both PCs are very simillar.
    Any advice will be very helpful for me.

  • Create 16 bit dll

    Hello!
    I'm creating an application in C for the NI USB-6009 Multifunction device. (The application will work as a .dll to be called from a VB3 program.) I use nidaqmxbase functions (I know nidaqmx is more up to date, but I had no problems using nidaqmxbase, hope it's not the problem).
    When creating, I've tested the dll with a simple VB6 test app, but when getting to VB3, it couldn't load the dll. Shortly, I realised it happens because of the 16<>32 bit difference.
    Then I tried to make a 16bit dll using different 16bit C compilers, like Borland C++ 3.1, Borland C++ 5.02, Turbo C++ 3.1, but all build processes failed. I'm afraid it's the nidaqmxbase.lib file that causes this.
    Can you help, how to create my 16bit dll using my existing code?
    Thanks a lot,
    motyo

    That's bad news. I hoped there would be a 16bit version of the lib file or something....
    So the solution to get the NI device work with VB3 is some kind of emulation (like call32.dll or other 16bit-32bit emulators) right? Anything else than this?

  • DLL basics Documents

    Hello every one,
    I know how to create a dll in labview and how to use it .
    But i need a good document which explains how to handle DLL with different data types.
    Thank you
    Solved!
    Go to Solution.

    http://zone.ni.com/reference/en-XX/help/371361J-01/lvexcodeconcepts/configuring_the_clf_node/
    Also look at the example called Call DLL.vi for a good intro to how to set up the CLFN parameters for different datatypes.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Error due to wrong size of jacob.dll and solution to fix it

    Hi
    First of all this thread is not a question for you but rather an information I would like to share with you.
    We are in the process of upgrading our Forms 6i to Forms 11g. The setup of Forms 11g (11.1.1.3.0) and Webutil is completed. I ran my first form with Webutil PLL attached to it. The form ran fine. I looked at the Java console for messages. Saw the following error message:
    System library http://<oracle_home>:8090/forms/webutil/jacob.dll has incorrect size in WebUtil config. Download will be cancelled
    After doing googling and a search on Metalink, found the cause of this error.
    It was due to the actual file size of jacob.dll file and the one specified in webutil.cfg file was not matching. The entry in my webutil.cfg file reads as follows:
    install.syslib.0.7.1=jacob.dll|106496|1.10|true
    To find out the exact file size of your jacob.dll file, right click on it and on the 'General' tab you can see the exact size in bytes.
    For example, *104 KB (106,496 bytes)*
    In my case the file size of Jacob.dll was different due to the wrong version of Jacob I had downloaded. I had downloaded jacob_18.zip file from the following link:
    http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
    Again, googling through Forms forums and Metalink, found that the version of Jacob.dll we need to have for Forms 11g should be 1.10. So downloaded this version from the following link:
    http://sourceforge.net/projects/jacob-project/files/jacob-project/1.10.1/jacob_1.10.1.zip/download
    Unzipped it and the checked the size of jacob.dll, it was 106496, matching with the entry in webutil.cfg file !!
    The next step was to delete the old jacob.dll file from <oracle_home>\forms\webutil folder and old jacob.jar from <oracle_home>\forms\java folder and copying the new files back the same folders.
    The last step was to re-sign the jacob.jar file using sign_webutil.bat (or sign_webutil.sh for unix).
    As suggested in Metalink, to be on safe size, also deleted the old jar files downloaded in your temporary folder and deleted the jacob.dll file downloaded in your \Program files\Java\JRE\bin folder.
    Thats it ! Re-launched my form and checked the Java console. That incorrect file size message had gone !!
    Hope this brief information will help you if you also face the same problem.
    Cheers
    Mayur

    I still was getting error, but the fix made was
    .     Cleared the JAR cache and ran test form. Checked JAR cache to confirm – no Jacob.dll
    .     Ran http://<server>:9001/forms/webutil/jacob.dll in a browser - the downloaded Jacob.dll was the older version
    .     Searched ....\oracle\wls_64 to ensure no spare Jacob.dll were sitting around – there were none
    .     Guessed that Jacob.dll was being cached somewhere. Since you are using port 9001 (i.e., no HTTP server or webcache), I assumed it was the WLS doing the caching
    .     Stopped and started WLS_FORMS
    .     Tested form and it worked

  • My photoshop cc doesn't work. "_crtCreateSymbolicLinkW not found in DLL "C.\Windows\SYSTEM32\MSVCP110.dll"". Please help

    my photoshop cc doesn't work. "_crtCreateSymbolicLinkW not found in DLL "C.\Windows\SYSTEM32\MSVCP110.dll"". Please help

    I checked my windows 7 pro machine for the module I see many copies if the DLL with different dates two different sizes all are version 11.0.51106.1 so I guess there are 32bit and 64bit versions. Some are in Adobe folders some in Wacom folders ad in two windows folders including system32.  I do not know if there is and entry point "_crtCreateSymbolicLinkW" in it.

  • Application crash with error ntdll.dll 00018fea

    Hi,
    I have a problem with my app.exe build.
    I attach a simple code; the Vi open and close a TDM file.
    If I run this Vi in Labview works fine.
    If I build the application.exe on a notebook and I run it I got "Application crash with error ntdll.dll 00018fea".
    I've tried to build the Vi on another Pc Desktop with Labview and here if I run the exe it works fine.
    On the two PC I have LV8.5; the build options are the same.
    On the notebook I've try also to reinstall LV8.5 but I got the same error.
    Can you help me?
    Thanks a lot
    Attachments:
    open tdm.vi ‏33 KB

    MicheleS wrote:
    This morning I've try to put the ntdll.dll of the other PC in the notebook but the problem remain.
    Never ever do that! You were very lucky that both ntdll.dll files were probably the same version so the exchange didn't do much but ntdll.dll is one of the core Windows DLLs were everything goes through that normal applications may access in Windows. A mixup in such a part because of incompatitible ntdll.dll with other system API DLLs might prevent your computer entirely from starting up even in safe mode.
    You should not attempt to ever switch system DLLs between different computers. In such behaviour lays insanity. If you expect a system DLL to be corrupt attempt to do a repair installation instead. Also Windows nowadays has techniques to detect if a system DLL got corrupt and will attempt to repair it, though I guess if ntdll.dll would go belly up it's likely your computer won't even start up.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-14-2008 08:05 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Oracle.DataAccess.DLL connection issues...

    Greetings, all. This Oracle Novice is having some right fun trying to talk to ODP.NET. I am actually very successful at using the 9.2.0.1.0 drivers, so talking to the db is no problem. But I cannot seem to get ODP.NET to work.
    I installed all of the available components from the latest ODP.NET download except the one for the Transaction Server. The code I am using is trying to talk to ODP.NET to facilitate a BLOB upload. Here is the line that .NET comes to s screeching halt on:
    <%@ Register TagPrefix="oda" Namespace="Oracle.DataAccess" Assembly="Oracle.DataAccess, Version=9.2.0.11, Culture=neutral, PublicKeyToken=89b483f429c47342" %>
    And here is the error I receive:
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.
    === Pre-bind state information ===
    LOG: DisplayName = Oracle.DataAccess, Version=9.2.0.11, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    LOG: Appbase = file:///c:/inetpub/wwwroot
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===
    LOG: Publisher policy file is found at C:\WINDOWS\assembly\GAC\policy.9.2.Oracle.DataAccess\9.2.0.700__89b483f429c47342\Policy.9.2.Oracle.DataAccess.config.
    LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
    LOG: Post-policy reference: Oracle.DataAccess, Version=9.2.0.11, Culture=neutral, PublicKeyToken=89b483f429c47342
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/Oracle.DataAccess/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/bin/Oracle.DataAccess.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Revision Number
    I am totally lost as to what all this means. Can someone offer some guidance to this wayward newbie? Thanks!
    OH! I should mention that I now have a copy of Oracle.DataAccess.DLL in each of the directories mentioned above.
    Steve

    Hello,
    What was the resolution to this? I am facing the same issue and am completely lost.
    One additional info in my case....Please bear with me..I am novice .NET developer. my aspx pages seem to work fine with Oracle client 9.2 but not on machine with Oracle 10g. I get the same error listed above.
    I noticed Oracle.DataAccess.dll had different dates. The one under ORACLE_HOME was newer compared to the ASP.NET/bin dir.
    Any help would be appreciated.
    Thanks

  • **SOLUTION** DLLML.exe Fails to load at startup (application error)

    Hello everyone!
    I purchased the SB X-Fi Fatalty Champion Edition soon after release, and think this is the best card I have ever used to date. Absolutely love it, unbelievable sound.
    Now a year or two ago I noticed a certain file failing to load when I started windows.
    This file, DLLML.exe. To my understanding this file is used to load EAX emulation support into older games/modules (essential loads a "middle-man" file between the game's sound files/.dll's, and the hardware SPU [Sound Processing Unit, not a real acronym, but that's what I call it since GPU and CPU are similar distincti've acronyms so if you see it used anywhere, it came from me ] to allow EAX support in non-EAX enabled games), and/or to add EAX effects in your audio files using the Wave Studio app.
    I've pinpointed this issue to either a Windows Update, or the Creative auto-update (which could mean it is an error caused by an installaion combination of multiple apps at once) because this issue did not arise until I did these two things (did Windows Update, then Creative Auto-Update, then restarted computer).
    Now I've primarily had this issue with Windows XP x64 but I have had this issue at times with Windows XP x86 as well.
    After you install the software suite, it adds an entry in your Windows Startup to load the module (Start/Run. msconfig. Startup tab. Look for STARTUP ITEM: DLLML). The entry looks like this:
    WinXPx86 looks like: "C:\Program Files\Creative\Shared Files\Module Loader\DLLML.exe" RCSystem * -Startup
    WinXPx64 looks like: "C:\Program Files (x86)\Creative\Shared Files\Module Loader\DLLML.exe" RCSystem * -Startup
    Under most circumstances this module loads fine, but because Creative, for reasons why I have not delved into, loads some of their DLL files differently than the Windows standard, which may also be a cause of this issue (extremely unlikely, I believe it is one of the 2 things i mentioned above).
    Either way, after I did those 2 things, the DLLML.exe startup entry failed to load every time.
    But I fixed it.
    Now what you have to do to resolve this issue, involves editing the startup entry in the Windows Registry.
    If you are scared to go into it, have no idea what I am talking about, or never edited the Registry before, don't worry. If you follow these steps EXACTLY, you have nothing to fear.
    I will be using default installation parameters for file pathing, so if your Operating System is installed in a different dri've letter other than C:\, then just change the letter to the one your OS is installed onto.
    Capitals used for emphesis on actions to take:
    -Hit the START button, then select RUN
    --------If RUN is not in your start menu, you need to enable it by right-clicking and open area of your TASKBAR, select PROPERTIES. --------Click the START MENU tab, then the CUSTOMIZE button. Click the ADVANCED tab. In the START MENU ITEMS box, scroll down to the entry that says SHOW RUN. Check the checkbox to fill it. Then OK/APPLY/OK, and you should be back to the desktop. Then go to START/RUN
    -type the word REGEDIT
    --------This opens the Windows Registry.
    --------DO NOT change ANYTHING in this other than the exact directions I specify or you may corrupt your registry or even worse, corrupt your system, which means F&R time (Format & Reinstall). Treat it like a stripper. You can look all you want but don't touch or there could be dire consequences.
    --------Now the fastest way to find this is to manually navigate to the specific "key" or "entry" you need to modify. Mouse-click the +'s to navitage further into the "hi've" following these maps:
    -FOR WINDOWS XP x86 USERS NAVIGATE TO: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run
    -FOR WINDOWS XP x64 USERS NAVITAGE TO: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432\Microsoft\Wind ows\CurrentVersion\Run
    --------Now you are looking for a specific entry NAME called RCSYSTEM. Depending on which version you are running. They are:
    -FOR WINDOWS XP x86 USERS: "C:\Program Files\Creative\Shared Files\Module Loader\DLLML.exe" RCSystem * -Startup
    -FOR WINDOWS XP x64 USERS: "C:\Program Files (x86)\Creative\Shared Files\Module Loader\DLLML.exe" RCSystem * -Startup
    -------Now we are going to edit the entry. What we need to do is get rid of that * (asterix) character in the name. I don't know why it is there, I'm thinking it may be a coding error. But in my WinXPx64, this was the culprit.
    -Double-click the RCSYSTEM key to edit it, and edit it so it looks EXACTLY LIKE THIS (If you're paranoid about doing something bad, COPY and PASTE this line pertaining to your installed OS. KEEP IN MIND THE INSTALLATION DRIVE LETTER, CHANGE FIRST LETTER IF NESCESSARY)
    -FOR WINDOWS XP x86 USERS: "C:\Program Files\Creative\Shared Files\Module Loader\DLLML.exe" RCSystem -Startup
    -FOR WINDOWS XP x64 USERS: "C:\Program Files (x86)\Creative\Shared Files\Module Loader\DLLML.exe" RCSystem -Startup
    -click OK button. Now it is changed.
    -------And we're DONE EDITING the Registry entry!
    -now go to FILE in the top-left menu, then select EXIT
    -RESTART your computer
    -------You should not receive the "DLLML.exe failed to load" (application error) again!!
    To check to see if it loaded into your system properly (as if not getting the error message anymore was proof enough it loaded properly), when you reboot back to the desktop, do the "three-fingered salute" (ctrl-alt-delete), then select the PROCESSES tab. Click on the IMAGE NAME heading to sort it alphabetically, and look for the name (WinXPx86) DLLML.exe or (WinXPx64) DLLML.exe *32.
    If you see it listed, it loaded!! CONGRATS, IT BE FIXED!!
    If this did not work for you, then your system is posessed, get a priest. I don't think a witchdoctor would give your comp good vibes O_o
    Hope this resolved it for you. Enjoy your EAX with Duke Nukem 3d again!
    EDIT: As a side note, I also noticed that since after this fix, my computer doesn't hang after sending the restart/shutdown killsignal, so I am wondering with people having similar hanging issues, if their issue could be resolved something similar to this.
    Just a thought for any admins/mods/users out there that know what they are doing that maybe wanna test that out.
    Sincerely,
    Jason Ostapyk
    3yr degree, MCP, CCNA, A+ certified, Specialised Electrician Class M Licensed

    G Kudos for a brilliant finding! After a Windows Hotfix on my XP SP3, when shutting down my PC I would wait for a program and then get an error that EAX was not responding before finally shutting down. On next reboot I lost sound on my PC. After running tests, the Direct Sound test failed pointing at EAX.
    This solution cured the problem. Again, kudos, job really well done!!!

  • Itunes was unable to load provider date from sync services

    When installing/using iTunes for one of our users received above message. After some investigation (and having followed up other suggestions) I finally tracked the problem down to the 'Application Data' folder being redirected through Windows Server Group Policy. If I used a local PC account and signed into an Outlook mailbox and then used iTunes sync - all was well. Reported to Apple, and received response that iTunes was operating as designed! I think its a bug! Hardcoded 'Application Data' folder rather than using %appdata% variable perhaps?
    Anyone else had this - or am I misinformed?
    Regards,

    I had nearly the same problem. I am also a user of UltraEdit from IDM Computer Solutions. Are you? My problem was fixed by adjusting to remove a conflict between the two. (both use same-named DLL but different versions.) If this sounds like your issue, post here and I'll reply with more detail.
    -Stephen

  • Crystal report viewer version error

    Now I am tring to call reports in crystal reports server by asp.net.  My server is crystal reports server xi, and for develop I also installed crystal report server client-side part on my develop machine, and crystal reports xi designer xi,r2.
    My program is to call the rpt files on server and show them by CrystalReportViewer control, however I get the error message below:
    Parser Error Message: The base class includes the field 'CRViewer', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).
    Source Error:
    Line 10:     <form id="form1" runat="server">
    Line 11:     <div>
    Line 12:       <CR:CrystalReportViewer ID="CRViewer" runat="server" AutoDataBind="true" />
    Line 13:     </div>
    Line 14:     </form>
    My code is:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CRSTest._Default" %>
    <%@ Register assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          <CR:CrystalReportViewer ID="CRViewer" runat="server" AutoDataBind="true" />
        </div>
        </form>
    </body>
    </html>
    code behind:
               ReportDocument rd = new ReportDocument();
               string sampleReportName = "MyTest";
                SessionMgr sessionMgr = new SessionMgr();
                EnterpriseSession enterpriseSession;
                EnterpriseService enterpriseService;
                InfoStore infoStore;
                InfoObjects infoObjects;
                InfoObject infoObject;
                ReportAppFactory reportAppFactory;
                // Logon to an Enterprise session.
                  enterpriseSession = sessionMgr.Logon("Administrator", "1Qaz2wsx", "MOSSDEV-COYD:6400", "secEnterprise");
                // Query for the sample report from the Enterprise CMS.
                enterpriseService = enterpriseSession.GetService("InfoStore");
                infoStore = new InfoStore(enterpriseService);
                infoObjects = infoStore.Query("Select SI_CUID From CI_INFOOBJECTS Where SI_NAME='" + sampleReportName + "' And SI_INSTANCE=0");
                infoObject = infoObjects[1];
                string reportCUID = infoObject.CUID;
                rd.EnterpriseSession = enterpriseSession;
                rd.FileName = "cecuid:///" + reportCUID;
                rd.SetDatabaseLogon("sqluser", "123456", "172.31.69.90", "AVIS_FMIS");
                CRViewer.ReportSource = rd;
    I check my assembly folder, I found three CrystalDecisions.Web dlls with different version, 11.5.3700.0, 11.5.3300.0, 10.5.3700.0, I try to refer to 11.5.3700.0 it says there is two CrystalDecisions.Web ddls exist in GAC.
    Could you tell why? and how to refer to the right dll?
    Thanks in advance

    11.5.3700.0, is CrystalDecisions.Web.dll for XIR2 and the 2.0 framework
    11.5.3300.0, is CrystalDecisions.Web.dll for XIR2 and the 1.1 Framework
    10.5.3700.0, is CrystalDecisions.Web.dll for Crystal reports basic that ships with Visual Studion2008
    all of these can co-exist in the GAC, so that part is fine.  The problem is that you most likely have multiple references to CD.Web.dll in the config file of your application... IE an additional reference was added to the <add assembly..../> tag in your web.config.
    delete all <add assembly ../> tags from web.config except the one adding 11.5.3700.0
    If you have more than one project in your solution, make sure there are no other versions of CD.Web.dll in those projects as well.

  • Facing problem in creating socket in a method from an already deployed application exe while same method is working from another exe from same environment from same location.

    Dll Created In: - MFC VC
    6.0
    Application Exe Developed In:
    - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit
    / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component which
    has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting Error
    code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming on
    client side so what we did, we created a driver in C# which invokes same method from same environment(on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest: -
    We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not working,
    actually  it is not executing Create () method,
    I will give snippet of the code for understanding the problem because we are not finding any kind solution for it.
    Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
    DWORD errorCode = GetLastError();
    CString errorMessage ;
    errorMessage.Format("%lu",errorCode);
    ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
    return  IS_ERR_WINDOWS;
    Note: -
    CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
    ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
    if(!Create())
    ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
     n_Err = GetLastError();
     ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
    return NET_INIT;
    ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
    if(!AsyncSelect(0))
    n_Err = GetLastError();
    return NET_INIT;
    if(!Connect(strIP,n_Port))
    n_Err = GetLastError();
    ErrorLog(n_Err,0,"ConnectTS","");
    return SERVER_NOT_CONNECTED;
    Code description: -
    From
    int GETImage_MT() method we call Initialize() method and pass client machine IP and Port and there we call
    ConnectTS() method, In this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System 
    0
    Note: - According to logs, problem is coming in Create method().
    Here 0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll
    from different exe, it is working fine and we are facing any kind of problem. While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

    Pointer variable was already initialized; I have mention in code; kindly assist us.
    Dll Created In: - MFC VC 6.0
    Application Exe Developed In: - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component
    which has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting
    Error code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming
    on client side so what we did, we created a driver in C# which invokes same method from same environment (on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest:
    - We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not
    working, actually it is not executing Create () method, I will give snippet of the code for understanding
    the problem because we are not finding any kind solution for it. Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage ;
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Note: - CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
                       ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
              n_Err = GetLastError();
              ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
                      return NET_INIT;
              ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
              if(!AsyncSelect(0))
                       n_Err = GetLastError();
                       return NET_INIT;
              if(!Connect(strIP,n_Port))
                       n_Err = GetLastError();
                       ErrorLog(n_Err,0,"ConnectTS","");
                       return SERVER_NOT_CONNECTED;
    Code description: - From int GETImage_MT() method
    we call Initialize() method and pass client machine IP and Port and there we call ConnectTS() method, In
    this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System  0
    Note: - According to logs, problem is coming in Create method(). Here
    0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll from different exe, it is working fine and we are facing any kind of problem.
    While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

  • Powerbuilder application crashes after upgrade to 12.5.2 (build 5006)

    I have already seen few similar posts on this forum for similar issue. However, I feel mine is different from those and could be some basic steps am missing. Thanks in advance for any comments.
    We are evaluating the effort and benefits of migrating our PB 10.2.1 (build 9731) application to  PB 12.5 Classic. After downloading the trial version from the SAP site, I could migrate the application easily with only a handful of warnings. However, while running the application either from build (EXE) or from IDE, it crashes (windows application failure) frequently. In addition to that, few of our application screens opens as blank screen (doesn’t display anything in the DW attached).
    My operating system is Windows 7 (32 bit) Service Pack 1. The application has many calls external DLLs (both windows standard and custom), as samples at the bottom. I believe that the correct (from PB 12.5) DLLs are copied to Powerbuilder home directory (C:\Software\Sybase\PowerBuilder 12.5 & C:\Software\Sybase\Shared\PowerBuilder) and the source code directory in my attempt to ensure that there are no issues with DLLs. However, initially I had installed powerbuilder 12.5 also under the same root as Power builder 10.0, but as I read few posts that DLLs from different version residing in same place can cause issues, uninstalled and installed PB 12.5 on different location.
    Our PB application also interact with the .Net modules of the application by communicating through a custom DLL. However, that seems still working and I am able to open the .Net screens from the migrated application.
    Below are the main scenarios in which the application crashes and every time I get a DLL error as given below.
    1. While running the application from IDE and selecting ‘Exit’ from the main window. This will close any instantiated objects and close the mutex by calling the windows API.
    function ulong CreateMutexA(ulong lpMutexAttributes, boolean bInitialOwner, ref string lpName) library "kernel32.dll" alias for "CreateMutexW" function ulong GetLastError() library "kernel32.dll" alias for "GetLastError;Ansi"
    function ulong CloseHandle(ulong hMutex) library  "kernel32.dll" alias for "CloseHandle;Ansi"
    This will result in the below crash.
    Faulting application name: PB125.EXE, version: 12.5.2.5006, time stamp: 0x50f93412
    Faulting module name: kernel32.dll, version: 6.1.7601.17932, time stamp: 0x503275b9
    Exception code: 0xc0000005 Fault offset: 0x0004c372
    Faulting process id: 0x2bdc
    Faulting application start time: 0x01cf3e72371227c9
    Faulting application path: C:\Software\Sybase\PowerBuilder 12.5\PB125.EXE
    Faulting module path: C:\Windows\system32\kernel32.dll
    Report Id: 8feef8fc-aa65-11e3-8049-f500274aecdc
    2. Opening of certain windows results in the below crash. If I try to debug the code and move mouse over the line of code being executed, then also I get the same crash. I don’t do the mouse move then I can proceed with the same line, however it will crash at a later line calling ‘classname’.
    Problem Event Name: APPCRASH
    Application Name: PB125.EXE
    Application Version: 12.5.2.5006
    Application Timestamp: 50f93412
    Fault Module Name: PBVM125.dll
    Fault Module Version: 12.5.2.5006
    Fault Module Timestamp: 50f93437
    Exception Code: c0000005
    Exception Offset: 00175357
    OS Version: 6.1.7601.2.1.0.256.48
    Locale ID: 3081
    Additional Information 1: 38ca
    Additional Information 2: 38ca6ad0537dbd0555785bd862b8e94f
    Additional Information 3: 0cd5
    Additional Information 4: 0cd54a5b6672f15bf2ca366539d89c12
    3. Few of the application screen opens but doesn’t display the datawindow attached to it.

    ... many calls external DLLs (both windows standard and custom),
    You have a very complex application and it is unlikely that you will receive much help in this type of setting.  As Chris has already pointed out, previous efforts appear to have been done in a sloppy manner; something indicated by the ANSI qualifiers on API functions that are not needed or relevant.  In addition, the PB alias of CreateMutexA for the API function CreateMutexW is also suggestive.
    I believe that the correct (from PB 12.5) DLLs are copied to Powerbuilder home directory (C:\Software\Sybase\PowerBuilder 12.5 & C:\Software\Sybase\Shared\PowerBuilder)
    You should be very very careful about doing things like this.  One should not simply scatter DLLs across directories without very good reasons as it often leads to strange problems.  On a machine with the IDE installed, you should allow PB to install everything where it wants them.  Copying or moving files is something done as a last resort - it is certainly something that you need to document in case you need to undo it or redo it at a later time.
    Lastly, you might reconsider attempting this with the trial version.  I don't how "current" the trial version is but I suspect it might be a bit buggier than the most current maintenance build.  I'm guessing that you will have to do a bit more than recompiling to get the functionality related to "opening .Net screens" working.  It might help to try creating a new application and put in some basic functionality to interact with all of these external processes, screens, dlls, etc since I suspect this is where the bulk of your problems exist.

Maybe you are looking for