Results 1 to 17 of 17

Thread: Problems passing an array of pointers to objects to a function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problems passing an array of pointers to objects to a function

    i) delete NULL is absolutely fine (just as free(NULL))

    ii) When I browsed your svn repository online, I found such a line.
    But it is not there. Perhaps I somehow git into an older revision. Sorry.

    Any issues left?

  2. #2
    Join Date
    Aug 2006
    Posts
    163
    Thanks
    12
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problems passing an array of pointers to objects to a function

    Well, the program is still crashing on some files. I don't know why though, it does it when I call delete <var>. It differs per file. Sometimes it happens when I am deleting the normal_idx array, etc. I hesitate to use vectors, since with many allocations of models it would, I feel, introduce unwelcome memory usage - especially since there is no need to dynamically grow the arrays.

    I'm trying to track it down now, although it may take a while. I'm learning a lot from it though, so I don't really mind too much, as long as it doesn't take too long

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.