Re: [osg-users] NULL Options passed to readImageFile()

2009-09-13 Thread Chris 'Xenon' Hanson
Joe Abreu wrote:
 Running any of the debug programs through dependencywalker comes up with the 
 error that
 MSVCP80D.DLL Error Opening File. The System cannot find the specified file ( 
 2).
 But the file can be located here:
 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c
 the release version loads MSVCP80.dll fine from the same WinSxS folder.
 I do not know why they are not loaded. Event placing them in the same folder 
 as the exe fails.
 As you said this may be a configuration problem? But, I have just downloaded 
 the binaries so I can not recompile them. I guess compiling OSG from source 
 may be a solution?? ATM I do not have the time, I was only given 4 days to 
 get a project complete and its deadline day.

  Remember, there has recently been a discussion about how a recent service 
pack updated
the C runtime files. Your compiler may be on the other side of the service-pack 
update
from the 3rdparty libraries you are linking with, which is basically a recipe 
for chaos.

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
There is no Truth. There is only Perception. To Perceive is to Exist. - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-12 Thread Joe Abreu
Running any of the debug programs through dependencywalker comes up with the 
error that

MSVCP80D.DLL Error Opening File. The System cannot find the specified file ( 2).

But the file can be located here:

C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c

the release version loads MSVCP80.dll fine from the same WinSxS folder.

I do not know why they are not loaded. Event placing them in the same folder as 
the exe fails.

As you said this may be a configuration problem? But, I have just downloaded 
the binaries so I can not recompile them. I guess compiling OSG from source may 
be a solution?? ATM I do not have the time, I was only given 4 days to get a 
project complete and its deadline day.

Thanks for your help,

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17303#17303





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-11 Thread Jason Daly

Joe Abreu wrote:

I've downloaded and run the Redistributable, tried DependecyWalker.exe

OSG example debug versions are missing:

MSVCP80D.dll
MSVCR80D.dll
  


Do you also see MSVCP80.DLL and MSVCR80.DLL as dependent modules in the 
debug version?  If so, this is the configuration problem that Windows is 
telling you about.  It means you have some modules compiled for the 
Release version and others compiled for the Debug version. 

To fix it, you can use Dependency Walker to figure out which modules are 
compiled for Release (these will not have MSVCR80D.DLL as a dependency) 
and then recompile them for Debug.




and both the examples and my debug version of my program are missing:

EFSADU.dll
IESHIMS.sll
WER.dll

So obviously I need these DLL's. Are they just things I can download (via a 
simple google search, I'm not so sure they'll be what I should be downloading)
  


It's possible these are delay-loaded dependencies that aren't actually 
required for the app (because the app never calls into them).  I'd focus 
on the above problem first.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-10 Thread Jason Daly

Joe Abreu wrote:

The image does exist, but I also know the offending fragment is the 
getOptions(). It returns NULL.
  


I don't think this is the problem.  It should be fine to pass NULL for 
the ReaderWriter::Options.  Try setting the notify level to DEBUG (set 
OSGNOTIFYLEVEL=DEBUG).  This should give you a better idea as to what's 
going on.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-10 Thread Joe Abreu
I have realised that it works fine if i select release build in VS 2005. So I 
guess my problem technically must lie in the fact that I cannot get the debug 
binaries to work:

openscenegraph-all-2.8.0-win32-x86-vc80sp1-Debug.tar.gz

I uncompressed these in exactly the same way that I have the release binaries. 
But when running any of the debug executables I get an error:


C:\OpenSceneGraph\bin\osg2cppd.exe

This application has failed to start because the application configuration is 
incorrect...

My first inclination is that the dependant .dll's are not found. But the debug 
versions of all dependancies are in the same location as the release versions. 
So I do not know why the release versions work but the debug ones do not.

Does anyone have any idea why I cannot get the debug versions to work.

I used this tutorial to attempt to install OSG:

http://dwightdesign.com/2009/05/installing-openscenegraph-280/

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17248#17248





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-10 Thread Jason Daly

Joe Abreu wrote:

Does anyone have any idea why I cannot get the debug versions to work.
  


This has been an extremely common theme on the list lately.  If you just 
search the archives for Debug you'll probably find your answer.


Quick tip:  download Dependency Walker and run it on either the app or 
the OSG dll's, and you'll be able to see what's missing.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-10 Thread Wojciech Lewandowski

Hi Joe,

If I correctly assume that you tried to run Debug from VS 2005 environment 
then it must be pre SP1 VS 2005. Install Service Pack 1 for VS 2005 and you 
should be fine.
Or... if you have VC SP1, this might be the recent Microsoft VC 2005 Redist 
with ATL fixes update issue.  Microsoft has recently made an update to VC 
redistributables which breaks existing programs. There were many reports 
everywhere. If this is the case google for Microsoft Visual C++ 2005 
Service Pack 1 Redistributable Package ATL Security Update. ( I do not 
provide link to microsoft site because it usually expires faster then I 
click send)


Cheers,
Wojtek

--
From: Joe Abreu pure...@hotmail.com
Sent: Thursday, September 10, 2009 10:27 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] NULL Options passed to readImageFile()

I have realised that it works fine if i select release build in VS 2005. 
So I guess my problem technically must lie in the fact that I cannot get 
the debug binaries to work:


openscenegraph-all-2.8.0-win32-x86-vc80sp1-Debug.tar.gz

I uncompressed these in exactly the same way that I have the release 
binaries. But when running any of the debug executables I get an error:



C:\OpenSceneGraph\bin\osg2cppd.exe

This application has failed to start because the application configuration 
is incorrect...


My first inclination is that the dependant .dll's are not found. But the 
debug versions of all dependancies are in the same location as the release 
versions. So I do not know why the release versions work but the debug 
ones do not.


Does anyone have any idea why I cannot get the debug versions to work.

I used this tutorial to attempt to install OSG:

http://dwightdesign.com/2009/05/installing-openscenegraph-280/

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17248#17248





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-10 Thread Chris 'Xenon' Hanson
  A good tool to rescue you from DLHell is Dependency Walker:

http://www.dependencywalker.com/

  If you open the EXE you're trying to run, it will often point out what DLLs 
are not
present in the form/version it expects.

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
There is no Truth. There is only Perception. To Perceive is to Exist. - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] NULL Options passed to readImageFile()

2009-09-10 Thread Joe Abreu
I've downloaded and run the Redistributable, tried DependecyWalker.exe

OSG example debug versions are missing:

MSVCP80D.dll
MSVCR80D.dll

and both the examples and my debug version of my program are missing:

EFSADU.dll
IESHIMS.sll
WER.dll

So obviously I need these DLL's. Are they just things I can download (via a 
simple google search, I'm not so sure they'll be what I should be downloading)

Many thanks for all your help!! I've been given 4 days to write a OSG project 
and not being able to debug it properly is a bit annoying.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17256#17256





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org