News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

the Path X contains too many ".."!

Started by rickg22, January 17, 2006, 04:55:14 PM

Previous topic - Next topic

rickg22

I pinpointed the source for this annoying error.

it's in wxWidgets src/common/filename.cpp

bool wxFileName::Normalize(int flags,
                           const wxString& cwd,
                           wxPathFormat format)
{
...

                if ( m_dirs.IsEmpty() )
                {
                    wxLogError(_("The path '%s' contains too many \"..\"!"),
                               GetFullPath().c_str());
                    return FALSE;
                }

}

Apparently this is an error that should've been taken care of (i.e. if it returns false, is because something's wrong), why do we end up with paths above the root directory? :-S And do the normalizations work in these cases or what?

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rickg22

So if they work it's safe to ignore the message, right? :) So then it's just matter of adding a null logger to all the normalize calls :)

thomas

No, it is a matter of not prepending half a dozen ../ to all paths ;)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rickg22


280Z28

Is that why code completion was crashing on me?
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

rickg22


280Z28

I get that message pretty often now but not a single crash since the update.  8)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

280Z28

Quote from: thomas on January 18, 2006, 08:14:39 AM
Quote from: 280Z28 on January 18, 2006, 02:13:01 AM
Is that why code completion was crashing on me?
No.

I guess I'll go back through things like my toolbar addition and see if I missed something in the switch to wxAUI or something. Although I haven't had any problems for a while now. Maybe it working now is the result of some bug fix that just wasn't affecting anyone else in this way.
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool: