By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

how to step through the system code

P: n/a
Hi,
how can I step through the system code like the property editor?

Im having trouble trying to find how to use the property editor to do
exactly
what I want, particularly now im finding
MyProperty:propertDescriptor
{
GetValue(object component)
}

is being passed null for the component yet my code is definatly not got any
null instances.

i can get it to work for the property editor main form or the pop up up
colection editor
but there seems no way i can get both to work at the same time.

I get a long stack trace inside my visual c# (express),
consisitng of many propertygrid and related functions

and although I can find code for those functions in the Lutz reflector,
its hard to wade through each call on the stack and find it in the
reflector.

I can copy parts of the system code from the reflector
into my project just to see whats going on ok,
but when I disamlble large chunks, it displays it
ok but when I try to copy a significant amount to the scrap
buffer it just seems to hang for ever.

is there any debugable source of the system .net code or anyway of doing
this with the express version ?

many thanks
Colin =^.^=
Jul 6 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
aha i found the Lutz reflector has an export function,
I tried to export the property grid, but it needed acces to other things
wich were to protected, exporting those lead to an ever increasing spiral of
necesseary things to export
till eventualy i ended up exporting virtualy everything in all the system
libraries.

but unfortunatly the compile error list is long enough to strect to the moon
and back !

I also found details for debuging system source
http://blogs.msdn.com/sburke/archive...urce-code.aspx
but sadly this doesnt apply to the express version :(

Colin

"colin" <co*********@ntworld.NOSPAM.comwrote in message
news:PH*****************@newsfe30.ams2...
Hi,
how can I step through the system code like the property editor?

Im having trouble trying to find how to use the property editor to do
exactly
what I want, particularly now im finding
MyProperty:propertDescriptor
{
GetValue(object component)
}

is being passed null for the component yet my code is definatly not got
any null instances.

i can get it to work for the property editor main form or the pop up up
colection editor
but there seems no way i can get both to work at the same time.

I get a long stack trace inside my visual c# (express),
consisitng of many propertygrid and related functions

and although I can find code for those functions in the Lutz reflector,
its hard to wade through each call on the stack and find it in the
reflector.

I can copy parts of the system code from the reflector
into my project just to see whats going on ok,
but when I disamlble large chunks, it displays it
ok but when I try to copy a significant amount to the scrap
buffer it just seems to hang for ever.

is there any debugable source of the system .net code or anyway of doing
this with the express version ?

many thanks
Colin =^.^=

Jul 6 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.