Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6619303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:56:57+00:00 2026-05-25T20:56:57+00:00

It looks like that Microsoft is backfiring again in VS2010. Here’s my code #include

  • 0

It looks like that Microsoft is backfiring again in VS2010. Here’s my code

#include "string.h"
typedef struct s_test
{
    unsigned char a[20];
} t_test, *p_test;
void initialize(t_test t)
{
    memset(t.a, 0, 20);
}
void main()
{
    t_test t;
    initialize(t);
}

and it throws

Run-Time Check Failure #3 - The variable 't' is being used without being initialized.

Well…since in other cases the runtime checker does help so I’m less likely to turn it off in the solution. But how the hell should I do with this? You might suggest to change the way the argument is passed to pointers. However it would be an unpleasant experience regarding a consistent coding style. Now I feel like rawring to MS for this BRILLIANT stuff ;p

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:56:58+00:00Added an answer on May 25, 2026 at 8:56 pm

    Well, the error report you are getting is a perfectly valid and appropriate error report. This is exactly what you are doing: you are using an uninitialized value. You are attempting to copy an uninitialized object – in which case the report from tun-time checker is, of course, expected.

    Basically, what you are doing in your code is equivalent to this

    int a, b = a;
    

    This code will trigger the same error for the very same reason. So, why are you complaining about it?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a window that looks like this: <Window x:Class=MyWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=My Title
I have a flowdocument in WPF that looks like this: <FlowDocument xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml> <Paragraph
I have a simple Window that looks like this: <Window x:Class=StackOverflowExample.MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=MainWindow
I have a table that looks like this: Month Site Val 2009-12 Microsoft 10
If I have a UserControl hosted in a Window that looks like: <Window xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
I have a method that looks like this : Function ExecuteAndLogError(Of TResult)(ByVal code As
I have some VBA code that looks like this and the aim is to
How to get the path that usually looks like %SystemDrive%\inetpub\wwwroot ? I guess it's
I really want to create a stunning-looking GUI desktop application that looks like, for
I have data that looks like this Investor Contact IBM James IBM Dean IBM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.