Access Violation with TsFileOpenDialog

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32889
    Célio
    Participant

    Exception when I use the TsFileOpenDialog;
    I make the call, as in the example below.
    When I make selection the file and click in botton OK, an Exception is generated:

    “First chance exception at $776742EB. Exception class EAccessViolation with message 'Access violation at address 00000000. Read of address 00000000'. Process MyProject.exe (916)”

    Example my Code:
    FileOpenDialog1.Execute;
    EdtFile.Text: = FileOpenDialog1.FileName;

    I changed the component to TOpenDialog and occurs the same error!

    But, when I created a new project and did not use the components “Alpha Controls”, but the component TOpenDialog, works perfectly!

    I am using the version 6.30 (Last version) – version 6.22 also has the same problem!
    Operating System “Windows Vista Home SP1”
    Already tried the “Windows XP” that same problem occurs.

    #38824
    Célio
    Participant

    I modified a property of TsFileOpenDialog – Options.ofNoValidate: = true, and the problem was solved!

    That is the cause of Access?

    #38838
    Support
    Keymaster

    I think that old-style file dialogs have a problem with characters validating under Vista. Could you make a new project with standard dialog and try him with and without the ofNoValidate property…

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