Hello,

I am using GroupWise object API (7.x groupwise) in my application which is developed in VB.Net. The application is running as a windows service and is multithreaded. The problem I am facing is that it randomly starts giving "memory corrupt" error

at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at GroupwareTypeLibrary.DIGWFolder3.FindMessages(Obje ct Condition)
at GWUnifyUtils.GroupWiseSetting.SetMessageStatus(Mes sageAction action,
String mailAccount, String guid, String filePath)]
Exception: System.AccessViolationException
Message: Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.
Source: mscorlib
at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at GroupwareTypeLibrary.DIGWFolder3.FindMessages(Obje ct Condition)

I am assuming the problem is with using the object api as mulithreaded.
My questions are:
1. Is there a fix for this problem? I cannot use it single threaded since the application is processing messages for multiple users and performance is critical.
2. How can I gracefully exit out of this problem when this happens? I have tried restarting my .net windows service to release the locks but the groupwise server takes some time to respond to object api requests . Response time is not consistent...sometimes I'll have to wait 10mts for the gw server to start responding and sometimes it's more than an hr.
Is there some service on the GW Server side that needs to be restarted?
Does any of the GW client dlls needs to be unregistered/registered for the object api to work again?


Does the C++ api have the same issue?

Appreciate any help on this issue.
Thanks!