Home » U++ Library support » TopWindow&PopUp, TrayIcon » PromptOKCancel error;
PromptOKCancel error; [message #19639] |
Fri, 26 December 2008 16:53 |
|
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
|
|
|
|
|
|
Re: PromptOKCancel error; [message #19702 is a reply to message #19674] |
Tue, 06 January 2009 11:48 |
|
luzr wrote on Sun, 04 January 2009 15:59 | Fixed:
TopWindow *w = dynamic_cast<TopWindow *>(wins[i]);
if(w && w->GetScreenRect().Intersects(dlg.GetScreenRect()) && w->IsTopMost()) {
dlg.TopMost();
break;
}
Mirek
|
Thanks!
|
|
|
Goto Forum:
Current Time: Sat Jun 08 06:55:08 CEST 2024
Total time taken to generate the page: 0.01160 seconds
|