Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Embed Window
Looking at moving to OI9 and testing things work as expected, and fell at the first thing I tried.
This complex form has a Shortcut bar on the left, which I embed 4 mini screens.
On OI 8 this works fine
On OI 9 the first 2 are OK, but the 3rd just sit there and cause OI to loop.
Commenting out the 3rd causes the 4th to do the same, so I don't think it is anything to do with the form itself.
Any ideas?
PANE=1
Call Start_Window("STAT_EST_OPTIONS",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_OPTIONS","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
PANE+=1
Call Start_Window("STAT_EST_SELECT",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_SELECT","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
PANE+=1
Call Start_Window("STAT_EST_WEIGHTING",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_WEIGHTING","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
PANE+=1
Call Start_Window("STAT_EST_FILTERS",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_FILTERS","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
This complex form has a Shortcut bar on the left, which I embed 4 mini screens.
On OI 8 this works fine
On OI 9 the first 2 are OK, but the 3rd just sit there and cause OI to loop.
Commenting out the 3rd causes the 4th to do the same, so I don't think it is anything to do with the form itself.
Any ideas?
PANE=1
Call Start_Window("STAT_EST_OPTIONS",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_OPTIONS","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
PANE+=1
Call Start_Window("STAT_EST_SELECT",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_SELECT","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
PANE+=1
Call Start_Window("STAT_EST_WEIGHTING",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_WEIGHTING","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
PANE+=1
Call Start_Window("STAT_EST_FILTERS",@WINDOW:".OLE_SHORTCUTS")
hWnd=Get_Property("STAT_EST_FILTERS","HANDLE")
Call Send_Message(@Window:".OLE_SHORTCUTS","OLE.EmbedWindow",PANE,hWnd)
Comments
I know it's a bit of work on your part, but short of sending me a copy of your app, would it be possible to send me an RDK the fully recreates your setup (even if it's a mimic) along with your event logic?
Also, does the crash happen only with the Shortcut Bar or are you experiencing it with other SRP Controls as well?
Just for my own curiosity (Kevin will have to respond to the technical issues), what happens if you use the same form in each pane?
I had this problem in the past and with embedding just one form only as opposed to multiple forms. As I was only testing the functionality I didn't pursue a resolution with any great vigour.
All I remember now was thinking that I had made it work once and then in a different app couldn't.
It is very possible that the difference was a difference between OI8 and OI9 and I didn't make the connection at the time.
https://forum.srpcs.com/discussion/79/embedding-a-window-causes-oi-to-hang
It is good that you could reproduce.
I have installed the revised version, and this now works OK on OI 9 and also OI 8.
Colin
............... now what excuse can I find to play with this one?