System.AccessViolationException when calling native function
Hi NG!
I would kindly ask you to help we out concerning following problem:
I use nVIDIAs CUDA library within one my native static C++ libraries. Using
this static library from a mixed native and managed code C++/CLI project
works well. That means I'm able to call the C functions from the static
library that semselfs calls functions from the CUDA library.
To call the C functions from C# aswell I build a C++/CLI library containing
a wrapper class for the C functions from the static lib. When using this
C++/CLI library in either a C++/CLI, C# or VB .NET project a
System.AccessViolationException is thrown when calling a CUDA function from
one of the C functions in the static lib.
Has onyone an idea what's going wrong in this case.
Tanks,
Jannis
Date:Fri, 1 Jun 2007 13:14:07 +0200
Author:
|