Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [FIXED] GLDraw,GLCtrl would be nice to work properly (OpenGL ver must be >= 2.1 with full-caps)
Re: GLDraw,GLCtrl would be nice to work properly [message #58617 is a reply to message #58615] Mon, 04 July 2022 00:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Does not crash for me, but backtrace is helpful. You have not posted the screenshot, but it appears like "Writes to freed blocks detected" issue?

Obviously, this is is not detected with USEMALLOC for simple reason that normal allocator does not have any such detected.

Anyway, probably the problem is somewhere about image cache recycling/freeing (related to rendering the text). Can you try with

		w.DrawLine(80, 90, 400, 0, PEN_DASHDOT);
	//	w.DrawImage(200, 10, CtrlImg::reporticon());
	//	w.DrawImage(280, 10, CtrlImg::reporticon(), Red());
		const char *text = "This text is centered";
		Size tsz = GetTextSize(text, Arial(25).Bold());
	//	w.DrawText((sz.cx - tsz.cx) / 2, (sz.cy - tsz.cy) / 2, text, Arial(27).Bold(), SBlue);
		w.Clipoff(200, 50, 95, 100);
	//	w.DrawText(0, 80, "CLIPPED", Roman(25));
		w.End();
		
	//	for(int angle = 0; angle < 360; angle += 30)
	//		w.DrawText(sz.cx - sz.cx / 3, sz.cy - sz.cy / 3, angle * 10, "x   Text with angle " + AsString(angle));


just to test if we are onto something?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to create a hidden folder?
Next Topic: is memsetex really at optimal speed?
Goto Forum:
  


Current Time: Fri May 03 16:32:23 CEST 2024

Total time taken to generate the page: 0.03579 seconds