Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

the Path X contains too many ".."!

(1/2) > >>

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:
Yes.

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 ;)

rickg22:
That means you'll fix it? :)

Navigation

[0] Message Index

[#] Next page

Go to full version