Thread: pointer as a parameter and/or casting bug

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Well for starters, you haven't allocated any memory for any of the pointers in your structure. You're just randomly assigning values to pointers. What you're also doing wrong is ignoring your compiler's warnings.

    Quzah.
    Hope is the first step on the road to disappointment.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    4
    Quote Originally Posted by quzah
    Well for starters, you haven't allocated any memory for any of the pointers in your structure. You're just randomly assigning values to pointers.
    Another function creates a sysargs variable, and makes the call to this function.. so I'm not sure what you mean.

    Quote Originally Posted by quzah
    What you're also doing wrong is ignoring your compiler's warnings.
    There are no warnings, and we're compiling with gcc -Wall

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 04-04-2009, 03:45 AM
  2. Replies: 0
    Last Post: 03-20-2008, 07:59 AM
  3. Compiler "Warnings"
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 04-24-2005, 01:09 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. function pointer & Thread Parameter :: Multithreading
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 09-11-2002, 08:42 AM