Good Day,
In SAP DI-API integration, I'm receiving the strangest behaviour from COM objects (SAP COM objects).
For the first time in my experience with this (and any) development, I can see a COM object failing to be "Caught" in a try catch block of code.
Again, the behaviour observed is very sporadic. The following is a snippet where this occurs.
try
{
Children = oGenData.Child("CAMPAIGNLINES");
if (Children != null)
if (Children.Count > 0)
foreach (var line in Children)
if (line != null) Children.Remove(0);
return true;
}
catch (Exception ex)
{ //handle exception }
I added some meat around the code to try and support the cause but still, while developing the web project, the Webdav40 server app(which hosts your web project while debugging in visual studios 2010) just crashes as soon as the Children object is accessed for enumeration in the for loop.
This, in my experience has never happened to this object while in QA pahses and only now exhibits this behaviour. The try catch block is completely skipped and execution is stopped.
Has anyone ever experienced such an instance?
Thank you in advance.