Star Trek: The Next Generation
Hollow Pursuits
S3 E21:
A nervous and insecure officer places the Enterprise in great danger when he spends his time acting out his fantasies on the holodeck and neglects his duties in Engineering.
Starring
Dwight Schultz, Charley Lang, Colm Meaney