Strange warning when using KTar

Andras Mantia amantia at freemail.hu
Mon Mar 17 17:59:37 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

  I use KTar to create gzipped tar archives, and I see the following output:

ASSERT: "filter->mode() == IO_ReadOnly" in 
/home/andris/cvs-developement/head/kde-cvs/kdelibs/kio/kio/kfilterdev.cpp 
(186)
ASSERT: "filter->mode() == IO_ReadOnly" in 
/home/andris/cvs-developement/head/kde-cvs/kdelibs/kio/kio/kfilterdev.cpp 
(186)

Now, I don't understand why it says anything about being opened in 
IO_ReadOnly, as I have in the code:

  KTar tar(tarFile.path(), "application/x-gzip");
  tar.open(IO_WriteOnly);
  tar.writeFile(QFileInfo(tarFile.path()).baseName()+".toolbar", "user", 
"group", buffer.buffer().size(), buffer.buffer().data());
  tar.writeFile(QFileInfo(tarFile.path()).baseName()+".actions", "user", 
"group", buffer2.buffer().size(), buffer2.buffer().data());
  tar.close();

As you see the tar file is opened in IO_WriteOnly mode. The asserts occur when 
calling tar.writeFile().
Is this a bug in KTar/KFilterDev?

Andras

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+dg0JTQdfac6L/08RAmUXAJ4/N60CNSbD/uWJ8RApfk/hrMEI5QCgnqM/
E6abyEEyaVZ7Xw9WnfAQWc0=
=pDQL
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list