473,785 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Split a large application

Nov 13, 2007

Hi all

I have an application that comprises of three modules.

Initially a screen is displayed. Upon selection from a menu on this screen,
module 1, module 2 or module 3 is invoked. Please note here that some
variables defined as public in the initial screen are used by the modules.

Now my question is that is there a way I can split the application. If yes
what should I do so that the EXE is as small as possible.

Thank you.

Mike TI
Nov 13 '07 #1
7 1146
On Nov 13, 8:37 pm, "Mike TI" <tanv...@creati vepk.comwrote:
Nov 13, 2007

Hi all

I have an application that comprises of three modules.

Initially a screen is displayed. Upon selection from a menu on this screen,
module 1, module 2 or module 3 is invoked. Please note here that some
variables defined as public in the initial screen are used by the modules.

Now my question is that is there a way I can split the application. If yes
what should I do so that the EXE is as small as possible.

Thank you.

Mike TI
What do you mean by split and why exactly do you want to split the
application? I'm guessing this is old old legacy application, which in
my opinion it's framework should either be kept as-is with minimal
changes (to prevent subtle bugs from creeping in) or to rewrite it
with a new "split" framework. Changing an application's structure is
rather dangerous (imo) and shouldn't be done without a very good
reason.

Thanks,

Seth Rowe

Nov 13 '07 #2
"Mike TI" <ta*****@creati vepk.comwrote in
news:uN******** *****@TK2MSFTNG P04.phx.gbl:
Now my question is that is there a way I can split the application. If
yes what should I do so that the EXE is as small as possible.

You can load parts of the application dynamically using pluggable DLLs.
Very easy to do in .NET once you understand how reflection works.
Nov 13 '07 #3
Seth

Completely my idea, this to show that the answer from Spam Catcher is that
completely not.

:-)

Cor

Nov 13 '07 #4
Wit the information given by the TS i believe that Spam Catcher`s answer is
pretty good , i could have given the same answer

Fact is that using Reflection wil give him a smaller exectutable , faster
startup of the main executable , a modulair design ( wich is enforced by the
interfaces that need to be used with reflection ) and even the posibility
to upgrade the main app by just simply extending some dll`s ( plugin
design )

Ofcourse the TS could also split his app to a multi tier design ( if
possible ) or what we do in our curent project create a main interface
executable that starts child executables each with there own specific tasks
..

"There are many roads to Rome , but if i need to bring something to France
first it is foolish to go through Germany"

So unless the TS gives some more detailed info about how the curent state is
, requirments , current problems etc etc etc every answer given here could
be striked away as a wrong answer if you have enough fantasy to fill in the
above gaps

just my thoughts :-)

Michel

"Cor Ligthert[MVP]" <no************ @planet.nlschre ef in bericht
news:65******** *************** ***********@mic rosoft.com...
Seth

Completely my idea, this to show that the answer from Spam Catcher is that
completely not.

:-)

Cor

Nov 14 '07 #5
Michel,

Is it not more efficient to make first from the modules non static Classes
if real modules are used as written by the OP.

That would in my idea be a better start, however you was asking about more
information and that was in my idea the best to do before giving an answer.
What do you mean by split and why exactly do you want to split the
application? I'm guessing this is old old legacy application, which in
my opinion it's framework should either be kept as-is with minimal
changes (to prevent subtle bugs from creeping in) or to rewrite it
with a new "split" framework. Changing an application's structure is
rather dangerous (imo) and shouldn't be done without a very good
reason.

Cor
Nov 14 '07 #6
Sorry for mixing you and Seth

Please read my message how it was intended.

Cor
Nov 14 '07 #7
Well i already thought your previous answer was a bit odd :-)

But i also hope you get my point , Seth is making an asumption of what the
situation of the TS is , if he is right well then he might point him in the
right direction with his provided answer .

However the TS did not provide enough info, so it could be that Spam
catcher`s answer is more right as Seth`s as it is aiming at a total
different situation ,
that is the situation where the program can be easily broken up in self
containing modules and started when needed .

As i mentioned above in the thread there ar more design posibility`s to
acomplish the TS`s goal ( creating a smaller executable ) however wich one
i would choose would depend on the situation, wich is by this time unknown
to all of us.

Regards

Michel Posseth

"Cor Ligthert[MVP]" <no************ @planet.nlschre ef in bericht
news:B6******** *************** ***********@mic rosoft.com...
Sorry for mixing you and Seth

Please read my message how it was intended.

Cor

Nov 14 '07 #8

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

Similar topics

5
27203
by: Blue Ocean | last post by:
In short, it's not working right for me. In long: The program is designed to read numbers from an accumulator and speak them out loud. Unfortunately, the class that contains the method to read off large numbers is only for integers. My intention is to split a String across the Regex of ".". However, this code does not work: private void doRealValueOf(String text) {
14
2157
by: Luka Milkovic | last post by:
Hello, I have a little problem and although it's little it's extremely difficult for me to describe it, but I'll try. I have written a program which extracts certain portions of my received e-mail. The content of the e-mail is actually predictable, it has one very long list of numbers, something looking like this:
12
5687
by: Martin Dieringer | last post by:
I am trying to split a file by a fixed string. The file is too large to just read it into a string and split this. I could probably use a lexer but there maybe anything more simple? thanks m.
3
1544
by: Bruce Acciavatti | last post by:
I've split a rather large Access2000 database that resides on a network drive, by keeping the back-end on the network drive and placing the front-end on the client's hard drive, linked to it. Both front-end and back-end dbs are then compacted to save space. This is a normal procedure, but when I run the database now it performs much, much slower than the old unsplit version of the database, which is unacceptable. I have had to back off...
2
3614
by: Curious Joe | last post by:
I have some files that are anywhere from 3GB to 9GB and I need to split them down to a series of smaller files similar to what the "split" command in linux can do. Unfortunately, I do not have access to a linux machine right now. I have been told that a program could be written in C/C++ that would do this very quickly. Can anyone point me to a tutorial or how-to that will teach me to write a quick program do accomplish this? for...
6
24158
by: ivan.perak | last post by:
Hello, im a beginner in VB.NET... The thing i would like to do is as it follows.... I have a text file (list of names, every name to the next line) which is about 350000 lines long. I would like to split it and create a new file at every lets say 20000 lines... so, the directory output would have to be something like this:
2
2338
by: Brian K. | last post by:
I've read several posts on this problem, since it's happening to me right now. Can't seem to get rid of this. Using A2K2 on a large XP network. PC front ends linked to a backend on a shared folder on server. Things worked great for a while (couple of months), and then last month I suddenly lost the ability to make changes to forms or code, getting the exclusive access warning. This happens even when no one is on the backend through...
6
8550
by: Bob Bedford | last post by:
Hi all, I've an XML file that takes more than the hosting time limit to be readed by a PHP script. What I'd like to do is split the large XML file (can be more than 30MB) in little parts and keep the header for every file. Here is the idea:
0
1076
by: pqow7747 | last post by:
Hi, I have an application that send a pre encoded h264 file over the network. When i send them, the receiver decode it and display it on his screen. The problem is that when i have a large sequence, the rtpsender is not able to send it. I am looking a way to split this video.Now i am send a MemoryStream which holds the video sequence. I tried to split this MemoryStream but the receiver doesn't accept it as video format. How can i create rtp...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10329
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...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
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,...
1
7500
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
6740
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
5381
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.