The barcode function isn't working.

I'm trying to create a barcode using "Object > Insert > Barcode". The program stops responding for about 1-2 minutes, then I get the message: "Object could not be created. Make sure the object is registered in the system registry." What can I do? Thanks for your help.