Memory leak in Dynamically created windows

Non phab app. QNX4.25 Photon 1.14

Main Window created by PhAppInit

Create Sub Window PtCreateWidget(PtWindow,…) with main window as parent
loop Create Window with Sub window as parent
populate sub sub window with labels, etc…
Destroy Window
PtSyncPhoton()
end loop

we get a memory leak in this loop

ie. Creating a child window 1 level deep works ok, going two or more levels deep creates memory leaks.

Ian Cannon
GE Interlogix Aust.

Never mind , we found it.

Previously, Ian Cannon wrote in qdn.public.qnx4.photon:

Non phab app. QNX4.25 Photon 1.14

Main Window created by PhAppInit

Create Sub Window PtCreateWidget(PtWindow,…) with main window as parent
loop Create Window with Sub window as parent
populate sub sub window with labels, etc…
Destroy Window
PtSyncPhoton()
end loop

we get a memory leak in this loop

ie. Creating a child window 1 level deep works ok, going two or more levels deep creates memory leaks.

Ian Cannon
GE Interlogix Aust.