It is currently Mon Aug 19, 2019 9:37 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Done] Owner window / #PB_Any / PB 5.70 QT
PostPosted: Sun Nov 25, 2018 7:28 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10524
Location: Beyond the pale...
Purebasic 5.70 Beta 3x64. Ubuntu 18.04.

qt subsystem.

When you close the window in the following, an invalid memory access results. No problem if the second window does not have a parent window or, more crucially, #PB_Any is not used.

Code:
OpenWindow(0, 0, 0, 220, 220, "2", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
win = OpenWindow(#PB_Any, 0, 0, 178, 100, "", #PB_Window_BorderLess, WindowID(0))
 
Repeat
  Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject: Re: Owner window / #PB_Any / PB 5.70 QT
PostPosted: Sun Nov 25, 2018 8:25 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1018
Location: right here
happens here too with beta 2.
But my editor says '[ERROR] Illegal instruction. (executing binary data?)'.
Does not happen with CloseWindow(win) at the end.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done] Owner window / #PB_Any / PB 5.70 QT
PostPosted: Mon Mar 18, 2019 8:38 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13611
Location: France
Fixed.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye