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 » Look and Chameleon Technology » RichEdit crashes with BlueBar
icon9.gif  RichEdit crashes with BlueBar [message #25400] Mon, 22 February 2010 07:28 Go to next message
tudorache.vlad is currently offline  tudorache.vlad
Messages: 2
Registered: February 2010
Location: Romania
Junior Member
Hello!

I'm new to U++ development; I admit this is a great tool, but I have a problem: compiling the BlueBar example, with either Windows SDK (for Vista - MSC8, or Win7 - MSC9) or MinGW (gcc 3.4.5 or 4.4.0) goes fine; running the program gives crash when clicking any of the toolbar's buttons (list, superscript, etc). The debugger finds the error in Callback.cpp which is:

#include "Core.h"

NAMESPACE_UPP

//#BLITZ_APPROVE
#define CPP_PART__
#include "Cbgen.h"

void Callback::Execute() const
{
if(action) action->Execute();
}

bool Gate::Execute() const
{
return (void *)action == (void *)1 ? true : action ? action->Execute() : false;
}

END_UPP_NAMESPACE

What is the problem? The source code is unmodified. U++ version 1952. I'd like to know how to solve this, i need it for a project.

Vlad
Re: RichEdit crashes with BlueBar [message #25558 is a reply to message #25400] Mon, 01 March 2010 12:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, it is just a bug in the example.

Replace UWord constructor with this one:

UWord::UWord()
{
	AddFrame(menubar);
	AddFrame(TopSeparatorFrame());
	AddFrame(toolbar);
	AddFrame(statusbar);
	Add(editor.SizePos());
	menubar.Set(THISBACK(MainMenu));
	Sizeable().Zoomable();
	WhenClose = THISBACK(Destroy);
	menubar.WhenHelp = toolbar.WhenHelp = statusbar;
	static int doc;
	Title(Format("Document%d", ++doc));
	Icon(CtrlImg::File());
	editor.ClearModify();
	SetBar();
	editor.WhenRefreshBar = THISBACK(SetBar);
	OpenMain();
	ActiveFocus(editor);
}


(one line deleted) and it should work.

(The fix is commited to svn too).

Mirek
Re: RichEdit crashes with BlueBar [message #25563 is a reply to message #25558] Mon, 01 March 2010 12:44 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Same modification must be in UWord-example and in other places.



SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: RichEdit crashes with BlueBar [message #25569 is a reply to message #25563] Mon, 01 March 2010 14:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It should have been fixed everywhere else some time ago. BlueBar was the last one I hope...
Re: RichEdit crashes with BlueBar [message #25575 is a reply to message #25569] Mon, 01 March 2010 15:55 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Maybe, I use old modificated version of UWord, sorry.

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: RichEdit crashes with BlueBar [message #25995 is a reply to message #25558] Wed, 24 March 2010 16:20 Go to previous message
tudorache.vlad is currently offline  tudorache.vlad
Messages: 2
Registered: February 2010
Location: Romania
Junior Member
Thank you!

Although my post went on the wrong forum's section, you were very kind to answer.

Vlad
Previous Topic: Skinning Scrollbar thumb
Next Topic: Manual for custom Chameleonized Ctrls
Goto Forum:
  


Current Time: Thu Mar 28 13:58:15 CET 2024

Total time taken to generate the page: 0.01445 seconds