Windows runtime errors

Support for issues specific to the Windows operating systems.

Windows runtime errors

Postby saintlee133 » Tue Oct 16, 2012 12:13 pm

I am using Visual Studio 2008 with windows 7 64.
I installed cula_dense_R14-win64 and cula_sparse_S2-win64 with driver 4.1.

Although I have configured my system environment exactly according to the programmer guide, I still have some problems when I run my code. It keeps telling me cula_core.dll or other .dll missing. The only way to solve it is copying all the .dll needed to the projcet executable folder.

I have Add CULA_BIN_PATH_64 and CULASPARSE_BIN_PATH_64 to my PATH environment variable. I think it should enough for runtime setting. I cannot understand why I still have to copy the .dlls to my working directory. This is really annoying because the dll files are large and waste a lot of my storage space.
saintlee133
 
Posts: 2
Joined: Tue Oct 25, 2011 1:50 pm

Re: Windows runtime errors

Postby kyle » Tue Oct 16, 2012 3:09 pm

It doesn't look like you are doing anything incorrectly.

I've noticed that VS2008 sometimes requires a complete system reboot when changing environment variables related to DLL locations. Thankfully, this seems to have been fixed in VS2010/2012.

There is also the possibility that your PATH variable in being truncated. I've heard of some strange behavior around the 2k size. (see http://blogs.msdn.com/b/oldnewthing/arc ... 57320.aspx)
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm

Re: Windows runtime errors

Postby john » Wed Oct 17, 2012 8:58 am

I'll second Kyle's note that it's probably the PATH variable length limit. I hit that quite often on my machine!
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: Windows runtime errors

Postby saintlee133 » Wed Oct 17, 2012 1:06 pm

I figured out the problem.

I didn't use % % on 'CULA_BIN_PATH_32' when I added it to PATH.

Sorry, I made such a careless mistake :oops: .

Thank you guys.
saintlee133
 
Posts: 2
Joined: Tue Oct 25, 2011 1:50 pm


Return to Windows Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron