[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Is this a Kdevelop bug?
From:       "Barton Hodges" <barton () gcmcomputers ! com>
Date:       1999-04-14 15:38:34
[Download RAW message or body]

Hello, I hope someone can shed some light on this problem.

If I create a KDE-Application using the ApplicationWizard, and 
call it "test", the following code is created in main.cpp.  If
I add the statement "fprintf(stdout, "Starting");", where it is
shown below (without the --->, of course) the string "Starting"
does not show up in the stdin/stdout tab of the output-view until
the application dialog is closed.  Why is this?

Also, if I #include <iostream.h>, and use the statement
"cout << "Starting";" instead, Kdevelop core dumps when the 
statement is encountered.

Any ideas?

Thanks,

Barton



#include "test.h"

int main(int argc, char* argv[]) {

---> fprintf(stdout, "Starting");

  KApplication app(argc,argv,"test");

  if (app.isRestored())
    { 
      RESTORE(TestApp);
    }
  else 
    {
      TestApp* test = new TestApp;
      test->show();
    }  
  return app.exec();
}  
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic