GetMethod() sometimes fails in recursive call 
Author Message
 GetMethod() sometimes fails in recursive call

 Say I have an assembly with methods foo() and bar().  Method foo() calls
some stuff that ultimately tries to reload the same assembly through:
Assembly.LoadFrom(fileName).

In this case, GetMethod("bar") sometimes returns null.  The strange thing is
that GetMethods() DOES find all of the correct methods.

Sounds weird, but it is used in an interpreter based on reflection.

James Battle

Ironbark Limited
Greenwood House
4/7 Salisbury Court
London EC4Y 8BT

Tel: +44 (0) 777 594 6279
Fax: +44 (0) 20 8789 3358
Web: http://www.*-*-*.com/



Mon, 30 Aug 2004 04:49:34 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. DCOM Proxy stub DLL fails to register - SOMETIMES ...

2. SetCooperativeLevel fails SOMETIMES...why?

3. CreateProcess() sometimes fails to start QuickWin application

4. Socket Error: WSAGetOverlappedResult fails sometimes

5. debug version works, release version sometimes fails

6. ICON fails to load sometimes

7. RpcNsBindingLookupBegin SOMETIMES fails

8. LoadFrame sometimes fails on NT, then requires reboot to fix

9. RegQueryValueEx failing sometimes.

10. MFC Serialize: sometimes OK, sometimes not!

11. Listbox: Sometimes allowing multiple selection and sometimes not ?

12. Update to DataRow sometimes works and sometimes not

 

 
Powered by phpBB® Forum Software