Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

RE: RunOnServer apparently not running
Stan Rogers 1.Nov.12 01:50 PM a Web browser
Domino Designer 6.0.3 Windows XP

The parameter document is passed by NoteID, not by UNID. That may not be your immediate problem, but the two ID strings are differently configured (the NoteID is essentially a sequential number, while the UNID (as a string) is a pair of time stamps glued end-to-end, and their expected lengths won't match). That wouldn't matter with LS, but remember that the code you're actually using was written in C or C++, so string length for something with an expected format does matter (whether it'll raise an error or just be truncated, I don't know, but it needs to fit in the char array allotted). If the agent can't get the param doc because of the mismatch, it can't delete it, and you'll be stuck in the "get the param doc" loop forever in the action.

Speaking of which: if you've got a handle on the param doc in the action, how is the agent supposed to remove it? There's only a very small window of opportunity between releasing and grabbing the document handle again. That's likely why it works when you step thrugh the code, but not if you let it run freely -- you're creating a race condition. Try adding a short sleep between releasing the document and picking it up again. A small fraction of a second (say 250ms, which would be 0.25 in the Sleep statement) is an eternity for the computer but all but imperceptible to the user.

Oh, and you can use:

Delete docParam

instead of:

Set docParam = Nothing

It shouldn't have any performance implications here, but it's a little tidier. (In more complex code, it can free up a lot of memory if you Delete objects when you're done with them.)

RunOnServer apparently not running (Mark XY Brown 1.Nov.12)
. . RE: RunOnServer apparently not runn... (Stan Rogers 1.Nov.12)
. . . . RE: RunOnServer apparently not runn... (Mark XY Brown 2.Nov.12)
. . . . . . RE: RunOnServer apparently not runn... (Stan Rogers 2.Nov.12)
. . . . RE: RunOnServer apparently not runn... (Mark XY Brown 2.Nov.12)

Document Options

  Document options
Print this pagePrint this page

Search this forum

Forum views and search

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite