CoCreateInstance returns 0x8007007e (Module could not be found) for the first call only at system startup on Windows 2008 Enterprise SP2

Hi Guys,
I'm experiencing a problem with CoCreateInstance, where it returns error 0x8007007e.
The code is something like this:
HRESULT hRes = S_OK;
CComPtr<IMyInterface> spObj;
if(FAILED(CoInitialize(NULL))) { /* quit */ }while(FAILED(hRes = spObj.CoCreateInstance(CLDIS_MyClass, NULL, CLSCTX_LOCAL_SERVER)))
// LogFailure(hRes);
Sleep(10);
The problems occurs only on a single machine having Windows 2008 Enterprise SP2 installed (it works fine on other machines / OS versions). It happens only during the system startup (this is a Windows Service) and only for the first call of the CoCreateInstance.
The second call always succeeds.
The problem does not occurr when starting the service manually from Services.
I did some investigation using Process Monitor and found that the HKCR\CLSID\[CLSID of MyClass]\LocalServer32!LocalServer32 registry value is accessed before the failure. The registry value exists - it is added by the Windows Installer during
installation.
If I remove the registry value then the CoCreateInstance always succeeds.
I've been trying to lookup for some documentation on HKCR\CLSID\...\LocalServer32!LocalServer32 but haven't found anything useful other than it's a "Windows Installer Entrypoint". I assume that the Windows Installer does some integrity checks when
calling CoCreateInstance for such class and this fails for some reason but currently I fail to find the reason.
Can anyone help finding out what's the root cause of the 0x8007007e error here, please? Any help or tip is much appreciated.
Many thanks!
Marcin.

