I got the following run time error after using FPSDK.dll(derived from .NET wrapper for Centera) in my project:
"An exception of type 'System.AccessViolationException' occurred in FPSDK.DLL but was not handled in user code Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I failed at this line:
FPPool pool = new FPPool(connstr);
I am using VS2005, the version of .NET wrapper for Centera is .631 the version of Centera SDK I use is 3.2.661
You are correct regarding the missing keyfile.snk at that location, this was mistakenly moved from the most recent distribution. Your other point is not correct - it is perfectly OK to use ":" rather than "=" as both work.
I will ask you again - have you compiled and run all the sample programs taht come with the ditribution? What are the results?
If not, then run the sample in debug mode and tell me when you are getting the error.
What platform are you running on? The SDK is not supported on Vista or Windows Server 2008, it must be run on Windows 2000, XP or Server 2003.
When you build the wrapper, there is a post build script that is run automatically. This patches the IL due to issues with callback calling conventions. If this script does not run properly then you can get this error when you use the DLL.
The script requires that you have Perl installed and available to run on your PATH. Please ensure that is the case.
Based on the error you are seeing, you have either not built a Debug version or you have not copied the DLL that was built to the correct location. Your .NET environment appears to have picked up an older version of the FPSDK.DLL, hence the message.
Are you able to compile and run any of the projects in the Samples.sln that comes bundled with the wrapper code? This should be the starting point for everybody and verifies that you have correctly installed and built the wrapper.
Are you still seeing the same error after you have built and deployed it?
IS your reference to FPSDK.DLL pointing to the correct version i.e. the one you just built?
What are the Date Modified timestamps on the FLSDK.DLL and FPPool.cs - the error message suggests that you have modified this or are picking up an incorrect (old) version of the DLL.
Are you able to run in Release mode rather than Debug? And what happens if you just answer "yes" to the question in the dialogue box?
Is there no-one in your company that knows more about .NET that could help you look at the problems with your specific installation? These forums are intended for topics that apply to anyone using the wrapper and you clearly have a local installation issue.
gstuartemc
2 Intern
•
417 Posts
566
0
Posted March 13th, 2009 03:00
You are correct regarding the missing keyfile.snk at that location, this was mistakenly moved from the most recent distribution. Your other point is not correct - it is perfectly OK to use ":" rather than "=" as both work.
I will ask you again - have you compiled and run all the sample programs taht come with the ditribution? What are the results?
If not, then run the sample in debug mode and tell me when you are getting the error.
What platform are you running on? The SDK is not supported on Vista or Windows Server 2008, it must be run on Windows 2000, XP or Server 2003.