Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UT membership should increase
Message
From
21/08/2001 14:49:51
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00540894
Message ID:
00546923
Views:
22
>Hmm, I thought we found all of the dockable windows crashers. I use dockable windows extensively and never get crashes anymore. Got any repro scenarios?

Off my head, have dockable debug windows, run an FXP and the debug windows shoudl disappear (or close them anyways) and then issue a DEBUG, the windows try to come back docked, and you get a C5.

Now that I think about it, it could be the image thats attached to teh screen causeing the error, looks like this:
* This class uses a little trick to give the _screen tappable events
DEFINE CLASS logo AS image
	oscr = _SCREEN

	PROCEDURE Init
		* Find a file for this object
		lcFile = iif(file('ArsLogo.bmp'), 'ArsLogo.bmp', iif(file('ArsLogo.gif'), ;
			'ArsLogo.gif', iif(file('ArsLogo.jpg'), 'ArsLogo.jpg', iif(file('ArsLogo.jpeg'), ;
			'ArsLogo.jpeg', ''))))
		if not empty(lcFile)
			this.Picture = lcFile
		else
			return .F.
		endif
		this.Position()
	ENDPROC

	PROCEDURE oscr.Resize
		* This assumes the object was added to the screen as "oLogo"
		this.oLogo.Position() 
	ENDPROC

	PROCEDURE Position
		* Position this image where it should be
		with this
			.Left = _screen.width / 2 - .width / 2
			.Top = _screen.height / 2 - .Height / 2
		endwith
	ENDPROC 

ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform