473,756 Members | 4,256 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ vs Java "new" (no flame war please!)

mlw
Do not take anything about this, it is not a flame or troll, while I'm not
new to Java I favor C++. However, I may need to use it in a contract
position, and am concerned that the restrictions it places on application
code.

Take, for instance, this C++ construct:

class foo
{
char *m_name;
....
void * operator new(size_t size, char *string);
}
void *foo::new(size_ t size, char *string)
{
size_t cbstr = strlen(string)+ 1;
size_t cb = cbstr + size;
foo * t = (foo *) malloc(cb);
char * name = (char *) &t[1];
strcpy(name, string);
t->m_name = name;
}

The above example is a methodology that can be used to reduce the CPU and
memory overhead of malloc. You my argue that this is not a valid concern,
but if you have 10 or 100 million objects, the malloc block overhead,
alone, make this worth while. Hint: This is actually a simplification, some
times malloc is not used at all, and a big array is pre-alocated and work
through it with each new.
Is there a way to create 10 to 100 million objects in Java with a reasonable
system configuration?

Apr 1 '07 #1
14 5690
Lew
mlw wrote:
(snipped description of custom 'new' operator)
Is there a way to create 10 to 100 million objects in Java with a reasonable
system configuration?
Sure, given the same considerations of available heap that you would have in
the C++ world.

Let's assume you want to create N objects where N is the largest number of
such objects that would fit in available memory.

List <Foostuff = new ArrayList <Foo(N);
for ( int x = 0; x < N; ++x )
{
stuff.add( new Foo( getAString() ) );
}
doSomethingWith ( stuff );

If you don't need them all in memory at once, it's even easier:

for ( int x = 0; x < N; ++x )
{
Foo foo = new Foo( getAString() );
doSomethingWith ( foo );
}

I posit the 'getAString()' method as where you'd obtain the equivalent of the
'char * string' in the C++ example. I assumed you'd use a different string for
each instance of Foo.

-- Lew
Apr 1 '07 #2
mlw
Lew wrote:
mlw wrote:
(snipped description of custom 'new' operator)
>Is there a way to create 10 to 100 million objects in Java with a
reasonable system configuration?

Sure, given the same considerations of available heap that you would have
in the C++ world.
Give or take, I guess.
>
Let's assume you want to create N objects where N is the largest number of
such objects that would fit in available memory.

List <Foostuff = new ArrayList <Foo(N);
That's one memory alloc, sure.
for ( int x = 0; x < N; ++x )
{
stuff.add( new Foo( getAString() ) );
}
The above code is exactly my problem with Java. In C++ I can overload new
and put all the objects anywhere I want, even in to one contiguous memory
block calling malloc merely once and combining the object and the string in
one allocation, for instance:

(Remember this is a simplification for example purposes, but the technique
is the important thing.)

unsigned char * myshared_block = shared_alloc(MA X_SIZE)
size_t curr_offset=0;

void *foo::operator new(size_t size, char * str)
{
size_t cbstr = strlen(str)+1;
size_t cb = size + cbstr;

foo * fooT = (foo *) &myshared_bl ock[curr_offset];
curr_offset += cb;
char *pstr = (char *)&foo[1];
strcpy(pstr, str);
fooT->str = pstr;
return (void *) fooT;
}

In the above code, I can pre-allocate a single memory block and pull objects
out of it until it is empty.

Every memory allocation has overhead, in GCC malloc, it is probably 4 bytes,
8 bytes on 64 bit systems. So, if you have fairly small objects, and lots
of them, a good chunk of memory will be eaten up with malloc overhead. If
you have a small object with a string, you will have two memory
allocations!

Obviously this is a rare problem, but it is a problem none the less.
doSomethingWith ( stuff );
>
If you don't need them all in memory at once, it's even easier:

for ( int x = 0; x < N; ++x )
{
Foo foo = new Foo( getAString() );
doSomethingWith ( foo );
}

I posit the 'getAString()' method as where you'd obtain the equivalent of
the 'char * string' in the C++ example. I assumed you'd use a different
string for each instance of Foo.

