| | |
Program won't run outside Visual Studio 2008 Express
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 49
Reputation:
Solved Threads: 0
I've made a program in Visual Studio, it's a gui meant to control a camera and the functions of it that my problem rotate about are the functions to open and close the link to the camera. The program seems to run but when I run the program outside visual studio(I double click on it in explorer) and open the camera the release version just closes and the debug version tells me a debug assertion failed,
Expression: _CrtIsValidHeapPointer(pUserData)
I'm not sure how to debug this because it runs fine in visual studio.
I'm kind of stumped and I hoped somebody could nudge me in the right direction based on this information. If I post the relevant code it'll be lengthy and it'll make many references other parts of code, and you might need to know something about pixci cameras.
Expression: _CrtIsValidHeapPointer(pUserData)
I'm not sure how to debug this because it runs fine in visual studio.
I'm kind of stumped and I hoped somebody could nudge me in the right direction based on this information. If I post the relevant code it'll be lengthy and it'll make many references other parts of code, and you might need to know something about pixci cameras.
> Expression: _CrtIsValidHeapPointer(pUserData)
The pointer you passed to realloc / free / delete was not valid.
I don't know why it "works" in the IDE and the debug version outside the IDE doesn't. AFAIK, it should be the same.
But the short of it is you need to start checking your use of dynamic memory. Bear in mind that when you find where the assert is coming from, you've found where it is reported. You've still got to find the root cause of the problem.
Don't you get a "debug" button with the popup assert?
The pointer you passed to realloc / free / delete was not valid.
I don't know why it "works" in the IDE and the debug version outside the IDE doesn't. AFAIK, it should be the same.
But the short of it is you need to start checking your use of dynamic memory. Bear in mind that when you find where the assert is coming from, you've found where it is reported. You've still got to find the root cause of the problem.
Don't you get a "debug" button with the popup assert?
![]() |
Similar Threads
- Which Visual Studio 2008? (C++)
- Visual Web developer express Vs Visual studio express edition (ASP.NET)
- c++ VISUAL STUDIO 2008 (C++)
- Compile problems with visual studio 2008 (C++)
- simple visual studio express problem (C++)
- Visual Basic 2008 Express Edition Login System (VB.NET)
- VB 6 or Visual Studio 2008 Express (VB.NET)
- WPF Grid with Visual Studio 2008 (VB.NET)
- VB 2008 Express not getting installed (Windows Software)
Other Threads in the C++ Forum
- Previous Thread: [c++] ISO C++ forbids declaration of _ with no type
- Next Thread: Tic Tac Toe
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector visualstudio win32 windows winsock word wordfrequency wxwidgets






