Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Access Violation when setting ModalPreview := False;

edited September 2001 in General
I set the ModalPreview to false, Preview the report to screen, then close
the application without first closing the preview screen. When I do this I
get an Access Violation! Is there something I need to do first? I am using
.... can't tell you. I just tried to go to the Digital-metaphor website and
it is down. Anyway, I just pulled the latest Professional demo for D6
today. September 19, 2001.
Is this just a bug in the demo?

Please let me know ASAP as we are looking for a new report writer.

Thanks, Dave.

Comments

  • edited September 2001
    Actually, I had two TppReport components on one form. Once I removed one
    component the Access violation stopped.
    Is only one ppReport component allowed per Form, Application ???

    Dave Hamdon

  • edited September 2001
    I'm able to connect to our website from a remote connection.

    You are allowed to have mulitple report components on a form. I just dropped
    two reports on a form, both Report.ModalPreview := False and previewed both
    of them. I then closed the app without first closing the previewer. I
    didn't get an AV.

    What other code in in your project? You only get an AV when ModalPreview is
    False? Can you send your example project to support@digital-metaphors.com
    and we'll verify what is causing the problem.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    Sorry, I can't reproduce it. All I was doing was playing with the report
    writer. Dropped on a couple buttons, report components and pipelines.
    Designed, ran...great. Then decided to try the modeless and closing the
    app. It av'd.? Then I deleted one of the report components and it stopped
    AV'ing??? So I really don't know what I did.

    As I said before I am just working with the demo right now.

    Dave.

  • edited September 2001
    We haven't had any reports of a problem like this. If you can reproduce the
    problem, let us know the requirements and we'll research it further. If it
    happened at runtime, then it should be reproducable?


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.