Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7501183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:27:06+00:00 2026-05-29T20:27:06+00:00

I have a C++ program that crashes on an access violation when I run

  • 0

I have a C++ program that crashes on an access violation when I run it in the Debugger with Visual Studio. The problem is that in the past it normally would take me to a line where this happens, but for this problem it says there is no source available and takes me to the disassembly. I have no idea how to decipher it and get any useful information. It takes me to the following line:

0000000057A93F0F  cmp         dword ptr [rcx+11BCh],0  

Then if I run it again it will stop at:

0000000058673F0F  cmp         dword ptr [rcx+11BCh],0  

Then if I run it again it stops at the first one and then again the second one if I re-run it… it just keeps going in this loop. I find it strange that this happens at different addresses alternating times but then again I don’t even know if that is for sure the address.

How can I use this information to find the problem?

(I would post code but I have no real idea what section is causing the problem so don’t know what to post… I should not that I am trying to compile flash-to-directx with an x64 platform).

Thanks

EDIT

Here are the lines before the crash happens:

0000000057A93EF3  test        dl,1  
0000000057A93EF6  je          0000000057A93EFD  
0000000057A93EF8  call        0000000057FC8024  
0000000057A93EFD  mov         rax,rbx  
0000000057A93F00  add         rsp,20h  
0000000057A93F04  pop         rbx  
0000000057A93F05  ret  
0000000057A93F06  int         3  
0000000057A93F07  int         3  
0000000057A93F08  sub         rsp,28h  
0000000057A93F0C  mov         ecx,r8d  

and then the crash happens at:

0000000057A93F0F  cmp         dword ptr [rcx+11BCh],0  

Also the last item on my call stack is:

Flash64_11_1_102.ocx!0000000058673f0f()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:27:07+00:00Added an answer on May 29, 2026 at 8:27 pm

    Classic 64-bit pointer truncation in Adobe Flash dll. Probably some function receives DWORD userData instead of void* userData through some structure and then casts it to object pointer. This works ok in 32-bit environment, but crashes in 64-bit.

    Explanation

    mov         ecx,r8d
    

    First operation copies only low 32-bits from R8D to ECX (ECX is 32-bit).

    cmp         dword ptr [rcx+11BCh],0
    

    Second operation accesses 64-bit register, where low 32-bits contains correct address and high 32-bits contains some junk. Leading to crash, of course.

    How to fix

    This is pretty easy, if you don’t mind editing dll using hex editor. You will need an old school MASM.exe (you can get one from Microsoft web-site).

    Create .asm file, or get one from examples and modify, with code like this:

    nop
    nop
    nop
    
    mov ecx,r8d
    cmp dword ptr [rcx+11BCh],0
    
    nop
    nop
    nop
    
    mov rcx,r8d   // I've replaced ecx with rcx here
    cmp dword ptr [rcx+11BCh],0
    

    Create .obj file by submitting this to MASM. Open resulting file with any hex editor and notice sequence 90 90 90 first_sequence_of_bytes 90 90 90 second_sequence_of_bytes. All you need to do is to find in original dll first sequence of bytes and replace it with second sequence of bytes. I’m pretty sure difference will be only in first byte.

    This will fix your crash.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ program that crashed due to a bug. It would not
I have program that has a variable that should never change. However, somehow, it
I have program that runs fast enough. I want to see the number of
I have a program that spits out both standard error and standard out, and
I have a program that creates a Windows user account using the NetUserAdd() API
I have a program that uses the mt19937 random number generator from boost::random. I
I have a program that spits out an Excel workbook in Excel 2003 XML
I have a program that monitors debug messages and I have tried using a
I have a program that will calculate the minimal area taken by fitting rectangles
I have a program that runs osql.exe from microsoft sql server tools directory and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.