- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Re: debug assertion error in threads of c++ under ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2007 08:01 PM
тАО03-08-2007 08:01 PM
This my part of the c++ program using threads in windows :
//modified by pushpa
struct structExrdDoc
{
CExrdDoc* spDoc;
LPCTSTR sstrFileName;
structExrdDoc():spDoc(NULL),sstrFileName(""){}
};
structExrdDoc sp;
volatile bool running;
UINT CExcelExport::run(LPVOID p)
{
CExrdDoc* me = sp.spDoc;
me->OnSaveDocument ((LPCTSTR)sp.sstrFileName);
running = FALSE;
return 0;
}
//modified by pushpa
void CExcelExport::SaveExcelFile (CExrdDoc* pDoc, const string& strFileName)
{
sp.spDoc = pDoc; //modified by pushpa
sp.sstrFileName = strFileName.c_str(); //modified by pushpa
running = TRUE; //modified by pushpa
AfxBeginThread(run,NULL); //modified by pushpa
//pDoc->OnSaveDocument (strFileName.c_str()); //modified by pushpa
}
Here the line of code I have commented was taking lot of time, so I hv tried to use threads and I am new to this.
This is the declaration in the .h file
static UINT CExcelExport::run(LPVOID p);
After some struggle I could compile the application, but when it is run I am getting a Debug assertion error.
debug assertion failed!
program:d:\amsa\amsa\bin\gageanalysisdlld.exe
file:wincore.cpp
line:888
for information on how your program can cause an assertion failure, see the visual c++ documentation on asserts.
Could you please help me with this.
Thanking you in advance,
Pushpa.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2007 08:31 PM
тАО03-08-2007 08:31 PM
Re: debug assertion error in threads of c++ under windows
what possible causes did you eliminate with investigation as suggest by the error message ? Just so we don't repeat what you have already done.
You have raised a duplicate at :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1107108
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
You profile shows that you have yet to reward any answer !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2007 08:43 PM
тАО03-08-2007 08:43 PM
Re: debug assertion error in threads of c++ under windows
I dint get to know, how to assign points, I couldn'dnt see any drop down for assigning points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2007 09:14 PM
тАО03-08-2007 09:14 PM
Re: debug assertion error in threads of c++ under windows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2007 02:33 PM
тАО03-09-2007 02:33 PM
SolutionYou should look at your profile and assign points to your previous questions from last month too.
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1459693&listType=unassigned&forumId=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2007 02:45 PM
тАО03-09-2007 02:45 PM
Re: debug assertion error in threads of c++ under windows
(I don't know about C++ on windows.)
The obvious thing you need to do is determine if you have a source file named wincore.cpp. If so, look at line 888.
If not, it is probably some implementation runtime file and you need to look at document mentioned.