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

Threads

edited May 2012 in General
Hello,

I have a serious problem with NexusDB which only appears with Tables,
which are used in RB.

If I use Session.Default I geht the exception, that the Session is not
in the same thread. With Delphi XE, RB 12 and NexusDB 3.09 it worked fine.

NexusDB says, nothing has changed. If this error occurs, than the
Session isn't the same thread.

So my question. Does RB 14 run not in the mainthread anymore?

Best wishes
Bernhard

Comments

  • edited May 2012
    If RB runs in a thread (and not in the Main Thread), then there are also
    big problems with the third party Component tppRichview.
    Is it possible to run the Reports in the main thread (similar as in RB 12)?

    Best wishes
    Bernhard

    Am 09.05.2012 09:38, schrieb Bernhard Roos:
  • edited May 2012
    Is there a simple way for me to change the RB source code so that
    reports are generated in the main thread? I don't need the feature for
    multiple threading.
    Best wishes
    Bernhard

    Am 09.05.2012 12:41, schrieb Bernhard Roos:
  • edited May 2012
    Hi Bernhard,

    The new RB 14 viewer generates all pages in a background thread for
    efficient execution. This is necessary due to the fact that unlike RB
    12, multiple pages must be requested at the same time. For RB 12, only
    a single page needed to be requested.

    You can revert back to the RB 12 style viewer by setting the
    PreviewFromSettings.SinglePageOnly property to True.

    I have tested the NexusDB demo with RB 14 extensively and it functions
    correctly. We also have numerous customers successfully using TRichView
    with RB 14 as well.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2012
    Thanks for the answer, I've changed the SingleProperty to true and now
    NexusDB and TRichview are working fine. Our application makes very
    complicated things with NexusDB and TRichview. Perhaps these are things,
    which aren't used from your customers or the demo application (Nexus DB).

    Best wishes
    Bernhard

    Am 09.05.2012 15:15, schrieb Nico Cizik (Digital Metaphors):
This discussion has been closed.