Re: C++/CLI integrating third party assembly



"kyle.schmidt" <kyleschmidt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AB717137-38B7-4951-8247-B18673EADAF7@xxxxxxxxxxxxxxxx
Is there another flag I can check that is not .NET related?

Well, you can P/Invoke IsDebuggerPresent(). That will tell you if native
debugger is attached. I should mention that I don't know much about the
managed debugging API.

Consider this just thinking out loud ...

but it may be that the third-party stuff sees debugging at a native level as
a bigger threat than at the managed level. And if it is the case that when
you debug your C++/CLI code you are debugging in "mixed" or "auto" mode
unlike the managed mode used for C#, perhaps that's a clue.

As I said, I'm just thinking out loud ...

Regards,
Will


.


Loading