RE: Strange 'LocalDataStoreSlot storage has been freed' exception
- From: hongyes@xxxxxxxxxxxxxxxxxxxx ("Hongye Sun [MSFT]")
- Date: Tue, 13 Jan 2009 15:02:34 GMT
Hi Nick,
Based on the current information from the event log and patial of the
source code, it is not easy to find the root cause of the issue. The
suggested way is to set a debugger on the running process. In the following
section, I will first ask several questions to evaluate how hard to debug
the application and then I will explain a general steps of how to use
Visual Studio to debug exception. After I get the answer of the questions,
I will make out a customized troubleshooting method for you. In my previous
post, I also mentioned a way to modify some of the code to use MessageBox
to show the current thread id. That will help to narrow down the issue on
the thread part. If possible, please also have a try.
Questions to evaluate how hard to debug the application:
1. Can you use Visual Studio to debug on the target application? (Including
remote debug)
2. Does this exception can be stably reproducible in anytime? (We can
definitely determine when it will happen)
3. Can we change the source code and redeploy the application? (We can
write some testing code and test it immediately)
To debug on application exceptions:
1. Open Visual Studio, Debug -> Exceptions to open Exceptions window
2. In the Exceptions window, break when Common Language Runtime Exception
is Thrown, check the checkbox.
3. In Visual Studio, Tools -> Attach to Process
4. In the Attach to Process window, select running application. You may
also have to remote debug. This is a how to article:
http://msdn.microsoft.com/en-us/library/bt727f1t.aspx
5. Try to reproduce the exception
6. Every time an CLR exception happens, the debugger will break the
application and you can check if the first chance exception is the one
logged into the event log. In addition, you can also switch to different
threads in the debugger. You can open the threads window by Debug -> Window
-> Threads.
Please let me know if you have any difficulty on debugging on the
application. Thanks.
Regards,
Hongye Sun (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- RE: Strange 'LocalDataStoreSlot storage has been freed' exception
- From: nickdu
- RE: Strange 'LocalDataStoreSlot storage has been freed' exception
- From: "Hongye Sun [MSFT]"
- RE: Strange 'LocalDataStoreSlot storage has been freed' exception
- Prev by Date: Problem with the JIT-Compiler of .NET3.5SP1
- Next by Date: Re: Problem with the JIT-Compiler of .NET3.5SP1
- Previous by thread: RE: Strange 'LocalDataStoreSlot storage has been freed' exception
- Next by thread: Problem with the JIT-Compiler of .NET3.5SP1
- Index(es):
Relevant Pages
|
Loading