# SDK example: Particle cudaGLUnregisterBufferObject

**URL:** <https://forums.developer.nvidia.com/t/sdk-example-particle-cudaglunregisterbufferobject/2245>\
**Category:** CUDA Programming and Performance\
**Created:** [January 4, 2008, 10:04am UTC](https://forums.developer.nvidia.com/t/sdk-example-particle-cudaglunregisterbufferobject/2245 "2008-01-04T10:04:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris777](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chris777](https://forums.developer.nvidia.com/u/chris777)\
**Post date:** [January 4, 2008, 10:04am UTC](https://forums.developer.nvidia.com/t/sdk-example-particle-cudaglunregisterbufferobject/2245/1 "2008-01-04T10:04:57Z")

</div>

I had installed CUDA 1.1 SDK and toolkits, but when I execute the .exe file that will show a message:  
“Cuda error in file ‘particleSystem.cu’ in line 80: invalid argument”

I found out the code in line 80:  
“CUDA\_SAFE\_CALL(cudaGLUnregisterBufferObject(vbo));”

If I execute some examples that include this kind of code, the error will generate.

Why did I get this error? How do I solve this problem?

Thank you.

---

<div class="post-metadata">

**Author:** ![Simon\_Green](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Simon\_Green](https://forums.developer.nvidia.com/u/Simon_Green)\
**Post date:** [January 4, 2008, 7:01pm UTC](https://forums.developer.nvidia.com/t/sdk-example-particle-cudaglunregisterbufferobject/2245/2 "2008-01-04T19:01:37Z")

</div>

What GPU are you using? Are you running with the recommended driver (169.09 or above)?

---

<div class="post-metadata">

**Author:** ![chris777](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chris777](https://forums.developer.nvidia.com/u/chris777)\
**Post date:** [January 8, 2008, 5:46am UTC](https://forums.developer.nvidia.com/t/sdk-example-particle-cudaglunregisterbufferobject/2245/3 "2008-01-08T05:46:55Z")

</div>

> [@](#):
>
> What GPU are you using? Are you running with the recommended driver (169.09 or above)?
> 
> [snapback]304973[/snapback]

I am using G80 and had installed the latest driver 169.21.

I already found out the way why I got the problem, because I didn’t uninstall the whole driver before I installed the new one.

Thanks for your reply. :)
