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 » TopWindow&PopUp, TrayIcon » PromptOKCancel error;
PromptOKCancel error; [message #19639] Fri, 26 December 2008 16:53 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

I Have this error:
Quote:


Exception: C0000005 at 00478D9A
EXCEPTION_ACCESS_VIOLATION
reading at 00000036


after when I use Function PromptOKCancel on win32 compiled with MSC8 DEBUG.
I thing that the error is in:
int Prompt(Callback1<const String&> WhenLink,
           const char *title, const Image& iconbmp, const char *qtf, bool okcancel,
           const char *button1, const char *button2, const char *button3,
		   int cx,
		   Image im1, Image im2, Image im3)
...
Vector<Ctrl *> wins = Ctrl::GetTopWindows();
	for(int i = 0; i < wins.GetCount(); i++) {
		TopWindow *w = dynamic_cast<TopWindow *>(wins[i]);
!!!!		if(w->GetScreenRect().Intersects(dlg.GetScreenRect()) && w->IsTopMost()) {
			dlg.TopMost();
			break;
		}
	}

becouse it cannot "w->GetScreenRect()"... may be the property "Rect16 rect;" of class Ctrl(object w) is not initialized becouse it used "TopWindow *w = dynamic_cast<TopWindow *>(wins[i]);"?

I attached the package where i get this error!
try to close application and error is prompt!
Help please!

[Updated on: Sat, 27 December 2008 13:01]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TopWindows WhenMinimize event
Next Topic: TopWindow not closed on Escape
Goto Forum:
  


Current Time: Tue Apr 23 12:35:38 CEST 2024

Total time taken to generate the page: 0.01092 seconds