Hi Greg,
Thanks very much.
Problem1:
I am using some managed dll which will be calling the unmaged
dll(tekSpy.dll).
The unmanaged dll is calling win32 dll for doing code injection. i.e
it will be accesing managed exe through hook process.
Once I unchecked the Loder lock exception thrown option from
Debug->Exceptions,I am not getting the messgae. But I am not sure that
, this will be the permanent solution.
Pls let me know your thoughts.
Problem 2:
I got your point. But I dont know how to call main form instance
through control.invoke.
Especially how to assign mainform instance to delegate?
Thanks,
Mohan
> Problem 1: Are you using any other dlls? Basically it is saying that the
> TekSpyHook DLL is accessing another DLL in its DLLMain which is a big no no.
[quoted text clipped - 55 lines]
> > Mohan
> > Was this
Greg Young - 06 Jun 2006 22:25 GMT
1) Turning it off is not the right way to handle it ... it can cause
seemingly random problems at runtime (i.e. app just hangs without ever
hitting your code on some machines) the code that is in there is not safe
...
2) There are examples up on the web (all over the place) .. just google on
control begininvoke .. basically you make a method that does the accessing
.. then you call control.invoke/begininvoke on the other thread causing it
to message the main thread to run your method (delegate)
> Hi Greg,
>
[quoted text clipped - 84 lines]
>> > Mohan
>> > Was this