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

Threaded View

  1. #1
    Join Date
    Aug 1999
    Location
    Germany
    Posts
    2,338

    Error in str_misaligned in application in Windows 7

    Hello!

    I have developed a big application on Windows XP. Now I changed my OS to Windows 7 with a new computer.

    I just copied the whole project and the settings of my Visual Studio 2005, and the compiling went well. But starting the application, I get an error


    Unhandled exception at 0x5e8bb10c (msvcr80d.dll) in MyApp.exe: 0xC0000005: Access violation reading location 0x000000fe

    File strlen.asm:
    Code:
    str_misaligned:
            ; simple byte loop until string is aligned
            mov     al,byte ptr [ecx] <- Error
            add     ecx,1
            test    al,al
            je      short byte_3
            test    ecx,3
            jne     short str_misaligned
    while just concate 2 strings:

    CString a = table+"."+fields[nField].name;


    Uh The same code works fine in Windows XP. Any idea what I could do? I set WINVER=0x0501 in the compiling-settings (because the target-computers are mostly XP) and started Visual Studio as administrator.
    Last edited by martho; September 14th, 2010 at 10:10 AM.

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