CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    175

    Application Error

    I have an application (ATL C++ using MFC through dll) which is a tcp/ip simple web server. This web server calls a C# dll to do some encryption (RSA/MD5). When logging out of the workstation the below error is displayed. If I stop the application in any other way I do not receive this error - only if it is running at logout does this dialog box get displayed.

    I use a lot of strings (STD::string) in this program if that makes a difference.

    Code:
    Application popup: MayoCCOW.exe - Application Error : The instruction at "0x79442e83" referenced memory at "0x02f11660". The memory could not be "written".
    
    Click on OK to terminate the program
    
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    I have walked through the code and done everything I can find on Microsofts website. Unfortunately I cannot debug the code because at logout of the workstation everything else goes away except this error, including the debugger.

    Can anyone help me or guide me in what I can do to fix this? Your help is greatly appreciated!

  2. #2
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    175

    Re: Application Error

    One other question - is there a way to override or create a message pump in ATL so that I can listen for logout and terminate when I receive the END_SESSION message?

    Maybe I am going down the wrong path?

  3. #3
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Application Error

    There are thousands* cases which can create this problem. You have to debug it, see what line in your code does that.
    Regards,
    Ramkrishna Pawar

  4. #4
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    175

    Re: Application Error

    How do you debug something that only shows at logout, after the debugger has been closed?

  5. #5
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Application Error

    Remote Debugging. Are you using VC++ 2003/2005 ?
    Regards,
    Ramkrishna Pawar

  6. #6
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    175

    Re: Application Error

    I am using VS2003 - when I try to remote debug it the debugger drops right before the dialog box is displayed.

  7. #7
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Application Error

    What do you mean by drops? what dialog box?
    Regards,
    Ramkrishna Pawar

  8. #8
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    175

    Re: Application Error

    I recompiled everything in debug just now, connected to it through the remote debugger, logged off the workstation and everything works fine (i.e. no error). When not running normally (not connected through debug) I get a dialog box at logout that displays the error in the first post of 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
  •  





Click Here to Expand Forum to Full Width

Featured