Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2005

Tip: Looking for answers? Try searching our database.

Problem with runtime emitted proxies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger - 07 Oct 2005 14:25 GMT
Hi

I use system.reflection.emit to create runtime subclasses of some classes.

all works very well with one little problem.

I cannot use quickwatch on my proxies , they just show up in quickwatch as
"{}" instead of showing a tree with properties etc.

also , when hovering an proxyinstance with the mouse in break mode , it also
only shows "{}" instead of "{myclassname}" which normal instances do

do i have to set some special settings in the assembly builder to make the
debugger able to view the contents of a proxy?
Vadym Stetsyak - 07 Oct 2005 15:30 GMT
AFAIK the debugger uses *.pdb files to collect the information about the
data you're debugging. Runtime class doesn't contain such info...

You can create not runtime class, that will give you the possiblity to
"quickwatch" on your runtime proxies

Signature

Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

> Hi
>
[quoted text clipped - 10 lines]
> do i have to set some special settings in the assembly builder to make the
> debugger able to view the contents of a proxy?
Roger - 08 Oct 2005 20:05 GMT
that cannot be true since its very possible to quickwatch objects from
releasemode assemblies..
Vadym Stetsyak - 10 Oct 2005 11:55 GMT
If the debug information is included it will be debuggable...
For dynamic assemblies it is necessary to emit also symbolic info. With this
info debugger can map your names with parts in the code

Also you can look through these links ( watch for word wrap ):
(
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conemittingsymbolicinformationwithreflectionemit.asp
)
( http://blogs.msdn.com/jmstall/archive/2005/02/03/366429.aspx )

Signature

Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

> that cannot be true since its very possible to quickwatch objects from
> releasemode assemblies..

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.