G
Gokul M
Guest
I am using a command line parsing program which is take the data from the input file and process data.
When I run with the debugger there is no problem but I cant pass the file (Well I dont know how to pass without command prompt). When I pass the file, the following error shows up and the program aborts.
practice.exe (Win32): Loaded C:\Users\USER\Documents\Visual Studio 2013\Projects\practice\Debug\practice.exe. Symbols loaded.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\ntdll.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\kernel32.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\KernelBase.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\msvcp120d.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\msvcr120d.dll. Cannot find or open the PDB file.
The thread 0x1e38 has exited with code -1073741510 (0xc000013a).
The program [7340] practice.exe has exited with code -1073741510 (0xc000013a).
the program is as follows
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
int main(int argc, char* argv[])
{
int n, cnt = 0;
string s, k;
fstream npf;
if (argc < 2) { cerr << "Usage: " << argv[0] << "<filename>" << endl; getchar(); return(1); }
npf.open(argv[2], ios::in);
while (npf.good())
{
getline(npf, s);
cout << endl << ++cnt;
}
getchar();
npf.close();
npf.clear();
return(0);
}
Kindly let me know asap.
Thanking you,
Gokul
With regards, Gokul M
Continue reading...
When I run with the debugger there is no problem but I cant pass the file (Well I dont know how to pass without command prompt). When I pass the file, the following error shows up and the program aborts.
practice.exe (Win32): Loaded C:\Users\USER\Documents\Visual Studio 2013\Projects\practice\Debug\practice.exe. Symbols loaded.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\ntdll.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\kernel32.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\KernelBase.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\msvcp120d.dll. Cannot find or open the PDB file.
practice.exe (Win32): Loaded C:\Windows\SysWOW64\msvcr120d.dll. Cannot find or open the PDB file.
The thread 0x1e38 has exited with code -1073741510 (0xc000013a).
The program [7340] practice.exe has exited with code -1073741510 (0xc000013a).
the program is as follows
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
int main(int argc, char* argv[])
{
int n, cnt = 0;
string s, k;
fstream npf;
if (argc < 2) { cerr << "Usage: " << argv[0] << "<filename>" << endl; getchar(); return(1); }
npf.open(argv[2], ios::in);
while (npf.good())
{
getline(npf, s);
cout << endl << ++cnt;
}
getchar();
npf.close();
npf.clear();
return(0);
}
Kindly let me know asap.
Thanking you,
Gokul
With regards, Gokul M
Continue reading...