Re: Exception in C Library from .Net built VC++ Application

From: DM McGowan II (nospam_at_nospam.net)
Date: 09/07/04


Date: Mon, 6 Sep 2004 21:43:18 -0700

Are you using a catch(...), just curious?

Are you calling WIN32 GetLastError()?

Are you getting it while in a debug session? If not try. If you can't then
collecting runtime information about the call stack.

There are many things you 'could' do as Mr. Levine pointed out.

"David Levine" <noSpamdlevineNNTP2@wi.rr.com> wrote in message
news:erdkyJIlEHA.3720@TK2MSFTNGP12.phx.gbl...
> All you have told us is that something doesn't work without supplying any
> details at all, not even what the exception is. What do you expect anyone
> to
> do?
>
> "Venky" <Venky@discussions.microsoft.com> wrote in message
> news:13CB1A7F-EDEB-42FE-BB1D-3666A26EC09C@microsoft.com...
>> Hi David,
>> Thanks for your response. Unfortunately its our own C library and as on
> date
>> I cannot reveal that for corporate rules.
>> However, I can give you more information.
>> Firstly, there is no specific exception code related to this.
>> Guess what if I have the same library built using VC++ 6.0 it works OK,
> but
>> when I build it with .Net it crashes.
>> Any clues?
>> Thanks
>> Venky
>>
>>
>> "David Levine" wrote:
>>
>> > Perhaps if you supplied some details about the exception and the
>> > library
>> > someone could provide some help.
>> >
>> > "Venky" <Venky@discussions.microsoft.com> wrote in message
>> > news:4834EB2D-CB61-4660-9AB3-C10CC29CB241@microsoft.com...
>> > > We have a strange error here.
>> > > We have an application that is built in VC++ 6.0 and uses a C library
>> > built
>> > > using the same. Now, we have migrated to .Net and have used the same
>> > source
>> > > code to be built using the new compiler.
>> > > What happens now is, that any call that we make to the C library(also
>> > built
>> > > in .Net Env now) from the VC++ Application(built in .Net now), falls
> prey
>> > to
>> > > a runtime exception and gets into our try catch block.
>> > > We are having hard time to get this guy out.
>> > > Any help will be appreciated.
>> > > Regards
>> > > Venky
>> >
>> >
>> >
>
>