?
Solved

Assertion at program start (involving CTime and processshellcommand)

Posted on 2003-03-22
2
Medium Priority
?
280 Views
Last Modified: 2013-11-20
Hi,

I am writing an application using vc++ 6.  When I start my app I get multiple (10+) assertion errors for a line under CTime:

     ASSERT(nDay >= 1 && nDay <= 31);

This is being called from the app initinstance function.  All this code was added by VC++ -- I haven't done anything with time (at least I don't think so).  

Ignoring the assertions allows the program to continue as expected.

I would like to fix this annoying problem, but am unsure where to look.  


Any help would be greatly appreciated.


Nasa
0
Comment
Question by:nasa000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
fl0yd earned 750 total points
ID: 8188230
Look at the call stack and you should find out easily, where the function is called from and why those assertions are raised. I would assume that it is related to uninitialized data -- have you initialzed nDay properly in the constructor?

.f
0
 

Author Comment

by:nasa000
ID: 8189686
No, I hadn't initilazed my dates in my constructors -- didn't realize I had to.  Fixed the problem, updated the database and it all cleared up!  Thanks


Nasa
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question