Apr 1 '07 #3
Lew
Lew wrote:
>Let's assume you want to create N objects where N is the largest number of
such objects that would fit in available memory.

List <Foostuff = new ArrayList <Foo(N);
mlw wrote:
That's one memory alloc, sure.
Lew wrote:
> for ( int x = 0; x < N; ++x )
{
stuff.add( new Foo( getAString() ) );
}
mlw wrote:
The above code is exactly my problem with Java. In C++ I can overload new
and put all the objects anywhere I want, even in to one contiguous memory
block calling malloc merely once and combining the object and the string in
one allocation,
You still need to calculate offsets into that block to fix the start of each
individual object. In fact, the code in your custom allocator uses more
memory and much more time than would the JVM for the equivalent Java class.
Every memory allocation has overhead, in GCC malloc, it is probably 4 bytes,
8 bytes on 64 bit systems. So, if you have fairly small objects, and lots
of them, a good chunk of memory will be eaten up with malloc overhead. If
you have a small object with a string, you will have two memory
allocations!
Your C++ class did a copy of the string. A Java class likely would not, since
Strings are immutable, so it would only do one allocation for the Foo object
and none for the String. Even if one did copy the String, the time overhead
of the Java allocation and copy would be much less than for the C++ code you
showed. For one thing, the Java code would only loop through the String once,
not twice as in your C++ code; it would have no need to calculate "strlen()".
The memory overhead would be no different since a copy is a copy is a copy.

But as I said, the Java code would not copy the String, so the point is moot.
One allocation and less memory overhead in the Java version.
Obviously this is a rare problem, but it is a problem none the less.
I don't see what the problem with Java is. What is the bad effect that
concerns you with Java?

Is it memory overhead? Objects in Java take up only as much space as they take.

Is it time overhead? Java object allocations run on the order of 10-20
machine cycles. Initialization of the object takes some time, perhaps, but
that would be true with your custom allocator as well.

Your description seems to delineate a problem with C++ that your custom
allocator handles, but I see nothing of this relevant to Java.

-- Lew
Apr 2 '07 #4
mlw <ml*@nospamnowa y.zzwrote:
>Take, for instance, this C++ construct:
void *foo::new(size_ t size, char *string)
{
size_t cbstr = strlen(string)+ 1;
size_t cb = cbstr + size;
foo * t = (foo *) malloc(cb);
char * name = (char *) &t[1];
strcpy(name, string);
t->m_name = name;
}
>The above example is a methodology that can be used to reduce the CPU and
memory overhead of malloc.
Trying not to flame C++ here, but I'm glad not to see very much of this kind
of code in Java.
>You my argue that this is not a valid concern
In some apps, it is. If you're extremely sensitive to exact memory
allocation, or need hardware access that Java doesn't give you (say, to SysV
shared memory or something), C++ is a good choice. I'd generally recommend to
do the specific sensitive bit in C++ and the rest in Java, but it'll depend
entirely on what the app actually does.
>Is there a way to create 10 to 100 million objects in Java with a reasonable
system configuration?
Any VM since 1.4 on modern hardware should not have a problem with this,
unless you're pretty time-sensitive.
--
Mark Rafn da***@dagon.net <http://www.dagon.net/>
Apr 2 '07 #5
mlw
Lew wrote:
Lew wrote:
>>Let's assume you want to create N objects where N is the largest number
of such objects that would fit in available memory.

List <Foostuff = new ArrayList <Foo(N);

mlw wrote:
>That's one memory alloc, sure.

Lew wrote:
>> for ( int x = 0; x < N; ++x )
{
stuff.add( new Foo( getAString() ) );
}

mlw wrote:
>The above code is exactly my problem with Java. In C++ I can overload new
and put all the objects anywhere I want, even in to one contiguous memory
block calling malloc merely once and combining the object and the string
in one allocation,

