Jump to content
SubSpace Forum Network

Recommended Posts

Posted

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 smile.gif

Posted
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.
Posted
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
Posted
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
Posted
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).
Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...