Access Violation on FormClose

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32978
    bjoerng85
    Participant

    I'm testin the AlphaControl. A demo isn't available, because the software ist to big to make a Demo.

    I use Delphi 7 Pro and AlphaControls v6.23

    There is a MainForm and I open an MDIchild Form1 from this. Then I open a further Form2 with a Button on Form1. Form2's Owner is Form1 and Form2 has the same Position as Form1. The Forms are inherited from a class, which is inherited from TForm. The Skinmanager is set up as an “const”, so the access is everywhere in the program. The Skinprovider is set on all Forms.

    So when I close Form2 there will be an Exception (Access Violation), if the skins are active. Then you haven't access on the program anymore. If the program isn't in MDI-Mode, this Exception isn't thrown.

    I haven't found what the problem is.

    Thanks for help!

    #39327
    Support
    Keymaster

    I think a program with example is very needed there. I'll try to reproduce this problem, but I'm not sure that I know how to do it…

    #39380
    bjoerng85
    Participant

    I have now solved this problem.

    #39381
    OldGrumpy
    Participant

    QUOTE (bjoerng85 @ May 27 2009, 03:46 PM)
    I have now solved this problem.

    How did you solve it? It could be useful for others, too.

    #39550
    Qwark
    Participant

    I this I have the same problem. but having a hard time reproducing this in a test project. It happens when I apply skins to an existing workrelated project.
    Have narrow this down to that it is the TTntpanel that are making some trouble(Adding TTntPanel in the 3rd party list).
    This is only happen on a few modal windows an not all in the application, even if they have TTntpanels in them.
    So I'm totaly lost for now.

    #39558
    bjoerng85
    Participant

    I stop the repaint, when I close a Form.

    Stop repaint: SendMessage( Application.MainForm.Handle, WM_SETREDRAW, 0, 0 );
    Start repaint: SendMessage( Application.MainForm.Handle, WM_SETREDRAW, 1, 0 );

    #39572
    Support
    Keymaster

    Hello
    Qwark, Could you show me this error by TeamViewer?

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