RE: Strange 'LocalDataStoreSlot storage has been freed' exception



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.

.



Relevant Pages

  • VS2005 - exceptions thrown whilst debugging
    ... I have a windows forms app that I can compile (debug version) and run ... mscorlib.dll" or "Ignoring managed exception from unknown thread.The ... If I place a breakpoint in the code, I get either "A first chance ... watch window, but I am not displaying anything in the watch window. ...
    (microsoft.public.vsnet.debugging)
  • Re: win32 project error
    ... When you get an exception, you can go back to the code and look at the call ... stack window while you app is still running. ... Microsoft Visual C++ Debug Library ... (Press Retry to debug the application) ...
    (microsoft.public.vc.language)
  • Re: SetWindowPos unhandled exception only in release system
    ... More from NYC Lou: ... The exception occurs in SetWindowPos. ... Under debug, it works fine. ... // place the window based on its number ...
    (microsoft.public.vc.mfc)
  • RUNTIME ERRORS
    ... I KEEP GETTING THIS MESSAGE ON A POPUP MESAGE BOX, EVERY SERVERAL TIMES I TRY TO OPEN A NEW IE WINDOW: ... An exception 'Runtime Error' has occurred in Script. ... no debuggers are registered that can debug this exception. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Video hangs while its running under Windows CE
    ... exception when you are running a DEBUG OS with that debugger. ... I'm sorry Mr. Paul, you mistaken me. ... Exception in device.exe, gwes.exe & filesys.exe. ... DEBUG build and try to get the kernel debugger to show you where the ...
    (microsoft.public.windowsce.embedded)

Loading