Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabber Freeze on win32 #42

Open
thareh opened this issue Jan 3, 2020 · 3 comments
Open

Tabber Freeze on win32 #42

thareh opened this issue Jan 3, 2020 · 3 comments

Comments

@thareh
Copy link
Contributor

thareh commented Jan 3, 2020

Hi,
I came across a weird bug that makes the program freeze on Windows.

SuperStrict

Framework BRL.StandardIO
Import MaxGUI.Drivers
Import BRL.EventQueue

Local Window:TGadget = CreateWindow("Test", 0, 0, 1280, 768, Null, WINDOW_TITLEBAR | WINDOW_RESIZABLE | WINDOW_STATUS | WINDOW_ACCEPTFILES | WINDOW_MENU)

Local Tabber:TGadget = CreateTabber(0, 0, ClientWidth(Window), ClientHeight(Window), Window)

AddGadgetItem(Tabber, "foo", 0, 0)
AddGadgetItem(Tabber, "bar", 0, 1)

Local Panels:TGadget[2]
Panels[0] = CreatePanel(0, 0, ClientWidth(Tabber), ClientHeight(Tabber), Tabber)
CreateHTMLView(0, 0, ClientWidth(Panels[0]), ClientHeight(Panels[0]), Panels[0])
HideGadget(Panels[0])

Panels[1] = CreatePanel(0, 0, ClientWidth(Tabber), ClientHeight(Tabber), Tabber)
CreateTextArea(0, 0, ClientWidth(Panels[1]), ClientHeight(Panels[1]), Panels[1])
HideGadget(Panels[1])

Repeat
	
	WaitEvent()
	
	Print CurrentEvent.ToString()
	
	Select EventID()
		Case EVENT_WINDOWCLOSE
			End
			
		Case EVENT_GADGETACTION
			ShowGadget(Panels[EventData()])
	EndSelect
	
Forever

Click on the second tab and then press the tab key and the program freezes.

@thareh
Copy link
Contributor Author

thareh commented Jan 3, 2020

(Happens in vanilla BlitzMax as well)

@woollybah
Copy link
Member

Well, if it happens with the original, it must be a feature, not a bug :)

@GWRon
Copy link
Contributor

GWRon commented Jan 3, 2020

Shouldn't a run in GDB show the endless running loop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants