on 08-13-2005 5:34 PM
Hi all, i have a problem with my plugin (works with user defined form), in the begining it works fine but after some time fails to work properly and gives an exception on the following line.
oRecordSet = (Recordset)vCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
please advice what might be the problem?
code
try
{
oRecordSet = (Recordset)vCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
}
catch (Exception theException)
{
vCompany.GetLastError(out Errcode, out ErrorMessage);
Console.WriteLine("{0},,,,",Errcode,ErrorMessage,theException.Message,theException.Source,theException.InnerException);
}
oCommand = oRecordSet.Command;
oCommand.Name="Stored_Procedure";
Hi Oleksiy,
Must likely you will have to release the Recordset or other Metadata objects that might exist in your process.
Example:
'System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordset)
'oRecordset = Nothing
or
oRecordset = Nothing
GC.Collect()
GC.WaitForPendingFinalizers()
This should be the problem.
Best regards,
Felipe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.