Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate

RE: Potential Work-Around to handeling Notes crashed with PANIC or OleMainThreadWndName.
John Battista 9.Aug.01 07:03 PM a Web browser
Domino Designer -- Agents All Releases All Platforms


Julie,
First, Thanks for all your postings and this collection of information. It has been very helpful.

Now, to describe a recent problem, and work-around regarding the subject errors.

I recently wrote some agents for use bye a browser which basically obtained several documents from two several databases, did some comparisons and computations, and then generated several new documents representing the results and placed them into a db. The agent used several classes which I had written. This agent seemed to work fine when I called it a single time, but when I started calling it repetatively (basically running itself on all documents in a view) it began to give the Panic error. This seemed very strange given that it didn't always happen, nor did it always happen at the same spot. I also, as a test, tried having the agent run automatically through AgentMGR and this resulted in the OLEMainThreadWndName Error.

OK, so I started researching the problem in this forum and probably read almost every posting regarding the two errors and tried all of the following:
- Tried running the agent on a different server
- Upgraded Domino Server to 5.08
- Upgraded the designer client to 5.08
- Recompiled my code with the new versions
- Changed some GetDocumentByKey methods to be sure they used a String varriable and not a variant
- Removed some processes from the server
- Removed StatRep from Windows NT

Basically tried everything that had been posted and nothing worked. I finally noticed a configuration of documents and information which caused the server to crash in the same place every time. I was then able to pinpoint the line of code which was causing the crash, which read:
mvTemp1 = Arrayreplace(mvAffectedQuestions, mobjRuleElements(iCount).AffectedQuestion, mvTemp2)

The second argument to the arrayreplace is a class property which I had written. This returns a variant containaing a list.

The FIX...
I added a line seting a variant varriable
mvTemp3 = mobjRuleElements(iCount).AffectedQuestion
and updated the original line of code to read:
mvTemp1 = Arrayreplace(mvAffectedQuestions, mvTemp3, mvTemp2)

This simple change seems to have corrected the problem with the server crashing. I have writen another agent to call the offending agent multiple times and so far it has not crashed the server.

Based on this result, and some of the postings I noticed indicating that the GetDocumentByKey method were having the same issues I am beginning to believe that maybe Notes/Domino is having trouble using object references as arguments to functions and other objects. Obviously I have not done extensive testing, but it seems like we have two documented occurences of this and it might be worth some folks at IRIS to do some more testing in this area.

In any case, I hope this is helpful to you and anyone else in the forum with similar problems.

Feel free to contact me at john.a.battista@v-purchasing.com



Lotus Notes/Domino Agent FAQ update... (Julie Kadashevi... 12.Oct.00)
. . RE: Run as web user seems not work,... (Yuan Jia 23.Nov.00)
. . RE: [Julie... Add to your list?] SO... (William Hayward... 19.Dec.00)
. . RE: Can the autoprocess functionali... (Jagmeet Lamba 17.Jan.01)
. . RE: Agent output file on network dr... (Arul K Paulus-R... 23.Jan.01)
. . . . RE: Agent output file on network dr... (Leo Green 23.Jan.01)
. . . . . . RE: Agent output file on network dr... (Arul K Paulus-R... 23.Jan.01)
. . . . . . . . RE: Agent output file on network dr... (Hans Fredrik No... 24.Jan.01)
. . . . . . . . . . RE: Resolved: Agent output file on ... (Arul K Paulus-R... 24.Jan.01)
. . . . . . . . . . . . RE: Resolved: Agent output file on ... (Horst Pozdena 22.Feb.02)
. . . . . . . . . . . . . . RE: Resolved: Agent output file on ... (Horst Pozdena 22.Feb.02)
. . . . . . . . . . . . . . . . RE: Resolved: Agent output file on ... (Miguel A Navarr... 24.May.08)
. . . . . . . . . . . . RE: Resolved: Agent output file on ... (scott noebel 22.May.02)
. . RE: How to manage agent scheduler ?... (Evandro Freitas... 8.May.01)
. . RE: Agents not runing on local . (Juan Eduardo Lo... 22.May.01)
. . RE: Updating of the content of Juli... (Jerry Manner 31.Jul.01)
. . RE: Webcentric view of changing app... (Mark I Thompson... 6.Aug.01)
. . . . RE: Webcentric view of changing app... (Mark I Thompson... 6.Aug.01)
. . RE: Potential Work-Around to handel... (John Battista 9.Aug.01)
. . FAQ proposal: Anti SPAM tecniques (Simone Chemelli... 23.Aug.01)
. . Agent runs but does not send mail (David E Rackley... 30.Aug.01)
. . Scheduled Agent with ODBC bombs (Kenneth Axi 25.Sep.01)
. . Where can I find maxperformancedomi... (Ingo Beyer 6.Aug.02)
. . . . RE: Where can I find maxperformance... (Andrew P Tasi 7.Aug.02)
. . RE: Agent FAQ updated 10/07/02 [ pl... (Bill C Buhl 12.Dec.02)
. . Agent FAQ (Walter Mobach 6.May.03)
. . Recycle() clarifications (Douglas S Gray 15.Jul.04)
. . RE: Agent FAQ updated 1/9/03 (Jeff Harris 25.Feb.04)
. . Question: New ND6 AMGR Run and Canc... (Usha A Dewastha... 20.Jul.05)
. . . . RE: Question: New ND6 AMGR Run and ... (Julie Kadashevi... 10.Aug.05)
. . . . . . Question: How do a scheduled agent ... (Hung D Tran 9.Jan.06)
. . RE: Lotus Notes/Domino Agent FAQ up... (Anthony T Kendr... 29.Aug.06)
. . . . RE: Lotus Notes/Domino Agent FAQ up... (Terry Boyd 21.Sep.06)
. . "Minimizing delays in the Agent Man... (Gustavo A Rojas... 1.Feb.07)
. . RE: Lotus Notes/Domino Agent FAQ up... (Natalie Kashlin... 26.Dec.08)






  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

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

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
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
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow