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 / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Profiler API 2.0 bug?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mikhail Pilin - 14 Mar 2006 16:04 GMT
I call GetStaticFieldInfo(), GetAppDomainStaticAddress(),
GetThreadStaticAddress(), GetContextStaticAddress() methods during
GarbageCollectionFinished() notification. SetEventMask() has following flags
as arguments:
 COR_PRF_MONITOR_CLASS_LOADS
 COR_PRF_MONITOR_MODULE_LOADS
 COR_PRF_MONITOR_APPDOMAIN_LOADS
 COR_PRF_MONITOR_THREADS
 COR_PRF_MONITOR_GC
All work properly.

I decided to add COR_PRF_MONITOR_CODE_TRANSITIONS and/or
COR_PRF_MONITOR_ENTERLEAVE (Enter2/Leave2/Tailcall2 are empty: ret 16/ret
16/ret 12) flags. So, GetThreadStaticAddress() crashed, but all other
functions are continue to work properly.
Exception:
 Unhandled exception at 0x79e811f5 (mscorwks.dll) in devenv.exe:
0xC0000005: Access violation reading location 0x000003a0.
Stack trace:
 mscorwks.dll!MethodTable::GetDomainLocalModule()  + 0x33 bytes
 mscorwks.dll!MethodTable::IsClassInited()  + 0x14 bytes
 mscorwks.dll!ProfToEEInterfaceImpl::GetThreadStaticAddress()  + 0x8a bytes
 mscordbc.dll!CorProfInfo::GetThreadStaticAddress()  + 0x1e bytes
 ...
Reason to crash:
 _GetAppDomain() returns zero.

Could you help me to understand what happened?
Mikhail Pilin - 15 Mar 2006 09:33 GMT
GetThreadStaticAddress() throw access violation exception ONLY for class System.Runtime.Remoting.Activation.ActivationServices fieldname _attributeStack.

For
class System.Windows.Forms.Application.ThreadContext fieldname currentThreadContext
class System.Windows.Forms.SynchronizationContext fieldname previousSyncContext
class System.Windows.Forms.Internal.DeviceContext fieldname activeDeviceContexts
 ...
no any problems are appeared

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.