when I start sony vegas pro a few seconds after it gives me an error message
And what exactly is the message? Nobody is going to be able to offer a suggestion if you don't let the forum know what the message is.
Also, please refer to this and provide the requested information particularly about the Vegas Pro version and build, Windows version and computer specifications, as well as any history about the issue such as how long you've been using this version of Vegas Pro, have there been problems in the past, any recent changes to your computer, etc.
As you mention Sony Vegas Pro, presumeably you have Sony Vegas Pro 13 or earlier, 13 being the last version of Vegas Pro released by Sony before it transferred ownership of the Vegas product line to MAGIX. Please see this.