You still need to calculate offsets into that block to fix the start of
each
individual object. In fact, the code in your custom allocator uses more
memory and much more time than would the JVM for the equivalent Java
class.
That is simply not true on either account, I don't need to "fix" the start
of anything. There is no memory overhead for each class. The "allocation "
overhead time is nothing more than a simple integer addition.

>
>Every memory allocation has overhead, in GCC malloc, it is probably 4
bytes, 8 bytes on 64 bit systems. So, if you have fairly small objects,
and lots of them, a good chunk of memory will be eaten up with malloc
overhead. If you have a small object with a string, you will have two
memory allocations!

Your C++ class did a copy of the string.
Yes.
A Java class likely would not,
since Strings are immutable, so it would only do one allocation for the
Foo object
and none for the String.
Well, not seen in the example would be that the string is read from a file
into a local buffer which gets reused.
Even if one did copy the String, the time
overhead of the Java allocation and copy would be much less than for the
C++ code you
showed.
How is this possible?

char buffer[MAX_SIZE]

while(!feof(f))
{
if(fgets(buffer , sizeof(buffer), f))
{
new(buffer) foo();
}
}

Where is the allocation overhead that you are referring too?
For one thing, the Java code would only loop through the String
once, not twice as in your C++ code; it would have no need to calculate
"strlen()".
The memory overhead would be no different since a copy is a copy is a
copy.
Like I said, I was showing a technique that was simplified for example,
don't nit-pick the example because it is obviously much less sophisticated
then the actual application that uses the technique. In the real code, the
new operator is much more complex and reads the data itself.

>
But as I said, the Java code would not copy the String, so the point is
moot. One allocation and less memory overhead in the Java version.
Java would allocate a new string for each string. My code does not issue any
memory allocation for the string, it comes from a fixed length block and it
is combined with the object proper.

>
>Obviously this is a rare problem, but it is a problem none the less.

I don't see what the problem with Java is. What is the bad effect that
concerns you with Java?

Is it memory overhead? Objects in Java take up only as much space as they
take.
Try this:

allocate 20,000,000 objects with each object containing at least one string.
The memory footprint of the application has AT LEAST 160 megabytes of
overhead that can be virtually eliminated by pre-allocating 4 megabyte
blocks and sub-allocating out of that.

>
Is it time overhead? Java object allocations run on the order of 10-20
machine cycles. Initialization of the object takes some time, perhaps,
but that would be true with your custom allocator as well.
Java allocations take 10-20 machine cycles? Not on your life. In JIT
compiled code in which objects lose scope on exit of the function, yes,
that may be the overall time (it could even be much less), but objects that
live beyond a function scope have the overhead of a memory allocation.
>
Your description seems to delineate a problem with C++ that your custom
allocator handles, but I see nothing of this relevant to Java.
Java:

class foo
{
String m_test;

foo(String value)
{
m_test = value;
}
void print()
{
System.out.prin tln(m_test+"\n" );
}
};
public class test
{
public static void main(java.lang. String[] args)
{
int i=0;
try
{
foo arr[] = new foo[2000000];
for(i=0; i < 2000000; i++)
arr[i] = new foo(Integer.toH exString(i));
}
catch(OutOfMemo ryError e)
{
System.out.prin tln(e.getMessag e());
System.out.prin tln("Total object:" + i);
}
}
};
C++
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>

class foo
{
char *m_test;

public:
foo();
void * operator new(size_t size, void *p, size_t cb);
};

#define BLKSIZE 1024*1024

unsigned char *block = NULL;
size_t blk_size=0;
size_t blk_offset=0;
foo::foo()
{
}
void *foo::operator new(size_t size, void *p, size_t cb)
{
size_t totalcb = size+cb;

if(!block || totalcb (blk_size - blk_offset))
{
block = (unsigned char *) malloc(BLKSIZE) ;
blk_size = BLKSIZE;
blk_offset = 0;
}
assert(block);

foo *fooT = (foo *) &block[blk_offset];
blk_offset += size;
fooT->m_test = (char *) &block[blk_offset];
blk_offset += cb;
memcpy(fooT->m_test, p, cb);
return (void *) fooT;
}

