crash using glUniform3fARB

I have a simple GLSL program: whenever i try to pass some parameters using:

 
glUniform3fARB(glGetUniformLocationARB(g_programObj, "LightPosition"), 0.0, 0.0, 4.0); 

the program crash. Did anyone have the same problem ?

What hardwere do you have ? And which version of drivers do you have? It can be very important.

glUniform3fARB is a entry point, which is obtained via wglGetProcAddress(in Windows of course).And glGetUniformLocationARB too.

You probably forgot to obtain the address of this function.