Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

OI Crashes on a network system

2»

Comments

  • Aaaron,

    Thank you, that gives me a starting point and method verification.

    Thanks heaps.
  • I can get it to crash after a number of broadcast messages in the one session from a screen that also has the srpdirectconnect on it. Maybe I have found a bug.

    I am going to remove and do Aarons method.

    btw: this is how I setup the ole control. Is this correct, it woks, but, maybe this causes a problem.

    server=''
    server<1>=ntsserial()<1>
    server<2>=25000
    server<3>=0
    call set_property(SrpDirectConnectCtrl,"OLE.Server",Server)
    call send_message(SrpDirectConnectCtrl,"QUALIFY_EVENT","OnMessage",1)

  • All working well.
    But(there is always a but)
    Not sure if this is supposed to work like this, or it is just the "nature of the beast".

    Senario:

    The MDI menu has a srpdirectconnect on it with an ole event that does an post_event omnievent on 'onmessage'

    1 menu(MDI) opened

    Window 1 opened
    Window 2 opened

    Window 1 will do a 'broadcast'
    Window 2 will not receive the omnievent

    2 menus(MDI) open (same menu as above)

    Window 1 open on one menu
    - will do a 'broadcast'
    Window 2 open on the other menu
    - receives the omnievent ( therefore all good under this setup)
  • ....it is the 'onmessage' that is not getting received on the 1 menu setup.
  • ...also there is now no more 'crashes'
  • Hey Barry,

    In the 1 menu setup, (other than for testing of this scenario) will window 1 and window 2 ever have the same record opened? In other words, will you as an individual user be updating the same record in two instances of the same window? Is that why you need the refresh or is it just to update other users that you have made a change to something they may be looking at?
  • Window 1 and window 2 are different 'collector' windows.
    Window 1 'releases' a record that then shows up on window 2s record list.

    Other uses can have window 2 open, and they do get updated.
Sign In or Register to comment.