Re: RFR: 8322215: [win] OS events that close the stage can cause Glass to reference freed memory [v2]

2024-01-22 Thread Kevin Rushforth
On Wed, 17 Jan 2024 16:43:23 GMT, Martin Fox wrote: >> When a Stage is closed while processing an OS message the glass peer object >> is deleted immediately even if it's still executing member functions. As >> glass unwinds the stack and executes cleanup code it's referencing freed >> memory.

Re: RFR: 8322215: [win] OS events that close the stage can cause Glass to reference freed memory [v2]

2024-01-17 Thread Michael Strauß
On Wed, 17 Jan 2024 16:43:23 GMT, Martin Fox wrote: >> When a Stage is closed while processing an OS message the glass peer object >> is deleted immediately even if it's still executing member functions. As >> glass unwinds the stack and executes cleanup code it's referencing freed >> memory.

Re: RFR: 8322215: [win] OS events that close the stage can cause Glass to reference freed memory [v2]

2024-01-17 Thread Martin Fox
> When a Stage is closed while processing an OS message the glass peer object > is deleted immediately even if it's still executing member functions. As > glass unwinds the stack and executes cleanup code it's referencing freed > memory. > > There are cases where glass generates JavaFX events b