Russky Posted July 19, 2007 Report Posted July 19, 2007 I have !@#$%^&*igned to open .lvl files somewhere in one of the drop down menus, so when I double click one and it runs in DCME works perfectly, thanks so much by the way I have been waiting so much for the feature. However, I minimize DCME and double click another (different) .lvl file to open it in another tab of DCME. After I do that DCME stops responding! Thank you so much for DCME, I use it a lot
Samapico Posted July 19, 2007 Report Posted July 19, 2007 hmm good one... I don't know what exactly is the problem, since it's impossible to make the bug happen in the debugger... But I suppose a quick and efficient fix would be to force a restore of the window before making it open the map.
Russky Posted July 19, 2007 Author Report Posted July 19, 2007 It just overall happens when I drag a .lvl file onto a Shotrcut, sometimes DCME crashes even with a single file that is opened this way.
Samapico Posted July 19, 2007 Report Posted July 19, 2007 Yeah I know. The problem is that when a file is opened, the window is probably resized, and in the resize method, some stuff are placed according to the size of the window, but when minimized, the size is most likely 0... so BOOM
Russky Posted July 19, 2007 Author Report Posted July 19, 2007 It started happening after the version update I did last night if that helps.
Samapico Posted July 20, 2007 Report Posted July 20, 2007 From what I understood, you fixed it when you simply minimized DCME... But the problem seems to also happen when opening a map while DCME is minimized
Drake7707 Posted July 20, 2007 Report Posted July 20, 2007 hm, i think i'll write a "debug insertor" that inserts an adddebug at each line. Granted DCME would be like 1000times slower, but it's only for debugging purposes (at least then we could track the code like a flow chart).
Samapico Posted July 20, 2007 Report Posted July 20, 2007 We'd just need to add some debug.print Before After at the start and end of each method
Russky Posted July 20, 2007 Author Report Posted July 20, 2007 I don't mind it if you send a debug tracker, if it is to fix the bug then sure.
Samapico Posted July 21, 2007 Report Posted July 21, 2007 After a lot of swearing, I've fixed this one... So many weird things...First of all, when we opened a map through double-click while DCME is minimized, for some reason, DCME thought it was maximized, so it tried to resize some stuff, but it crashed for that reason.So I wanted it to restore DCME before opening the map, like most programs do... they pop back in front of other windows and all...I couldn't get the API to restore it correctly: When you minimize a maximized window, then restore it, it should come back maximized, right? Well I couldn't do that... I got around that by storing the last known window state of the main form, so if it was maximized, do SetWindowPlacement(Maximized), else, SetWindowPlacement(Restore) anyways... BLEH. So it's fixed, plus the focus is set correctly on DCME. CLOSED
Recommended Posts