[fdo-users] OGR 3.3 Provider runtime error [SOLVED]

Jackie Ng jumpinjackie at gmail.com
Mon Feb 23 02:12:53 EST 2009


Have you installed the Visual C++ runtime on your production machine?

- Jackie


surrounded wrote:
> 
> I'm reading through your post and seems similar to my problems.
> 
> Trying to use FDO on web server.  It works fine on my PC (Windows XP) both
> from VS 2008 web service I wrote and from localhost when I call the web
> service.  When I copy the web service over to production server, I get a: 
> 
> System.IO module not found error.  
> 
> DependencyWalker states I'm missing DWMAPI.dll, but from posts I see this
> is a red herring.
> 
> Is there anyway to solve this without the manifest thing you talk about. 
> I'm clueless on how to resolve that?
> 
> Thanks......
>  
> 
> 
> Traian Stanev wrote:
>> 
>> 
>> That is just bizarre. Shows you how much I understand that manifest thing
>> though. Yes, that's probably the right fix.
>> 
>> Traian
>> 
>> 
>>> -----Original Message-----
>>> From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-
>>> bounces at lists.osgeo.org] On Behalf Of Jackie Ng
>>> Sent: Tuesday, February 05, 2008 2:00 PM
>>> To: fdo-users at lists.osgeo.org
>>> Subject: RE: [fdo-users] OGR 3.3 Provider runtime error [SOLVED]
>>>
>>>
>>> I solved the problem, but it was the other way round.
>>>
>>> The release configuration for the OGRProvider vcproj *did not* have
>>> manifest
>>> generation and embedding enabled. I turned these options on, rebuilt
>>> the
>>> project and now I no longer get the runtime errors.
>>>
>>> I don't work with VC++ that much, so I dunno if this qualifies as an
>>> actual
>>> "fix", but there you have it.
>>>
>>> - Jackie
>>>
>>>
>>> Traian Stanev wrote:
>>> >
>>> >
>>> > The depends dump looks good, however I just thought of what may be
>>> causing
>>> > this. Some time ago Kenneth posted about a similar problem. I
>>> remember him
>>> > mentioning that it was due to a manifest being embedded in the
>>> OGRProvider
>>> > dll at build time. Removing the embedded manifest fixed the problem
>>> for
>>> > him. We need to check the OGRProvider vcproj file for that problem
>>> and fix
>>> > it if the manifest is turned on.
>>> >
>>> >
>>> > Traian
>>> >
>>> > -----Original Message-----
>>> > From: fdo-users-bounces at lists.osgeo.org
>>> > [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Traian Stanev
>>> > Sent: Thursday, January 24, 2008 11:07 PM
>>> > To: fdo-users at lists.osgeo.org
>>> > Subject: RE: [fdo-users] OGR 3.3 Provider runtime error
>>> >
>>> >
>>> > Depends can export the dependency graph to a file. If you could
>>> export
>>> > yours and send it over I can take a quick look. Since the file can be
>>> > large, email it to me only.
>>> >
>>> > Traian
>>> >
>>> >
>>> > -----Original Message-----
>>> > From: fdo-users-bounces at lists.osgeo.org
>>> > [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
>>> > Sent: Thursday, January 24, 2008 11:04 PM
>>> > To: fdo-users at lists.osgeo.org
>>> > Subject: RE: [fdo-users] OGR 3.3 Provider runtime error
>>> >
>>> >
>>> > That is correct, there are no red C++ functions listed.
>>> >
>>> > - Jackie
>>> >
>>> >
>>> > Traian Stanev wrote:
>>> >>
>>> >>
>>> >> So, you open depends for OGRProvider.dll, pick FDO.dll from the
>>> tree-view
>>> >> on the top left, and then look on the right side. It will show
>>> functions
>>> >> from FDO.dll that the OGRProvider calls. Most of them will have a
>>> green
>>> >> "C++" next to them. Are you saying none of them have a red C++ if
>>> you do
>>> >> this?
>>> >>
>>> >> Traian
>>> >>
>>> >>
>>> >>> -----Original Message-----
>>> >>> From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-
>>> >>> bounces at lists.osgeo.org] On Behalf Of Jackie Ng
>>> >>> Sent: Tuesday, January 22, 2008 3:03 AM
>>> >>> To: fdo-users at lists.osgeo.org
>>> >>> Subject: RE: [fdo-users] OGR 3.3 Provider runtime error
>>> >>>
>>> >>>
>>> >>> I've combed through the list of functions (OGRProvider.dll and
>>> directly
>>> >>> related dlls) and couldn't find any red ones. However the log
>>> window
>>> >>> did say
>>> >>> there was at least one unresolved export function in one of the
>>> delay-
>>> >>> load
>>> >>> dependent modules, but it doesn't say which one??
>>> >>>
>>> >>> - Jackie
>>> >>>
>>> >>>
>>> >>> Traian Stanev wrote:
>>> >>> >
>>> >>> >
>>> >>> > DWMAPI.dll is a common false positive that depends throws. That's
>>> not
>>> >>> your
>>> >>> > actual problem.
>>> >>> > In depends, look in one of the right panes (the one in the
>>> middle,
>>> >>> not the
>>> >>> > top right), where it lists all the dependent DLL functions that
>>> are
>>> >>> needed
>>> >>> > by the provider. See if any of them are listed in red.
>>> >>> >
>>> >>> > Traian
>>> >>> >
>>> >>> >
>>> >>> >
>>> >>> > ________________________________________
>>> >>> > From: fdo-users-bounces at lists.osgeo.org
>>> >>> > [fdo-users-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
>>> >>> > [jackie.ng at aecsystems.com.au]
>>> >>> > Sent: Monday, January 21, 2008 11:49 PM
>>> >>> > To: fdo-users at lists.osgeo.org
>>> >>> > Subject: [fdo-users] OGR 3.3 Provider runtime error
>>> >>> >
>>> >>> > Hi List,
>>> >>> >
>>> >>> > I have an application that interrogates a provider's connection
>>> >>> > properties,
>>> >>> > but when I want to get the connection properties of the OGR
>>> provider.
>>> >>> I
>>> >>> > get
>>> >>> > the following error:
>>> >>> >
>>> >>> > Microsoft Visual C++ Runtime Library
>>> >>> >
>>> >>> > Runtime Error!
>>> >>> > Program: [path to executable]
>>> >>> > R6034
>>> >>> > An Application has made an attempt to load the C runtime library
>>> >>> > incorrectly.
>>> >>> > Please contact the application's support team for more
>>> information.
>>> >>> >
>>> >>> > If I run this through the vs debugger, I get an unhandled
>>> >>> > OSGeo.FDO.Common.Exception with the following message.
>>> >>> >
>>> >>> > "Unable to load the FDO Provider: A dynamic link library (DLL)
>>> >>> > initialization routine failed."
>>> >>> >
>>> >>> > Running OGRProvider.dll through depends.exe, I found that it was
>>> has
>>> >>> a
>>> >>> > missing dependency dwmapi.dll, which after some googling turns
>>> out to
>>> >>> be a
>>> >>> > Windows Vista dll (???). So I downloaded the file anyway, and put
>>> it
>>> >>> into
>>> >>> > the working directory, but I still get the same error messages.
>>> >>> >
>>> >>> > I am using FDO 3.3.0 RC1 (binaries, not built from source) on
>>> Windows
>>> >>> XP.
>>> >>> > I am using the managed dlls.
>>> >>> >
>>> >>> > Any ideas?
>>> >>> >
>>> >>> > - Jackie
>>> >>> > --
>>> >>> > View this message in context:
>>> >>> > http://www.nabble.com/OGR-3.3-Provider-runtime-error-
>>> >>> tp15012644s18162p15012644.html
>>> >>> > Sent from the fdo-users mailing list archive at Nabble.com.
>>> >>> >
>>> >>> > _______________________________________________
>>> >>> > fdo-users mailing list
>>> >>> > fdo-users at lists.osgeo.org
>>> >>> > http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> >>> > _______________________________________________
>>> >>> > fdo-users mailing list
>>> >>> > fdo-users at lists.osgeo.org
>>> >>> > http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> >>> >
>>> >>> >
>>> >>>
>>> >>> --
>>> >>> View this message in context: http://www.nabble.com/OGR-3.3-
>>> Provider-
>>> >>> runtime-error-tp15012644s18162p15014222.html
>>> >>> Sent from the fdo-users mailing list archive at Nabble.com.
>>> >>>
>>> >>> _______________________________________________
>>> >>> fdo-users mailing list
>>> >>> fdo-users at lists.osgeo.org
>>> >>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> >> _______________________________________________
>>> >> fdo-users mailing list
>>> >> fdo-users at lists.osgeo.org
>>> >> http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> >>
>>> >>
>>> >
>>> > --
>>> > View this message in context:
>>> > http://www.nabble.com/OGR-3.3-Provider-runtime-error-
>>> tp15012644s18162p15080594.html
>>> > Sent from the fdo-users mailing list archive at Nabble.com.
>>> >
>>> > _______________________________________________
>>> > fdo-users mailing list
>>> > fdo-users at lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> > _______________________________________________
>>> > fdo-users mailing list
>>> > fdo-users at lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> > _______________________________________________
>>> > fdo-users mailing list
>>> > fdo-users at lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/fdo-users
>>> >
>>> >
>>>
>>> --
>>> View this message in context: http://www.nabble.com/OGR-3.3-Provider-
>>> runtime-error-tp15012644s18162p15296982.html
>>> Sent from the fdo-users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> fdo-users mailing list
>>> fdo-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>> _______________________________________________
>> fdo-users mailing list
>> fdo-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/fdo-users
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/OGR-3.3-Provider-runtime-error-tp2049256p2370832.html
Sent from the FDO Users mailing list archive at Nabble.com.



More information about the fdo-users mailing list