You didn't say what the problem is, but my guess is that the error you get
is that Cython refuses to compile code that raises Python exceptions in a
nogil block. In your vector declaration, you are instructing Cython to not
catch C++ exceptions (and convert them to Python exceptions), i.e. you'd
most likely get a crash if allocating the "pointvector" instance fails. So
yes, there is a bug in your code. :)
How to deal with this depends on your actual code, though. You could catch
the exception in a "with gil" block, or you could allocate the C++ objects
outside of the nogil loop, or ...
Stefan