Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LDialogBox DoDialog crashing when runnimg in X.5 Leopard / Rosetta, someone experiencing similar behavior?

1 view
Skip to first unread message

Robert Welz

unread,
Feb 8, 2008, 10:02:18 AM2/8/08
to
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;
}

0 new messages