Version conflict between R6 and R8

Hi,In one of our applications we use to open documents by clicking on the documents and the entering the user name and password to view the document.This functionality is working fine in lotus notes 6.5 version but in lotus 8 enviornment even after entering the correct username and password nothing happens neither the document is opened nor any error is displayed.But when we run this with lotus notes debugger everything works fine and document is opened.

Please help me out on this issue.