Search Results

Search: Posts Made By: SamRoj
Forum: Programming 08-10-2009
1,836
Posted By SamRoj
My exe takes more time for specied input
My application is coded in C++ and uses pro C to get data from oracle database. My executable file is taking more time to execute for some specified input. Is there any way to check where it spends...
Forum: Programming 07-15-2009
4,819
Posted By SamRoj
achenle, Thanks for the reply. I trying to...
achenle,
Thanks for the reply. I trying to fetch the file name and line number of the function call using the "backtrace() and backtrace_symbols()" Functions.
I'm not sure how good this can work.
Forum: Programming 07-14-2009
4,819
Posted By SamRoj
achenle, I can use __LINE__ and __FILE__ , I...
achenle,

I can use __LINE__ and __FILE__ , I have a problem in getting the required fine and line. As mentioned above I have to throw the file/line of the function call.

I have mentioned...
Forum: Programming 07-10-2009
4,819
Posted By SamRoj
Thanks for the reply. Below I copy the same...
Thanks for the reply.
Below I copy the same code with the line numbers.
The File.C is:
1 #include <iostream>
2 #include <string>
3 #include <sstream>
4
5 using...
Forum: Programming 07-09-2009
4,819
Posted By SamRoj
How to get the correct exception file/line.
The below code throws error in the line number 32 where the function is defined.

But How to find the line where the function is called.
That is I want to throw the error at the line number 43...
Forum: Programming 06-03-2009
20,571
Posted By SamRoj
How to get the sizeof char pointer
The below code throws the error, since the size of x = 19 is not passed to the cstrCopy function.

using namespace std;
static void cstrCopy(char *x, const char*y);
int main ()
{
char x[19];...
Forum: Programming 05-29-2009
1,892
Posted By SamRoj
Problem in getting the correct number from the string.
I have string named texts which consist of section label “BOOK-SEC-“. Section starts from 1 to n, where n is a number. For this example conside the value of n is 9. That is, the string variable looks...
Forum: Programming 04-28-2009
2,498
Posted By SamRoj
Thanks. This helped.
Thanks. This helped.
Forum: Programming 04-25-2009
2,498
Posted By SamRoj
Here is my daemonize code: void daemonize() ...
Here is my daemonize code:

void daemonize()
{
fclose(stderr);
fclose(stdin);
fclose(stdout);


switch( fork() ){
case 0:
break;
case -1:
throw...
Forum: Programming 04-24-2009
2,498
Posted By SamRoj
With daemonize() throwing exception.
I have a function for daemonize() and then I call this to my main(). Here below is my main...

int main(int argc, char **argv)
{
daemonize();
try{
............
if(fail()) throw...
Forum: Programming 04-20-2009
7,459
Posted By SamRoj
C++: how to check my directory disk space
I have a directory, and I write some files in to that. How to throw the error exception when my directory is full. i.e. there is no disk space
Forum: Programming 09-22-2008
1,707
Posted By SamRoj
code output(not believable)
#include<iostream>
using namespace std;

class base
{
public:
int bval;
base(){ bval=0;}
};

class deri:public base
{
public:
int dval;
deri(){ dval=1;}
};

void...
Forum: Programming 08-08-2008
7,930
Posted By SamRoj
I got some input through your links. Thanks....
I got some input through your links.

Thanks. Franklin and Iliyan.
Forum: Programming 07-30-2008
7,930
Posted By SamRoj
To convert UHF-8 to ASCII using C++
Hi,
I have two strings aaa, bbb which contains text in UTF-8 format.

I am using Solaris OS. zsh shell, emacs editor. In the shell the text are represented like "fff'''(((#ip##iii^q##1........
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 11:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy