when i try to use the class i wrote, i either get this:
*** glibc detected *** double free or corruption: 0x40236ff4 ***
and the proccess exits with an error code of 0;
or it segfaults. could someone look at my header file (with imp.) to give me some insight as to why its not working?
... (19 Replies)
I am using a structure defined as follows
struct gene_square
{
double *x;
double *y;
};I have class, with a member function which is a pointer of this type:
gene_square* m_Genes;I am allocating memory in the constructors like this:
m_Genes = new gene_square;
for (ii=0;... (1 Reply)
there seems not to be error in this segment. In some computers, it can work well. But in others, it will give a failure.
why it ocurrs and how to deal with it?
in a function:
if( *ver == NULL ) {
*ver = (vertex *) malloc(sizeof(vertex)); //this line
... (17 Replies)
Hi,
I am having a hell of a time getting this to work. So basically, I have opened a popen to run a program that is going to prompt an action to occur half way through, when it gets to this I need to create a separate process and do some stuff, then return to the original process. This works... (0 Replies)
Hi All,
I have a simple code which does some computation by matching string patterns.
In brief:
1. The code reads .dat and .txt files.
2. .dat files are huge text files and .txt files contain some important words.
3. I am just doing strstr to find the patterns.
4. The function returns the... (3 Replies)
I am using libxml2 library for XMl parsing and libxml++ is C++ wrapper over that. So I am using API of libxml++. I am creating my class and composing instance xmlpp::Node *pNode in that. my class also have funciton prepareXPathQuery() which creates query string and have other fucntion... (2 Replies)
I am facing a problem of memory corruption. The loop runs for the first time but does not go through the second time. What could be the problem?
for(int z=0;z<2;z++)
{
fp=fopen("poly.dat","r");
/*do something which reads this file into a 2D array*/
fclose(fp);
... (10 Replies)
Currently I test a shared library vendor provided in linux , the following is the simple source :
#include <iostream>
using namespace std;
extern int test1();
extern int test2();
int main()
{
cout << "hello world" << endl ;
return 0 ;
cout << "Test 1" << endl;
... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I'm doing aproximation of derivative called five-point stencil. For every value of x, in interval , in step... (0 Replies)
Discussion started by: antonija
0 Replies
LEARN ABOUT DEBIAN
gappletviewer
GAPPLETVIEWER(1) GNU GAPPLETVIEWER(1)NAME
gappletviewer - Load and runs an applet
SYNOPSIS
appletviewer [OPTION]... URL...
appletviewer [OPTION]... -code CODE
appletviewer [OPTION]... -plugin INPUT,OUTPUT
DESCRIPTION
The appletviewer tool loads and runs an applet.
Use the first form to test applets specified by tag. The URL should resolve to an HTML document from which the appletviewer will extract
applet tags. The APPLET, EMBED and OBJECT tags are supported. If a given document contains multiple applet tags, all the applets will be
loaded, with each applet appearing in its own window. Likewise, when multiple URLs are specified, each applet tag instance is given its
own window. If a given document contains no recognized tags the appletviewer does nothing.
appletviewer http://www.gnu.org/software/classpath/
Use the second form to test an applet in development. This form allows applet tag attributes to be supplied on the command line. Only one
applet may be specified using the -code option. The -code option overrides the URL form -- any URLs specified will be ignored.
appletviewer -code Test.class -param datafile,data.txt
gcjwebplugin uses the third form to communicate with the appletviewer through named pipes.
OPTIONS
URL OPTIONS
-debug
This option is not yet implemented but is provided for compatibility.
-encoding CHARSET
Use this option to specify an alternate character encoding for the specified HTML page.
APPLET TAG OPTIONS
-code CODE
Use the -code option to specify the value of the applet tag CODE attribute.
-codebase CODEBASE
Use the -codebase option to specify the value of the applet tag CODEBASE attribute.
-archive ARCHIVE
Use the -archive option to specify the value of the applet tag ARCHIVE attribute.
-width WIDTH
Use the -width option to specify the value of the applet tag WIDTH attribute.
-height HEIGHT
Use the -height option to specify the value of the applet tag HEIGHT attribute.
-param NAME,VALUE
Use the -param option to specify values for the NAME and VALUE attributes of an applet PARAM tag.
PLUGIN OPTION
-plugin INPUT,OUTPUT
gcjwebplugin uses the -plugin option to specify the named pipe the appletviewer should use for receiving commands (INPUT) and the one
it should use for sending commands to gcjwebplugin (OUTPUT).
DEBUGGING OPTION
-verbose
Use the -verbose option to have the appletviewer print debugging messages.
STANDARD OPTIONS
-help
Use the -help option to have the appletviewer print a usage message, then exit.
-version
Use the -version option to have the appletviewer print its version, then exit.
-JOPTION
Use the -J option to pass OPTION to the virtual machine that will run the appletviewer. Unlike other options, there must not be a
space between the -J and OPTION.
BUGS SEE ALSO AUTHOR 0.98 2010-07-05 GAPPLETVIEWER(1)