[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Garbage path in error message

From: Thuan Seah Tan <thuan_at_fmod.org>
Date: Tue, 3 Jul 2012 11:51:43 +1000

Hi guys,

 

I am trying to debug this weird error that is coming from calling
svn_client_status5. I am using Qt and I am converting my file path to ascii
and passing the const char* to svn_client_status5 function. For those who
know Qt,

 

QByteArray dummyByteArray;

foreach( const QString& file, operation->files())

{

    dummyByteArray = file.toAscii();

    err = svn_client_status5(NULL, mSvnClientContext, dummyByteArray.data(),
&info_revision, svn_depth_files, TRUE, TRUE, TRUE, TRUE, TRUE, NULL,
checkout_callback, &statusBaton, mRootAprPool);
}

 

The file or dummyByteArray has the value
"C:/Users/Thuan/Desktop/Test_Project/NewProject/NewProject.mixer” and in the
err pointer returned, I am getting the error message "Can't open
'7D.folder)Wo\svn-2A518358': Invalid argument" which doesn’t make sense to
me. Without stepping into the code for svn_client_status5, it seems like it
is getting a garbage pointer to the string. The callback function was not
triggered at all when the error occurs. This appears at random, sometimes it
works (for the exact same file with the exact some code), and sometimes svn
will return the garbage error message.

 

Wondering has anyone seen this before? Or is there anything I should look
out for that may result in this sort of error?

 

PS: I am not subscribed to the mailing list, so would appreciate if you can
CC me the response. Thanks

 

Thuan
Received on 2012-07-03 03:52:26 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.