int main()
{
int i=0;
foo ** ar = (foo **) malloc(sizeof(f oo*) * 2000000);

for(i=0; i < 2000000; i++)
{
char buffer[64];
size_t cb = snprintf(buffer ,sizeof(buffer) , "%X", i)+1;
ar[i] = new((void *)buffer,cb) foo();
}
printf("%d\n", i);
}
The results:
test@localhost: ~/scat$ time java test
Java heap space
Total object:914828

real 0m23.519s
user 0m21.009s
sys 0m2.004s
test@localhost: ~/scat$ time ./test
2000000

real 0m0.838s
user 0m0.724s
sys 0m0.064s
Apr 2 '07 #6
Lew
mlw wrote:
That is simply not true on either account, I don't need to "fix" the start
of anything. There is no memory overhead for each class. The "allocation "
overhead time is nothing more than a simple integer addition.
It is that addition to which I refer.

Lew wrote:
>Even if one did copy the String, the time
overhead of the Java allocation and copy would be much less than for the
C++ code you
showed.
mlw wrote:
How is this possible?
I was referring to your code:
void *foo::new(size_ t size, char *string)
{
size_t cbstr = strlen(string)+ 1;
size_t cb = cbstr + size;
foo * t = (foo *) malloc(cb);
char * name = (char *) &t[1];
strcpy(name, string);
t->m_name = name;
}
strlen() has overhead and strcpy() has overhead.
Well, not seen in the example would be that the string is read from a file
into a local buffer which gets reused.
In Java, it would be read into a new buffer each time, the allocation overhead
of which is negligible, and the copy from the file into the buffer would be
the only copy. There would not be the copy represented in your code by the
strcpy() call. The small overhead of the new buffer allocation is well offset
by the savings in the string copy time.
char buffer[MAX_SIZE]

while(!feof(f))
{
if(fgets(buffer , sizeof(buffer), f))
{
new(buffer) foo();
}
}

Where is the allocation overhead that you are referring too?
in the new operator that you wrote, particularly in the strlen() and strcpy()
calls, which add to the time and memory footprints.
Java would allocate a new string for each string. My code does not issue any
memory allocation for the string, it comes from a fixed length block and it
is combined with the object proper.
But the Java code would have one less copy of that string, and that would save
copy time. The fact that the memory is allocated at new time in Java is about
the same as the memory add at new time in your C++ example. A Java object
allocation is not much more than a memory limit add.
arr[i] = new foo(Integer.toH exString(i));

size_t cb = snprintf(buffer ,sizeof(buffer) , "%X", i)+1;
You might be comparing the speed of toHexString() to that of snprintf(), and
not allocation times.

You also are not comparing Java with custom allocators to Java without custom
allocators. I am not arguing that Java is faster than C++, only that custom
allocators in Java would not help the Java performance.

With Java you have the overhead of bytecode interpretation and multiple
threads running in the JVM at the same time, plus there is the startup time of
the JVM itself that you did not factor out. Consequently you have not
measured memory allocation time vs. memory allocation time and we can draw no
conclusions about the relative efficiency of the two schemes.

Put your timing loops inside the program, and while you're at it give the Java
Hotspot compiler a few hundreds of loops to settle in. Oh, and try java
-client vs. java -server. You've got to factor out the overhead of setup and
so on before timing comparisons make sense.

-- Lew
Apr 2 '07 #7
mlw
Lew wrote:
mlw wrote:
>That is simply not true on either account, I don't need to "fix" the
start of anything. There is no memory overhead for each class. The
"allocation " overhead time is nothing more than a simple integer
addition.

It is that addition to which I refer.

Lew wrote:
>>Even if one did copy the String, the time
overhead of the Java allocation and copy would be much less than for the
C++ code you
showed.

mlw wrote:
>How is this possible?

