Unhandled Exception: Access violation writing location 0x00000000
<p>I am doing a simple application to define a structure and place data in tha structure to learn the concept of structures. But when trying to insert data to structure i am getting an access violation. Following is the code portions.</p>

<p>In Test.h file</p>

<pre><code>typedef struct Msg
{
unsigned char*   message_id;
unsigned char*   message_name;
}Msg_t; 
</code></pre>

<p>In Test.cpp file</p>

<pre><code>Msg_t *new_node[10];

const char *src = "E0";
new_node[0]-&gt;message_id = (unsigned char *)_strdup(src); //getting access violation error here.
</code></pre>

<p>Why am i getting error? Please help.</p>