Access violation in method System._UStrFromPWChar

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70354
    Scurra
    Participant

    Dear all,

    we are currently using AC version v14.20 b1096 with Delphi Rio. We regularly get bugreports from our customers with an access violation from method System._UStrFromPWChar (Line 30128, “System.pas”).

    Here is an example for a call stack:

    —————————————————————————————————————————————————————————————————————————————————–
    |Methods |Details|Stack |Address |Module |Offset |Source |Unit |Class |Procedure/Method |Line |
    —————————————————————————————————————————————————————————————————————————————————–
    |*Exception Thread: ID=5552- Parent=0- Priority=0 |
    |Class=- Name=MAIN |
    |DeadLock=0- Wait Chain= |
    |Comment= |
    |—————————————————————————————————————————————————————————————————————————————————|
    |7FFFFFFE|04 |00000000|0040E083|FotobestellsoftwareApp.exe|0000E083|System.pas |System | |_UStrFromPWChar |30128[4] |
    |00000004|04 |0019F9F4|006DBCF2|FotobestellsoftwareApp.exe|002DBCF2|Vcl.Controls.pas |Vcl.Controls |TControl |WndProc |7420[91] |
    |00000004|03 |0019FA3C|756250F5|user32.dll |000250F5|USER32.dll |USER32 | | (possible CallWindowProcW+2421) | |
    |00000004|03 |0019FA40|7562554B|user32.dll |0002554B|USER32.dll |USER32 | | (possible CallWindowProcW+3531) | |
    |00000004|03 |0019FA68|756250F5|user32.dll |000250F5|USER32.dll |USER32 | | (possible CallWindowProcW+2421) | |
    |00000004|03 |0019FA6C|7562554B|user32.dll |0002554B|USER32.dll |USER32 | | (possible CallWindowProcW+3531) | |
    |00000004|04 |0019FAB8|020AA624|FotobestellsoftwareApp.exe|01CAA624|AdvGrid.pas |AdvGrid | |MsgHookProc |6374[9] |
    |00000004|03 |0019FAD0|75624E45|user32.dll |00024E45|USER32.dll |USER32 | | (possible CallWindowProcW+1733) | |
    |00000004|03 |0019FB00|7561C7EB|user32.dll |0001C7EB|USER32.dll |USER32 | |gapfnScSendMessage | |
    |00000004|04 |0019FB20|006E07A7|FotobestellsoftwareApp.exe|002E07A7|Vcl.Controls.pas |Vcl.Controls |TWinControl |WndProc |10278[166] |
    |00000004|03 |0019FB34|7562ED25|user32.dll |0002ED25|USER32.dll |USER32 | | (possible RemovePropW+229) | |
    |00000004|04 |0019FB38|00A8F575|FotobestellsoftwareApp.exe|0068F575|sCommondata.pas |sCommonData |TsCommonData |GetCommonSkinData |1479[1] |
    |00000004|04 |0019FB48|00A90599|FotobestellsoftwareApp.exe|00690599|sCommondata.pas |sCommonData |TsCommonData |Skinned |1965[3] |
    |00000004|04 |0019FB6C|00A3D7BD|FotobestellsoftwareApp.exe|0063D7BD|sFrameAdapter.pas |sFrameAdapter |TsFrameAdapter |NewWndProc |557[402] |
    |00000004|04 |0019FB80|0040B9F4|FotobestellsoftwareApp.exe|0000B9F4|System.pas |System |TMonitor |Enter |19114[4] |
    |00000004|04 |0019FB8C|0066B512|FotobestellsoftwareApp.exe|0026B512|Vcl.Graphics.pas |Vcl.Graphics |TCustomCanvas |TryLock |3679[9] |
    |00000004|04 |0019FB90|0040B860|FotobestellsoftwareApp.exe|0000B860|System.pas |System |TMonitor |CheckOwningThread |19028[2] |
    |00000004|04 |0019FB98|0040BB82|FotobestellsoftwareApp.exe|0000BB82|System.pas |System |TMonitor |Exit |19218[1] |
    |00000004|04 |0019FBA4|0040BBDE|FotobestellsoftwareApp.exe|0000BBDE|System.pas |System |TMonitor |Exit |19240[2] |
    |00000004|04 |0019FBAC|00671557|FotobestellsoftwareApp.exe|00271557|Vcl.Graphics.pas |Vcl.Graphics | |FreeMemoryContexts |7130[12] |
    |00000004|04 |0019FBBC|006DFD74|FotobestellsoftwareApp.exe|002DFD74|Vcl.Controls.pas |Vcl.Controls |TWinControl |MainWndProc |9977[3] |
    |00000004|04 |0019FBEC|00531460|FotobestellsoftwareApp.exe|00131460|System.Classes.pas |System.Classes | |StdWndProc |17536[8] |
    |00000004|03 |0019FC04|756447A9|user32.dll |000447A9|USER32.dll |USER32 | | (possible AddClipboardFormatListener+73)| |
    |00000004|03 |0019FC30|756252A7|user32.dll |000252A7|USER32.dll |USER32 | | (possible CallWindowProcW+2855) | |
    |00000004|04 |0019FC6C|007FC1EA|FotobestellsoftwareApp.exe|003FC1EA|Vcl.Forms.pas |Vcl.Forms | |TraverseClients |7506[8] |
    |00000004|03 |0019FC7C|77162F6A|ntdll.dll |00072F6A|ntdll.dll |ntdll | |NtCallbackReturn | |
    |00000004|03 |0019FC80|75640645|user32.dll |00040645|USER32.dll |USER32 | | (possible ValidateRgn+85) | |
    |00000004|03 |0019FCAC|756250F5|user32.dll |000250F5|USER32.dll |USER32 | | (possible CallWindowProcW+2421) | |
    |00000004|03 |0019FD14|756243F9|user32.dll |000243F9|USER32.dll |USER32 | | (possible DispatchMessageW+553) | |
    |00000004|03 |0019FD4C|7562ACE3|user32.dll |0002ACE3|USER32.dll |USER32 | |GetPropW | |
    |00000004|03 |0019FD88|756241DB|user32.dll |000241DB|USER32.dll |USER32 | |DispatchMessageW | |
    |00000004|04 |0019FDB0|00800C2A|FotobestellsoftwareApp.exe|00400C2A|Vcl.Forms.pas |Vcl.Forms |TApplication |HandleMessage |10754[1] |
    |00000004|04 |0019FDD4|00800F5D|FotobestellsoftwareApp.exe|00400F5D|Vcl.Forms.pas |Vcl.Forms |TApplication |Run |10892[26] |
    |00000004|04 |0019FE04|027326A6|FotobestellsoftwareApp.exe|023326A6|Common.Presentation.Impl.Types.pas|Common.Presentation.Impl.Types|TApplicationController|Run |405[5] |
    |00000004|04 |0019FE10|0311444C|FotobestellsoftwareApp.exe|02D1444C|FotobestellsoftwareApp.dpr |FotobestellsoftwareApp | |Initialization |778[130] |
    |00000004|03 |0019FF74|76A56357|kernel32.dll |00016357|KERNEL32.DLL |KERNEL32 | |BaseThreadInitThunk | |
    —————————————————————————————————————————————————————————————————————————————————–

    Unfortunately, we are unable to reproduce this error. After some investigation we assume that the bug originates from alpha controls.

    Has this bug already been fixed in newer versions? If not, can you try to fix the bug? If you require any other information feel free to ask.

    #70356
    Support
    Keymaster

    Hello! I think, this error was fixed a long time ago.
    You can try to compile the project with latest trial-version of the package and check this error there.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.