I was referring to your code:
>void *foo::new(size_ t size, char *string)
{
size_t cbstr = strlen(string)+ 1;
size_t cb = cbstr + size;
foo * t = (foo *) malloc(cb);
char * name = (char *) &t[1];
strcpy(name, string);
t->m_name = name;
}

strlen() has overhead and strcpy() has overhead.
Only CPU overhead, and like I said, this is a simplification.
>
>Well, not seen in the example would be that the string is read from a
file into a local buffer which gets reused.

In Java, it would be read into a new buffer each time, the allocation
overhead of which is negligible, and the copy from the file into the
buffer would be
the only copy. There would not be the copy represented in your code by
the
strcpy() call. The small overhead of the new buffer allocation is well
offset by the savings in the string copy time.
>char buffer[MAX_SIZE]

while(!feof(f) )
{
if(fgets(buffer , sizeof(buffer), f))
{
new(buffer) foo();
}
}

Where is the allocation overhead that you are referring too?

in the new operator that you wrote, particularly in the strlen() and
strcpy() calls, which add to the time and memory footprints.
strlen and strcpy never call malloc. The function strdup does call malloc.
>
>Java would allocate a new string for each string. My code does not issue
any memory allocation for the string, it comes from a fixed length block
and it is combined with the object proper.

But the Java code would have one less copy of that string, and that would
save
copy time. The fact that the memory is allocated at new time in Java is
about
the same as the memory add at new time in your C++ example. A Java object
allocation is not much more than a memory limit add.
> arr[i] = new foo(Integer.toH exString(i));

size_t cb = snprintf(buffer ,sizeof(buffer) , "%X", i)+1;

You might be comparing the speed of toHexString() to that of snprintf(),
and not allocation times.
I think you are very confused about memory allocation in Java, it is not
trivial when it exceeds certain limits or exists outside function scope.
Just because you have no control over how Java does this, does not mean it
is something you don't need to know about.

When I change the lines to :
arr[i] = new foo("Test:"+i);
and
size_t cb = snprintf(buffer ,sizeof(buffer) , "Test:%X", i)+1;

In the Java and C++ code, respectively, I get pretty much the same results:
test@localhost: ~/scat$ time ./test
2000000

real 0m1.020s
user 0m0.860s
sys 0m0.092s
test@localhost: ~/scat$ time java test
Java heap space
Total object:741838

real 0m19.178s
user 0m16.893s
sys 0m1.728s
Apr 2 '07 #8
mlw
Mark Rafn wrote:
mlw <ml*@nospamnowa y.zzwrote:
>>Take, for instance, this C++ construct:
void *foo::new(size_ t size, char *string)
{
size_t cbstr = strlen(string)+ 1;
size_t cb = cbstr + size;
foo * t = (foo *) malloc(cb);
char * name = (char *) &t[1];
strcpy(name, string);
t->m_name = name;
}
>>The above example is a methodology that can be used to reduce the CPU and
memory overhead of malloc.

Trying not to flame C++ here, but I'm glad not to see very much of this
kind of code in Java.
Its not pretty, not at all, but it is the sort of code that can make the
difference between running or not running when necessary or withing the
time requirements. Fortunately, you can write it, test it, make sure it
works, then hide it in a library where newbees can't screw around and break
it.
>
>>You my argue that this is not a valid concern

In some apps, it is. If you're extremely sensitive to exact memory
allocation, or need hardware access that Java doesn't give you (say, to
SysV
shared memory or something), C++ is a good choice. I'd generally
recommend to do the specific sensitive bit in C++ and the rest in Java,
but it'll depend entirely on what the app actually does.
That's sort of why I posted the thread. I may need to do some "interestin g"
things in Java and was kind of looking to see if anyone could come up with
a good trick or two.
>
>>Is there a way to create 10 to 100 million objects in Java with a
reasonable system configuration?

Any VM since 1.4 on modern hardware should not have a problem with this,
unless you're pretty time-sensitive.

