Results 1 to 11 of 11

Thread: runtime error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: runtime error

    Quote Originally Posted by mickey View Post
    sorry, maybe I can't understand; jpeg attached previous shows where's the crash;
    No it doesn't. It just states there was an assert because of invalid pointer. A debugger will give you an exact sequence of calls that caused the error.

    Maybe does vector of vector need a my own destructor?
    Don't guess. std::vector class works for many other people so it will work for you too without modifications. There is an error in your application somewhere, most probably a pointer-based one, so you just have to take a debugger and find it. Knowing a part of code that triggered the assert is not enough if you don't know what (which object and where, in what conditions) called the code. Getting a stack trace will answer that question.

    I just don't know why are you defending yourself from using a debugger...

  2. #2
    Join Date
    Jan 2006
    Posts
    976
    Qt products
    Qt3
    Platforms
    Windows
    Thanks
    53

    Default Re: runtime error

    error post
    Regards

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Qt products
    Qt3
    Platforms
    Windows
    Thanks
    53

    Default Re: runtime error

    What do you mean for debugging? (.net has debugger); how I said in first post debugging I can see all program is exectuted correct but on "return 1" it crash(this with what I mena for debugging); it seems to me some problem with destructor of the vector of vector but I don't understand why. Is this below the stack trace you mean?
    Qt Code:
    1. > gd.exe!_CrtIsValidHeapPointer(const void * pUserData=0x00321550) Line 1807 C
    2. gd.exe!_free_dbg(void * pUserData=0x00321550, int nBlockUse=1) Line 1132 + 0x9 C
    3. gd.exe!operator delete(void * pUserData=0x00321550) Line 54 + 0x10 C++
    4. gd.exe!std::allocator<Unit>::deallocate(Unit * _Ptr=0x00321550, unsigned int __formal=3) Line 132 + 0x9 C++
    5. gd.exe!std::vector<Unit,std::allocator<Unit> >::_Tidy() Line 797 C++
    6. gd.exe!std::vector<Unit,std::allocator<Unit> >::~vector<Unit,std::allocator<Unit> >() Line 389 C++
    7. gd.exe!main(int argc=1, char * * argv=0x00321600) Line 77 + 0x19 C++
    8. gd.exe!mainCRTStartup() Line 259 + 0x19 C
    To copy to clipboard, switch view to plain text mode 
    I attach this small program hoping one more hint.
    Attached Files Attached Files
    Regards

Similar Threads

  1. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 25th August 2006, 00:31
  2. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 13:52
  3. Problems
    By euthymos in forum Installation and Deployment
    Replies: 2
    Last Post: 13th June 2006, 20:11
  4. Fed up with M$ Window$ !!! Why is Tux leaving me alone???
    By fullmetalcoder in forum General Discussion
    Replies: 35
    Last Post: 18th March 2006, 13:57
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 13:54

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
  •  
Qt is a trademark of The Qt Company.