Hi. I'm having trouble debugging a rather large project. The first issuse is not knowing how to track the bug down. Here is the text from Assertion Error popup while running in debug mode Debug Assertion Failed > Program...nga Path\file.exe > File: f:\dd\vctools\crt_bld\self_x86\crt\src\xtoa.c > Line: 105 > > Expression: sizeInTChars > (size_t)(is_neg ? 2: 1) I'm unsure as to how I can find which part of code is causing the problem. Here is the particular piece of code which the above ifo breaks at. TCHAR *p; /* pointer to traverse string */ TCHAR *firstdig; /* pointer to first digit */ …

Member Avatar
Member Avatar
+0 forum 3

Hello friends, my computer suddenly have a problem when I uninstall the program Tune Up Utilites 2013, after finish uninstall that program, and then I restart, suddenly theme of my computer back to classic mode and out notice as: Debug Assertion Failed ! ----------------------------------------------------------------------------------------------------------------- Program: C:\Program Files\Lenovo\Energy Management\Energy Management.exe File: .\controlhandler.cpp Line: 103 For information on how your program can cause an assertion failure, see the visual C++ documentation on asserts. (press retry to debug the application) ----------------------------------------------------------------------------------------------------------------- in addition to that problem, my computer can not run the system restore program, wireless, audio and others. thank you, sorry if …

Member Avatar
Member Avatar
+0 forum 3

I'm trying to make encryption program but when i run the program it gives me this error: Debug Assertion Failed! Program:...nts\visual studio 2010\projects\encrypter\debug\encrypter.exe File:c:\program files\microsoft visual studio 10.0\vc\include\xstring Line:1441 Expression: string subscript out of range For information on how your program can cause assertion failure, see the Visual C++ documentation on asserts. [CODE] #include <iostream> #include <stdlib.h> #include <sstream> #include <string> #include "windows.h" using namespace std; void encrypt(string words); int main() { string Emptywords; cout << "What shall i encrypt?" << endl; cin >> Emptywords; encrypt(Emptywords); // calling encryption funtion and passing user input } void encrypt(string words) { char …

Member Avatar
Member Avatar
+0 forum 4

I'm writing a program to add two hex numbers of up to ten digits, and I'm recieving an "assertion failure," and I can't figure out why. Any help would be greatly appreciated. Thank you for you time! [CODE] // hex addition.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> #include <cmath> using namespace std; void convertToDec(string, string); int _tmain(int argc, _TCHAR* argv[]) { //assign values to last six hex characters //convert both inputs to dec //add two dec numbers //convert back go hex for answer string input; string input2; string hex[16] = …

Member Avatar
Member Avatar
+0 forum 7

Okay - Now I am beginning to get a bit frustrated. I have a project that builds perfectly and I just want to duplicate it so I create a new project with the new name that I want to call it. When It shows me the empty space to start editing my file I select everything there and delete it. I then paste into this .cpp file the precise same file from the original .cpp file that I am trying to start with. I build the file. It compiles without error. Now I go to debug the file. Where it …

Member Avatar
Member Avatar
+0 forum 6

Here is the VC++ code [code]SVisFileDescriptor filedescriptor1; ZeroMemory(&filedescriptor1, sizeof(SVisFileDescriptor)); filedescriptor1.has_alpha_channel=CVisImageBase::IsAlphaWritten(); filedescriptor1.jpeg_quality=0; filedescriptor1.filename=currentpath1; pframe->SetTimer(22,5000,NULL); imageS1.WriteFile(filedescriptor1);[/code] This block is basically replicated in 3 different functions which in essence save 1 image EACH from a camera connected. I am not sure why this is happening. But my hunch is there is an overlap in someway which is why it saves 1 image(well partly) and fails to save the other 2 Any help would be greatly appreciated. Thanks, Vivek

Member Avatar
Member Avatar
+0 forum 4

Hello, I have a dll that I wrote and a driver program to call that dll. Both the programs were written in VC++ 2008 express edition. The program takes in 2 strings as a command line argument and passes it to the dll which prints the 2 strings in the standard output. The problem that I have is when I pass the 2 strings and execute the program I get the following Debug Assertion Failure Program:.... File:..\src\dbgheap.c Line:1317 Expression: _CrtIsValidHeapPointer(pUserData) This error also occurs only for certain command line arguments such as "C:\Test Folder\Test Folder" "C:\Test Folder" or "Winter Spring …

Member Avatar
Member Avatar
+0 forum 4

The End.