To address the "time-sensitive" comment, many times I hear that the machines
are fast enough that you don't need to worry about performance, I have to
say this is the same argument for the 4 day work week. "Soon, we'll be
productive enough that we'll only have to work 4 days a week." That was the
dream and the myth. The problem with that line of thought is that as
capability is increased, so are expectations. I don't know about you, but
the 4 day work week hasn't come to my corner of the globe.

If you make a program that takes an hour to do something, and someone comes
along and writes one that takes 5 minutes, you lose, no matter what the
program is written in.
Apr 2 '07 #9
Lew
mlw wrote:
real 0m1.020s
user 0m0.860s
sys 0m0.092s
test@localhost: ~/scat$ time java test
Java heap space
Total object:741838

real 0m19.178s
user 0m16.893s
sys 0m1.728s
You're still not timing memory allocation but JVM startup and other factors.

-- Lew
Apr 2 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3189
by: novel | last post by:
Hi, i wrote a java program, that create a rdf file parsing a file tree. On the last step the shockwaves and gifs are checked and the byte sizes are written in the rdf file as nodes. The 1. Problem: A java.lang.OutOfMemoryError is throwm. Sometimes on the 45 shockwave, sometimes on the 53 shockwave...
4
2859
by: SCOTT DELIBAC | last post by:
Can Anyone Help?? I have this program which is listed below. I want to take the grades that the students have assigned to them, and assign the letter grades a numeric value so that I can calculate their GPA. I just have no idea how I am supposed to do that?? Can anyone HELP!!! import javax.swing.*; import java.util.*; public class GradePoint { public static void main(String args) {
2
1358
by: Mondo Dynamo | last post by:
A friend of mine is learning java as part of a Business Studies Degree and is finding it very hard to get to grips with. She has an assignment coming up soon and needs some help, she is offering a pretty unique reward, if you are interested please visit http://www.mondodynamo.com/hazeljava.htm Thanks in advance for any help you can offer. --
16
1690
by: codemonk | last post by:
Hi all, Is there anyone else on this board that feels Extreme Programming (although) making some great points is a little overcooked, extreme and just plain nonsense at times? Stede
3
3402
by: andy | last post by:
I am starting a new application, it needs to use db such as access or msde. I know I can do this easily in c# or Java but my question is can I distribute a package as easy if it is created with java and say derby db as I can with windows based. It needs to be click to install and thats it, no exceptions. To date I have done this with vb and c++ with access and have had excellent success. I really want to make the transistion to java...
1
1648
by: Vishuonline | last post by:
Guys, I have had some experience in working with webservices created in .NET but this is the first time I am trying out one made in Java. When I run the wsdl exe to create a proxy class for the wsdl provided it throws the following error. Error: Unable to import binding 'CosmosXXXXXBinding' from namespace 'urn :XXXXX'.
3
1470
by: siddhu085 | last post by:
hi! i'm new to java script. i'm doing a web page, where i can increment the value of a text field by pressing a button. Each time i press the button, the value in the text field should be incremented i wrote a code for this and it returned an error Line: 9 Char: 2 Error: Object Expected Code: 0
1
1205
by: kprojects | last post by:
Hello, Im creating an applet in which the user has to log in, and after he did this with the correct login details he will be redirected to a java page with his account details (Just another page in the applet). Because this is my very first Big applet i have no idea what's the easiest way to do this. I thought about setting every variable's visibility false but that would be a lot of work. If you guys know an easier way, please let me know!...
4
1172
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Hello all, I'm trying to convert a Java Genetic Programming program to C#. I don't know how to convert the following Java code: Object choice = functionSet.getSelectedItem(choice)).value(); Class cls = ((ProgramChoice) choice; function = (Function) cls.newInstance(); The object "choice" shows that a Subtraction class (i.e. "sub") was selected,
2
3960
by: lilyumestar | last post by:
This project is due by Tuesday and I haven't even gotten half of it done. Can anyone please help me with this Exception error? I've been trying to figure it out for several hours Error Message "Main" Java.lang NullPointerException at Project1.sortingByZipCode<Project1.java:80> at Project1.main<Project1.java:31> Here is the Source Code
0
9287
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9857
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.