Exception Handling
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Exception Handling

  1. #1
    Join Date
    May 2009
    Posts
    1

    Exception Handling

    Hi I am working on windows platform on networking using mutli threading

    I have a problem with the locking Mechanism, I am getting a exception which i am not able to fix it

    My exception as as follows:-

    Unhandled exception at 0x7c918af2 in xxx.exe:0xc0000005: Access violation writing location 0x00000010

    I have used the locking mechanism using

    EnterCriticalSection(&Lock);
    LeaveCriticalSection(&Lock);


    where Lock is a variable local to the class

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Exception Handling

    You have a bad object (or pointer, or variable, etc) somewhere. Step through your code, examine all your objects.

    Viggy

  3. #3
    Join Date
    Sep 2007
    Location
    poland|wrocław
    Posts
    47

    Re: Exception Handling

    Maybe you forgot to initialize the CriticalSection ?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center