Back to Mac Usenet
From:
r.welz@pro2col.de (Robert Welz)
To:
All
Subject:
LDialogBox DoDialog crashing wh
Date:
Mon, March 31, 2008 09:05 PM
Hello!
I have some Code compiled under 10.4 / PPC with MW's CodeWarrior.
However when running under 10.5 in PPC Mode I am experiencing repeatable
crashes in LDialogBox 's DoDialog().
Is this a known bug in PP or is it definately not PP
Boolean
CNewJobWindow::DoShowFailure ()
{
Select ();
BringToForeground ();
StopProgress ();
MessageT theResult;
StDialogHandler theDialogHandler (XRayClientApp::MapResID
(rPPob_FailureDialog, ResType_PPob),LCommander::GetTopCommander ());
LDialogBox* theDialog =
(LDialogBox*)theDialogHandler.GetDialog ();
if (theDialog)
{
LStr255 theMessage;
theDialog->GetDescriptorForPaneID (kAlert_Text,
theMessage);
theMessage.Replace (theMessage.Find ("\p^0"), 2,
mDescription);
theDialog->SetDescriptorForPaneID (kAlert_Text,
theMessage);
theDialog->Show ();
// This code here crashes deep inside PowerPlant for unknown reason, but
only on Dual 2 Core CPUs:
while (true)
{
//MessageT theMessage = theDialogHandler.DoDialog ();
theResult = theDialogHandler.DoDialog ();
if (theResult == msg_OK)
return true;
else if (theResult == msg_Cancel)
return false;
}
}
return false;
}
2
Running TeleFinder Server v5.7.
© Copyright Spider Island Software