Hi Marcin,
This forum is mainly for talk about the product use related issue and not the best place to talk about the develop issue, for the develop issue we can post in MSDN forum for
the further help and your issue may need capture a dump then for the further analysis it is not an efficient way to work in this community since we may need more resources which is not appropriate to handle in the community. I‘d like to suggest that you submit
a service request to MS Professional tech support service so that a dedicated Support Professional can further assist with this request.
MSDN forum
https://social.msdn.microsoft.com/Forums/en-US/home
Please visit the below link to see the various paid support options that are available to better meet your needs.
http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
Thanks for your understanding and support.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Standard cost estimate could not be found for the material

    Dear All,
    We have 4 manufacturing plants and 30 sale depots. We are maintaining price control (S) for FG and SFG in Manufacturing plants,price control (V) at depots for the same material code. we are getting an error message " standard cost estimate could not be found for the material" while doing billing at depot.
    Please give me suggestion.
    Your suggestion should be appreciate.
    Thanks in advance............
    AND
    My client want to see profitability at manufacturing plant level and need break up for the COGM. So how can i get the values of depot sales.
    please let me know how to do........

    Hai
    Price control should be S for Depot also. You need to run standard cost estimate in DEPOT after entering additive cost under CK74N for frieght, excise duty etc. To transfer the standard cost from the source plant you  need to make configuration  in OMD9 defining the receiver and sender combination so that system can pick up the cost from source plant. This special produrement type needs to be asigned in the material masters of DEPOT under MRP 2 view.
    Pushkala

  • Error :the specified module could not be found --oci.dll  : Oracle9i

    hi ,
    i m trying to connect thru my java code to the oracle on my system ,while creating the DSN it gives the error
    "the specified module could not be found" for the file oci.dll.
    earlier it was not able to look for the sqresus.dll which i copied to the winnt/system directory , and after this oci error is coming , anyone knowing it please guide
    with regards,

    Make sure it is the same version of 9i (i.e. 9.0.x or 9.2.x) for both OO4O and ODBC. Also make sure that the ORACE_BASE\ORACLE_HOME\BIN directory is in your search path AND last, check your windows directories and subdirectories for duplicate copies of OCI.DLL (or anywhere else on the PC for that matter). Sometimes MicroSoft will include one and it is usually an OLD one.

  • The specified module could not be found

    This error box pops up when I try to open an image     (the specified module could not be found) also the icon for photoshop
    would not respond on the taskbar.I can open my images in other programmes,would reinstalling photoshop be a good idea.
    Thanks.

    Using PS cc, the problem relates to all images as they are set to open in PS, and the message appears immediately,.i have noticed that my start up screen has changed in appearance I am using a Asrock board - could be a coincidence but the problem has only started this week 08.02.15
    I am using windows 7 home premium
    Thanks.

  • SAPMMC -Error 126 = "The specified module could not be found."

    Hi,
    Finally i could install SAP Netweaver 2004s ABAP Trial version. But when i get started SAP Systems at SAPMMC, process List , the dispatcher does not work properly:
    Thu Mar 22 08:19:14 2007
    ERROR => DlLoadLib: LoadLibrary(dbsdbslib.dll) Error 126 [dlnt.c       237]
            Error 126 = "The specified module could not be found."
    sysno      00
    sid        NSP
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    95
    intno      20050900
    make:      multithreaded, ASCII, optimized
    pid        1468
    Does anybody know this problem?
    Thx!!

    Hello,
    could it be that the disp+work.exe starts and then ends after a few seconds? I've had the same problem some days ago. Finally after 5 reinstallations and one new Windows installation, all works fine.
    So maybe you could answer some questions
    <b>Have you installed the MS Loopbackadapter or are you connected to a network?</b>
    You need the MS Loopback if you aren't connected to a network.
    <b>How is the size of your virtual memory?</b>
    Should be great enough: 4096MB works fine.
    <b>What's the name of your computer?</b>
    Shouldn't be more than 13 characters.
    Maybe this will help.
    Michael

  • I cant get my pictures to import from my iphone 4s to my PC.  Error message says:  "The specified module could not be found"

    I cannot get my photos to import from my iphone 4S.  I keep getting an error message that says:  The specifide module could not be found.  The drivers are all saying they are working properly.  Can anyone help please

    Hi marshmist2,
    Sorry to hear you are having issues getting the pictures from your iPhone 4S onto your Windows computer.
    The article below will show you how.  Your post doesn't indicate what version of Windows you are using, but all are covered:
    iOS: Importing personal photos and videos from iOS devices to your computer
    Give this a try and see if you get different results ....
    I hope this information helps!
    - Judy 

  • "Unable to load DLL '/system/usr/lib/libidlprinter.so': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}

    I am using intermec printer (directly loading to the printer no system used for printing) for this program and if i run this,i'm getting this below error
    "Unable to load DLL '/system/usr/lib/libidlprinter.so': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
    any help on this .........
    Thanks in advance.
    using System.Globalization;
    using Intermec.Printer;
    using System;
    using System.IO;
    using System.Threading;
    class TestCommunicationUSBHost
        static UI.Canvas _canvas;
        static UI.Keypad _keypad;
        static UI.Canvas.Text _exitInstruction;
        static UI.Canvas.Text _appliCationTitle;
        // static UI.Canvas.Text _companyname;
        static string _operatorCodeValue;
        static UI.Canvas.Text _operatorCodeDisplayText;
        private const string operatorCodeDisplayHeader = "SCAN Code: ";
        static PrintControl printControl = new PrintControl();
        static Drawing drawing = new Drawing();
        private static bool _isExitKeyPressed = false;
      //  private static Communication.USBHost _usbHost;
        static int Main(string[] args)
            // Init new UI canvas
            _canvas = new UI.Canvas();
            // Set up some colors to use
            Color white = new Color(255, 255, 255, 255);
            Color blue = new Color(50, 100, 150);
            // Add UI black background
            UI.Canvas.Rectangle bg = new UI.Canvas.Rectangle(0, 0, _canvas.Width, _canvas.Height, blue);
            _canvas += bg;
            // Add Line
            UI.Canvas.Line ln = new UI.Canvas.Line(10, 35, 300, 35, white);
            _canvas += ln;
            // _companyname = new UI.Canvas.Text(30, 45, "KEYBORD DEMO", "Univers Bold", 18, white);
            // _canvas += _companyname;
            // Add UI keycode text
            _exitInstruction = new UI.Canvas.Text(20, 200, "Press [F4] to EXIT.", "Univers Bold", 18, white);
            _canvas += _exitInstruction;
            _appliCationTitle = new UI.Canvas.Text(05, 05, " A1 Technologies", "Univers Bold", 23, white);
            _canvas += _appliCationTitle;
            _operatorCodeDisplayText = new UI.Canvas.Text(20, 100, operatorCodeDisplayHeader, "Univers Bold", 20, white);
            _canvas += _operatorCodeDisplayText;
            // Set up keypad event handler
            _keypad = new UI.Keypad();
            _keypad.KeyDown += new UI.Keypad.KeyEventHandler(KeyHandler);
            // Set up timer event handler
            UI.Canvas.Timer timer = new UI.Canvas.Timer();
            timer.Interval = 1000;
            timer.Tick += new UI.Canvas.TimerEventHandler(TimerHandler);
            timer.Start();
            //int USBHost port o or Setup USBHost
            Communication.USBHost _usbHost = new Communication.USBHost("/dev/ttyUSB0");
            _usbHost.Open();
            // Enter UI main loop
            _canvas.Run();
            // Cleanup UI
            _canvas.Dispose();
            _keypad.Dispose();
            return 0;
        public static void KeyHandler(Object o, UI.Keypad.KeyEventArgs eventArgs)
            int keycode;
            keycode = eventArgs.KeyChar;
            if (keycode == 4)
                _isExitKeyPressed = true;
                return;
        public static void TimerHandler(Object obj, UI.Canvas.TimerEventArgs eventArgs)
            if (_isExitKeyPressed)
                UI.Canvas.Timer timer = (UI.Canvas.Timer)obj;
                timer.Stop();
                _canvas.Exit();
            else
                // Open the first USB host device and read any data sent
                Communication.USBHost usbHost = new Communication.USBHost("/dev/ttyUSB0");
                usbHost.Open();
                if (usbHost.IsOpen)
                    Console.WriteLine("Opened /dev/ttyUSB0 ({0})", usbHost.HIDName);
                    FileStream fileStream = usbHost.GetStream();
                    try
                        int timeout = 0;
                        int i;
                        while (timeout < 5)
                            // Console.WriteLine("Exiting in {0} secs", 10 - timeout);
                            Byte[] bytes = new Byte[256];
                            if ((i = fileStream.Read(bytes, 0, bytes.Length)) > 0)
                                // string data = System.Text.Encoding.ASCII.GetString(bytes, 0, bytes.Length);
                                string data = System.Text.Encoding.ASCII.GetString(bytes, 0, i++);
                                _operatorCodeValue = data;
                                // _operatorCodeValue = _operatorCodeValue + data;
                                _operatorCodeDisplayText.Data = operatorCodeDisplayHeader + _operatorCodeValue.Substring(_operatorCodeValue.Length - 7, 7);
                                int leftCordinate = 40;
                                drawing.Clear();
                                Drawing.Text line1Text = new Drawing.Text();
                                line1Text.Point = new Point(leftCordinate + 30, 40);
                                line1Text.Data = _operatorCodeValue.Substring(_operatorCodeValue.Length - 7, 7);
                                line1Text.Height = 18;
                                line1Text.FontName = "CG Times Bold";
                                drawing += line1Text;
                                drawing.PartialRendering = true;
                                printControl.PrintFeed(drawing, 4);
                            else
                                Thread.Sleep(1000);
                                timeout++;
                    catch (Exception ex)
                        Console.WriteLine("Exception reading /dev/ttyUSB0: {0}", ex.Message);
                // Wait a short while
                Thread.Sleep(1000);
                // Clean up 
               // usbHost.Dispose();
            return;

    Hiya,
     The error is because the app tried to import that driver but it was not found. So, you will need
    to recheck your project setup, provide locations for imports, etc. I am not familar with Intermec Printer.
    The code snippet does not show any information about the DLL import, check there too.
    Hope this helps. :)

  • System.DllNotFoundException: Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi,
    I have a asp.net web application running on windows server 2008 with oracle server 10g installed.
    now we are planning to run application on another server with same server as database server. but when the deployed on new server the login page comes up and after login System.DllNotFoundException: Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) exception is thrown. any help would highly be appreciated.

    Did you run the ODAC installer, OUI or xcopy, or did you just copy over Oracle.DataAccess.dll to the new machine? If the latter, then you need to run the installer to put in all the necessary Oracle DLLs ODP.NET references.

  • The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi,
    We have an exisiting .NET MVC project which uses crystal reports versions 2008 (dlls of version 12.0.). No we have Crystal Reports 2011 for.NET SDK is installed and I've updated all the crystal related dlls (Enterprise.Framework.dll, CrystalDecisions.Chared, CrystalDecisions.Web ...) to newer version which is 14.0. After this upgrade, when I run application, I am getting the following error:
    The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    Source Error: 
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
       System.Reflection.Assembly._nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) +0
       System.Reflection.Assembly.nGetModules(Boolean loadIfNotFound, Boolean getResourceModules) +40
       System.Reflection.Assembly.GetTypes() +28
       System.Web.Mvc.TypeCacheUtil.FilterTypesInAssemblies(IBuildManager buildManager, Predicate`1 predicate) +161
       System.Web.Mvc.TypeCacheUtil.GetFilteredTypesFromAssemblies(String cacheName, Predicate`1 predicate, IBuildManager buildManager) +63
       System.Web.Mvc.ControllerTypeCache.EnsureInitialized(IBuildManager buildManager) +115
       System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(RouteBase route, String controllerName, HashSet`1 namespaces) +58
       System.Web.Mvc.DefaultControllerFactory.GetControllerType(RequestContext requestContext, String controllerName) +634
       System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +58
       System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +118
       System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +46
       System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +63
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +13
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8770194
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    We have another ASP.Net project, which is working fine after I update older crystal dlls to newer ones. This project is working fine.
    Thanks in advance

    This error I am getting, after I update the "CrystalDesicions.Web.dll" from version 12 to 14.0. Any I dea on this?
    After, I verified with fusin log and ProcessMonitor, they are reporting on this:
    path to BusinessObjects.Licensing.KeyCode.Decoder.dll  is not found. Does this dll is used by CrystalDecisions.Web.dll?
    and I don't have any mixed reference.
    Any help?

  • The specified module could not be found. (Exception from HRESULT: 0x8007007E) (System.Windows.Forms)

    Hi All,
    I have existing SSAS project. Previously it was working but now its showing following error:
    The specified module could not be found. (Exception from HRESULT: 0x8007007E) (System.Windows.Forms)
    Please provide the solution.
    Thanks & Regards,
    Vivek Singh

    Hi Vivek,
    According to your description, you are experiencing the error "The specified module could not be found. (Exception from HRESULT: 0x8007007E) (System.Windows.Forms)" when opening the SQL Server Analysis Services project that can be opened
    without any problems, right?
    Based on my research, the issue is caused by that some .dll files in your SSAS instance are corrupt. In your scenario, can you open other SSAS project? Please download the Adventure Works for SQL Server 2012 sample project and check if
    you can open it or not.
    https://msftdbprodsamples.codeplex.com/releases/view/55330
    Besides, here are some similar issue with your, please see:
    https://social.technet.microsoft.com/Forums/en-US/29e3cef1-4699-4710-9aa5-d56cf4a279c5/the-specified-module-could-not-be-found-exception-from-hresult-0x8007007e-systemwindowsforms?forum=sqlanalysisservices
    https://social.technet.microsoft.com/Forums/en-US/b2faae67-19af-4f50-88c6-5a427556df3e/error-encountered-when-creating-new-integration-services-project-0x8007007e?forum=sqlintegrationservices
    Regards,
    Charlie Liao
    TechNet Community Support

  • Installing SQL 2012 SP2 - The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi,
    I am trying to install the SQL 2012 SP2 in one of the servers. I am getting the error as :
    TITLE: SQL Server Setup failure.
    SQL Server Setup has encountered the following error:
    The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    Error code 0x84B10001.
    The same setup is working in other servers, but on a particular server I am getting this error.
    Server configuration: Windows server 2008 r2 standard edition, servvice pack 1 , 64 bit OS
    How to fix this?
    Thanks

    Hi Venkatzeus,
    Based on my research, the issue is caused by that some .dll files are corrupt or missing during the installing of SQL Server 2012 SP2.
    In order to troubleshoot this issue, please view the detail error message in SQL Server Setup Log Files. We can read the Summary text under %programfiles%\Microsoft SQL Server\110\Setup Bootstrap\Log\, and the Detail text in the place %programfiles%\Microsoft
    SQL Server\110\Setup Bootstrap\Log\<YYYYMMDD_HHMM>\Detail.txt. For more details, please see:
    View and Read SQL Server Setup Log Files
    Besides, here are some similar issues for your references:
    https://social.technet.microsoft.com/Forums/en-US/29e3cef1-4699-4710-9aa5-d56cf4a279c5/the-specified-module-could-not-be-found-exception-from-hresult-0x8007007e-systemwindowsforms?forum=sqlanalysisservices
    https://social.technet.microsoft.com/Forums/en-US/b2faae67-19af-4f50-88c6-5a427556df3e/error-encountered-when-creating-new-integration-services-project-0x8007007e?forum=sqlintegrationservices
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    I'm new to ADO.NET and need help with this error.
    Currently running Vista Home Premium 64 and Visual Studio 2008 Trial.
    1. Create Win form app.
    2. Add new data source...
    3. New connection - SQL Server Compact 3.5 - Northwind.sdf
    4. Highlight Products and Suppliers.
    5. Drag both onto Win form
    6. Run with debug
    7. Error message "Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
    some blogs advice change dir in SQL Server Compact 3.5 in regedit but regedit doesn't even have SQL Server Compact 3.5; only SQL Server\SQLExpress.
    reinstall SQL Server Compact 3.5 and problem still exists.
    anyone knows how to fix this problem?

     ErikEJ wrote:
    Have you set your solution target to "Any CPU" ?? If so, set to "x86", as SQL Compact only runs in WoW mode on x64. Or use corflags.exe /32BIT+ against your project output (.exe file).
     ErikEJ wrote:
    Look at this blog post for a walk-through: http://erikej.blogspot.com/2008/01/x64-and-sql-compact.html
    Hello everyone,
    I have the same problem as mentioned above "Unable to load DLL 'elev.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ", when trying to load the dll file into a window application.  I developed a window application in VS2005 and want to import a dll file from another program into my project and use it.  But when I try to call one of the function in the dll file, I got the error message "Unable to load dll 'elev.dll".  I try all options that say it works to solve this problem, but somehow it doesn't work for me. I put the "elev.dll" file in the bin folder and use P/Invoke to import the dll file into my project.  Can anyone help me out with this?  thanks and really appreciated!
     Here is how I import the dll:
    [DllImport(@"D:\elev.dll")]
    //[DllImport("emap.dll", SetLastError = true)]
    private static extern void EMA_Init();
    and in the code,  I call the function above but failed to load the dll file
    EMA_Init();

  • SQL SERVER - Error while executing SSIS package on specific environment : Connection manager - The specified module could not be found

    I have deployed my SSIS packages on SQL 2008 server.
    I have a .bat file which will invoke these packages and also the bat file is placed in the server where the SSIS packages are deployed.
    Scenario 1:
    I double clicked on the bat file to invoke the SSIS packages and ; this executed successfully
    Scenario 2:
    I have used the IBM Tivoli work scheduler(TWS)  to invoke the bat file which in tern will invoke the ssis packges; 
    but when i do this i am getting the below error
     Code: 0x8007007E
       Source: SSIS_Master_Event_Data_Transfer Connection manager "Config DB"
       Description: The specified module could not be found.
    Config BD is a connection manager which will get the connection string from the config file of the SSIS package.
    Please help me to resolve this issue.
    Regards,
    Prakash

    Check you TWS jobmanrc.cmd configuration file.   You may need to add a PATH environment variable in that file that includes your SQL Server file locations.   When TWS jobs are executed, they may not be executing with the same
    PATH variable as when you execute the SSIS outside of TWS.

  • Error messages:  "itunesobjspl/jenetsvc.dll The specified module could not be found."  And Error -2032  "Quicktime failed to initialize."

    I initially got the Error -2032 message after downloading the newest version of itunes.  I read a geek blog that said to uninstall Quicktime and I did that a bunch of times.  I also uninstalled and reinstalled itunes repeatedly.  None of this works.  I noticed that the apple website said the requirements for the new quicktime/itunes download included an intel processor and I have a celeron processor, so I wondered if that was the problem, although everything has been running fine up until now, so I don't know.  It also doesn't address the missing .dll file, but I may have accidentally deleted that because I went into the registry to try and unload some Quicktime files when I uninstalled Quicktime.  I did this at the suggestion of the blog, but I may have screwed it up.  Now I need to repair the missing .dll and still try to get itunes running

     ErikEJ wrote:
    Have you set your solution target to "Any CPU" ?? If so, set to "x86", as SQL Compact only runs in WoW mode on x64. Or use corflags.exe /32BIT+ against your project output (.exe file).
     ErikEJ wrote:
    Look at this blog post for a walk-through: http://erikej.blogspot.com/2008/01/x64-and-sql-compact.html
    Hello everyone,
    I have the same problem as mentioned above "Unable to load DLL 'elev.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ", when trying to load the dll file into a window application.  I developed a window application in VS2005 and want to import a dll file from another program into my project and use it.  But when I try to call one of the function in the dll file, I got the error message "Unable to load dll 'elev.dll".  I try all options that say it works to solve this problem, but somehow it doesn't work for me. I put the "elev.dll" file in the bin folder and use P/Invoke to import the dll file into my project.  Can anyone help me out with this?  thanks and really appreciated!
     Here is how I import the dll:
    [DllImport(@"D:\elev.dll")]
    //[DllImport("emap.dll", SetLastError = true)]
    private static extern void EMA_Init();
    and in the code,  I call the function above but failed to load the dll file
    EMA_Init();

  • OraOledbous10.dll Specific module could not be found

    To Any Oracle experts,
    I have downloded the latest Oracle 10g Vista\XP client 10.2.03 which includes the OraOledb ADO drivers. I am getting a spuradic error :
    "OraOleDBpus10.dll .. Specific module could not be found." My Oracle database is 9i ..
    Strangly enough .. this only occurs when I run my executable from my local drive ( xp sp3 ) . if I place the executable on a network drive .. running it from my box ( same box ) .. the error does not occur ..
    I am new to this forum .. I am using a TOLeAuto() class from xHarbour and Borland's C++ 5.5 compiler. The below code is the syntax. I loaded the Oracle database utilities, SQL+ and the Windows Drivers which includes the OraOledb. I know the setup is working because I can connect with the SQL+ utility so I know my tnsnames and sqlnet.ora files are correct.
    Again .. this error only shows up sporadically on my local xp-sp3 box .. I have not loaded it on Vista .. and forget about Windows 7 .. the client will not even install because the OS version number is out of range.
    The paths are correct, and my compiled program runs from a network .. just not ( always ) on my local xp sp-3 machine .. especially seems to happen after a run-time failure of my application. This is an app in development and I wil lhave run-time failures constantly.
    Any advice would be quite helpful
    Rick Lipkin
    SC Dept of Health, USA
    xPROVIDER := "OraOledb.oracle"
    xSOURCE := "efis"
    xUSERID := "suntrack"
    xPASSWORD := "xxxxxxxx"
    oRs := TOleAuto():New( "ADODB.Recordset" )
    oRs:CursorType := 3 // opendkeyset
    oRs:CursorLocation := 3 // local cache
    oRs:LockType := 3 // lockoportunistic
    cSQL := "SELECT FAC.LOCAL_FACIL_EID, "
    cSQL += "FAC.TANK_OWNER_EID, "
    cSQL += "FAC.SITE_NUM AS SITE_NUM, "
    cSQL += "STANDARDTASKS.GETNAME( LOCAL_FACIL_EID,'NO_NUM' ) AS FACILITY, "
    cSQL += "ADDR.ADDRESS_1 AS ADDRESS, "
    cSQL += "ADDR.CITY AS CITY, "
    cSQL += "ADDR.STATE_CODE AS STATE, "
    cSQL += "STANDARDTASKS.GETNAME( FAC.TANK_OWNER_EID,'NO_NUM' ) AS OWNER, "
    cSQL += "FAC.LOCKED_IND AS READ_ONLY "
    cSQL += "from SUNTRACK.EFIS_UST_FACILITIES FAC, "
    cSQL += "SUNTRACK.ADDRESSES ADDR "
    cSQL += "where ADDR.OWNER_EID = FAC.LOCAL_FACIL_EID "
    cSQL += "AND ADDR.ADDRESS_TYPE_CODE = 'BUSINESS' "
    cSQL += "AND ADDR.STOP_DATE IS NULL order by site_num"
    TRY
    oRS:Open(cSQL,'Provider='+xPROVIDER+';Data Source='+xSOURCE+';User Id='+xUSERID+';Password='+xPASSWORD )
    CATCH oErr
    MsgInfo( "Error in Opening EFIS_UST_RELEASES table" )
    oWndChild:Show()
    RETURN(.F.)
    END TRY

    Would you resolve this problem? I have the same problem.

Maybe you are looking for

  • Copy of target quantity from Contract to Sales Order

    Hi all, The desired document flow is Quotation --> Contract --> Order. Thru copy control the target quantity from quotation flows in to the contract, but the target quantity is not copied into the sales order from the contract. The document type with

  • All music gone, won't reload!

    I recently plugged my ipod mini into my computer to do some updating, adding music and so on. Then a message came up that said," iTunes can not read the contents of ipod "Mal's ipod". Use the ipod software updater application to restore the iPod to f

  • Cleared documents

    From which table we get cleared documents? Edited by: abhi on Jan 23, 2008 8:49 AM

  • Ways of pausing individual CANBUS periodic messages or changing arbitration ID

    My app is happily using the CAN hardware to periodically transmit a dozen different CAN messages (typically background period a few 100 ms). I have just learned that rather bizarely that the customer uses some of the 29 bits of the identifier as erro

  • After not working on a project for a while, my renders disappear

    I've been working on a project on and off for a couple months. And this is the 2nd time now that I've left the project for a few weeks. When I come back to it, all my rendered footage is gone. I'm importing 720p HD footage (.mov) so I need to render