Rani,
The 10h (divide by zero) exception error was pretty common with HP printers/printer drivers 7-9 years ago. I ran into it with several programs, including LabVIEW. As I recall, one workaround was to configure the printer settings to disable the bi-directionality. You will not be able to get diagnostics from the printer, but that allowed printing in many of the cases. Alternatively, you can use a different (non-HP) printer. I think there may have been one or two other things to try, but I no longer remember what they are. You may want to try the HP website and search for the 10h error there for ideas/workarounds.
Regards,
Aaron