Parenting a Progress.Windows.form to an ABL window.

Posted by saquib on 11-Jan-2013 02:54


Hi,

I'm trying to parent my .NET form to an ABL window so that they behave correctly in that the .NET window is realised in front of the ABL parent and when the ABL parent is closed the .NET form closes too.

here's the code:

THIS-OBJECT:ProWinHandle:PARENT = LV_MAIN_STUB_HANDLE:CURRENT-WINDOW.

The LV_MAIN_STUB_HANDLE is defined as a WIDGET-HANDLE and is assigned in the ABL window like so:

GV_MAIN_STUB_HANDLE = THIS-PROCEDURE:HANDLE

However when I close the main ABL window with the .NET window still open the .NET window remains open. When I close it I get an error:

---------------------------
Error (Press HELP to view stack trace)
---------------------------
SYSTEM ERROR when running event dispatcher
Exception code: C0000005 ACCESS_VIOLATION
Fault address:  10165ECA 01:00164ECA C:\OE102B\bin\prow32.dll
Protrace generated
---------------------------
OK   Help  
---------------------------

If anyone has any ideas I'd be very grateful,

Thankyou,

Saquib.

All Replies

This thread is closed