|
-
Feb 27th, 2004, 05:37 AM
#1
Thread Starter
New Member
Have you encountered this?
Hi,
I would just like to ask if anybody has encounter a situation like this:
client -> ComApp1 -> ComApp2
In this case client calls ComApp1, and ComApp1 calls ComApp2.
By the way, ComApp1 and ComApp2 are COM+ library applications. ComApp2 throws an exception so ComApp1 will catch that exception and so with client.
The big problem here is that the exception that was catch in the client is different exception from the original exception that was thrown in ComApp2.
I would gladly thank anyone who could give similar instance to this.
Thanks in advance.
-byteArray
-
Feb 29th, 2004, 02:22 PM
#2
Frenzied Member
I haven't but if I could I would add a GetLastError to ComApp2 and ComApp1 and when they get an exception set the internal err. I assume it is an API error because those tend to be jumpy. I haven't done much with Com or Com+ in .net, but I know when you DllImport you can tell it that the function will SetLastError and that helps get the "RIGHT" error back to you.....
Magiaus
If I helped give me some points.
-
Feb 29th, 2004, 07:58 PM
#3
Thread Starter
New Member
Hi,
Thanks for replying and for the solution that you've presented. I really appreciate it. But the thing is what we are looking for for now is the exact situation when it occur. One of us encountered it but we cant reproduce the same instance anymore. That's why we're asking if other developers have experienced that kind of situation.
Again thanks and hopefully someone could tell us the scenario when it happen.
-byteArray
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|