NotesUIView not instantiating

I am instantiating a NotesUIView that is in a Frameset.

Dim Ws As New NotesUiWorkSpace

Dim thisUIView As NotesUIView

Set thisUIView = Ws.CurrentView

This code is in a Script Library and called from an agent.

When I run this code in NotesClient Debug mode thisUIView is successully instantiated (is bound to the view).

When I disable Debug Mode thisUIView is not instantiated. (I get an error)

Has anyone seen this before? Is this a bug?

Thanks

Yogi

Subject: NotesUIView not instantiating

If this is in a scheduled agent, then it will fail because you can’t use any UI properties in an environment that doesn’t have a UI interface. With debugger on, I guess you do have a UI.

hth

Tony

Subject: NotesUIView not instantiating

Is it private view?