-1

my program is in C#, but this project is in C++. I need to include pcl/io/boost.h in order to work with pointclouds. My problem however is that I get an AccessViolationException error when initializing the class which includes it. It gives this explanation:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

it took me 2 days to figure out that the problem is with boost, but I had trouble with it before...

I run windows 7, VS 2010 x64 installed everything of pcl in x64.

Danahi
  • 98
  • 1
  • 11
  • And what is your question? If you found a possible bug with Boost, then you should report it to them instead. – Some programmer dude Mar 05 '13 at 14:40
  • I think boost c++ is native code, you'd better use a c++ dll project to wrap the functions you need, an use this dll in your C# project. – neohope Mar 05 '13 at 14:44
  • @ joachim, my question is how I can solve this, I doubt it's a boost bug. because that would mean no one could include boost and thus use pcl. – Danahi Mar 05 '13 at 14:54
  • @neohope, I am sorry, I forgot to clearly specify that this is a C++ (dll)project in which the problem is, the error message is from C# though. – Danahi Mar 05 '13 at 14:55
  • Danahi, I suggest you write a C++ project to test this dll first. – neohope Mar 05 '13 at 14:59

1 Answers1

0

Ok I fixed it, turns out I could work around the error by looking at what I use from boost, (shared_array) and check if there is a library in the boost folder, instead of pcl/io/boost.

So for future references, if you get an error on a pcl library from a third party, check if u can use the third party library instead of the pcl/third party.

Danahi
  • 98
  • 1
  • 11