Results 1 to 20 of 30

Thread: Cannot access memory at address 0x0

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    21
    Thanks
    3

    Default Cannot access memory at address 0x0

    Hi, it's me, again (sigh), I'm unsure whether I should post this on the KDevelop forum, the gdb one or qtcentre, so I'll start with the most specific one.
    I'm new to working with KDevelop. Yeah, I guess I should read some docs about it. (I normally work with MSVS)

    Here's the problem I'm having: I keep getting the following error when trying to debug: Cannot access memory at address 0x0. I've cut down my code and pinned down the problem to be at line 5, yet I'm still puzzled as of why it happens, I can't see what I'm doing wrong here. (naturally, it compiles just fine)

    Right, so here's the code.
    Qt Code:
    1. #include <QApplication>
    2.  
    3. int main(int argc, char *argv[])
    4. {
    5. QApplication app(argc, argv);
    6.  
    7. return 0;
    8. }
    To copy to clipboard, switch view to plain text mode 

    Specs:
    Ubuntu 7.10
    KDevelop 3.5.0
    Last edited by defumar; 25th January 2008 at 15:01.

Similar Threads

  1. Memory leak weirdness
    By Darhuuk in forum General Programming
    Replies: 10
    Last Post: 10th January 2008, 18:51
  2. Memory Leak in my Application :-(
    By Svaths in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 19:42
  3. what is free store in C++ memory?
    By Masih in forum General Programming
    Replies: 6
    Last Post: 2nd July 2007, 22:25
  4. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.