Hi All,
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. 2 5530
On Mar 9, 6:13 pm, "Pushpa" <pushpade...@gmail.comwrote:
Hi All,
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.
First of all if, possible remove the duplicate posts.
CExrdDoc* me = sp.spDoc;
me->OnSaveDocument ((LPCTSTR)sp.sstrFileName);
I really dint get how you assigned sp
Your code is not complete and run it in the debug mode. when the
program crashes, just break there and check the call stack. From there
you can identify which part of your code caused the problem.
On Mar 9, 6:13 pm, "Pushpa" <pushpade...@gmail.comwrote:
Hi All,
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.
Your code is not complete and run it in the debug mode. when the
program crashes, just break there and check the call stack. From there
you can identify which part of your code caused the problem. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chemix |
last post by:
Hello people,
I've developed a windows forms application with VC++.NET.
The problem I have is the next: I run my application and all seems go
OK, but passed a certain time (it can be hours or some...
|
by: Cormac |
last post by:
Hi everyone,
I'm writing Pure Data externals in C++ using Ms Visual C++ 7.0 and
Windows2000. I'm running motions sensor hardware so there's a bit of
real time data processing involved.
When...
|
by: Arti Potnis |
last post by:
Hi,
I have an application with a function "myfunction" that opens a file
and writes to it using fprintf.
This application runs on a unix (sun solaris 5.8) system.
I connect to this application...
|
by: lawrence |
last post by:
Hi,
I made a MFC ActiveX with a CwinThread Class in VC ++. Then i used it on
Visual basic. When i try to make an exe i got this error :
Debug Assertion Failed!
Program: C:\PROGRAM...
|
by: Seko |
last post by:
Hi!
This is my first post here, so please excuse me for any mistakes I make.
---------------------
I'm having a hard time displaying modal/non-modal dialog boxes in a Windows
Forms...
|
by: Mullai |
last post by:
Hi ,
My program gives an error message like this
Debug Assertion Failed!
program:................
File: wincore.cpp
Line: 958
Please can anyone help me out in this issue. I have to solve...
|
by: Pushpa |
last post by:
Hi All,
This my part of the c++ program using threads in windows :
//modified by pushpa
struct structExrdDoc
{
CExrdDoc* spDoc;
LPCTSTR sstrFileName;
|
by: themadme |
last post by:
im running code thats using threads, everytime i get this debug assertion failed box poping up.
It involves with my stl vector.
its saying that vector iterators incompatible.
the vector...
|
by: =?Utf-8?B?REx1ZWNr?= |
last post by:
I am getting a debug assertion error that reads:
Debug Assertion Failed!
program E:\program files\internet explorer\iexplore,exe
File: dbgheap.c
Line: 1252
Expression:...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |