List Info

Thread: Calling application with parameters..




Calling application with parameters..
user name
2006-04-01 07:16:56
Hello all,
I have a trouble here,heres the story:
I create a database application and its a multiuser application..for the
reason of memory use in my application,i store several form for
inputting data in other application..the problem is,the 'other'
application for inputting data is must be cannot direct executed,it must
be executed from main application with passing parameters like user
information,password,etc..
The questions is,how to execute the other application which i created
for inputting data from main application,and passing parameters to them?
Any help i appreciated..Thanks.

Best regards,


Calling application with parameters..
user name
2006-04-01 23:39:41
Ridwan Haris wrote:
> Hello all,
> I have a trouble here,heres the story:
> I create a database application and its a multiuser application..for the
> reason of memory use in my application,i store several form for
> inputting data in other application..the problem is,the 'other'
> application for inputting data is must be cannot direct executed,it must
> be executed from main application with passing parameters like user
> information,password,etc..
> The questions is,how to execute the other application which i created
> for inputting data from main application,and passing parameters to them?
>; Any help i appreciated..Thanks.
>
> Best regards,

I'm having difficulty understanding the problem (and I'm usually pretty
good at determining what people are asking).  It sounds to me that you
want to know how to create an instance of a different application and
run it using parameters you pass to it.

I have two difficulties comprehending your scenario:

1)  It sounds like the two applications need to "talk" to each other.
That is, it sounds to me that the second application you are starting
needs to communicate with the application starting it.  If this is true,
you have to pick from any number of IPC mechanisms and let us know which
one you want to use.

2)  We don't know anything about the target application.  Does it even
accept parameters?  If so, is there a special format that has to be
followed?  Will anything being input from the source application be
considered an "illegal" character (i.e. pipe operations '|', redirection
operations '<' and '>', etc.)?&nbsp; If so, can the target application handle
input from 'stdin'?

--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

Safe C++ Design Principles (First Edition)
Learn how to write memory leak-free, secure,
portable, and user-friendly software.

Learn more and view a sample chapter:
http://www.CubicleSoft.com/SafeCPPDesign/

Calling application with parameters..
user name
2006-04-03 07:23:56
2006/4/1, Ridwan Haris <yuppies.netgmail.com&gt;:

>; Hello all,

Hello

> I have a trouble here,heres the story:

> I create a database application and its a multiuser application..for the
> reason of memory use in my application,i store several form for
> inputting data in other application..

I am not going to reply your other question, because it has been
replied by others, but I am curious about what kind of memory problems
are you talking about. Perhaps I have lost something, but I think
there is no need to have the input forms in another app.

If you tell us a bit more about your memory problems, I am sure that
they will be solved without using a second app.

For example, If you have a lot of forms, you should disable the
autocreation in the project options. Then you must create a form only
when you are going to use it, and release it as soon as you have
finished with it. This way you can have all the forms that you like in
the same app.

Hope it helps.

--
un saludo

Dario Guerrero
dariogfkualosw.com
dariogfgmail.com
Calling application with parameters..
user name
2006-04-03 08:34:35
I would backup Dario in his opinion...

We have applications that have from 10MB to 20MB exe files and we never had
memory problems by creating objects only when needed and freeing them as
soon as we are done with them...

-----Original Message-----
From: delphi-en@yahoogroups.com [mailto:delphi-en@yahoogroups.com]On Behalf
Of Dario Guerrero
Sent: Monday, April 03, 2006 9:24 AM
To: delphi-en@yahoogroups.com
Subject: Re: [delphi-en] Calling application with parameters..


2006/4/1, Ridwan Haris <yuppies.netgmail.com&gt;:

>; Hello all,

Hello

> I have a trouble here,heres the story:

> I create a database application and its a multiuser application..for the
> reason of memory use in my application,i store several form for
> inputting data in other application..

I am not going to reply your other question, because it has been
replied by others, but I am curious about what kind of memory problems
are you talking about. Perhaps I have lost something, but I think
there is no need to have the input forms in another app.

If you tell us a bit more about your memory problems, I am sure that
they will be solved without using a second app.

For example, If you have a lot of forms, you should disable the
autocreation in the project options. Then you must create a form only
when you are going to use it, and release it as soon as you have
finished with it. This way you can have all the forms that you like in
the same app.

Hope it helps.

--
un saludo

Dario Guerrero
dariogfkualosw.com
dariogfgmail.com


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: delphi-en-unsubscribe@yahoogroups.com
Yahoo! Groups Links






Calling application with parameters..
user name
2006-04-03 07:35:16
I agree entirely; having two applications actually takes up more memory than
one application with all the forms because delphi's memory manager shares
quite a bit of information. Then again, in this day and age of 64 128mb ram
your application must be really very heavy (or very badly written) to have
memory issues. You'd probably want to tell us what you are trying to achieve
and why you *think* you have memory problems



-----Original Message-----
From: delphi-en@yahoogroups.com [mailto:delphi-en@yahoogroups.com] On Behalf
Of Dario Guerrero
Sent: 03 April 2006 10:24 a
To: delphi-en@yahoogroups.com
Subject: Re: [delphi-en] Calling application with parameters..

2006/4/1, Ridwan Haris <yuppies.netgmail.com&gt;:

>; Hello all,

Hello

> I have a trouble here,heres the story:

> I create a database application and its a multiuser application..for the
> reason of memory use in my application,i store several form for
> inputting data in other application..

I am not going to reply your other question, because it has been
replied by others, but I am curious about what kind of memory problems
are you talking about. Perhaps I have lost something, but I think
there is no need to have the input forms in another app.

If you tell us a bit more about your memory problems, I am sure that
they will be solved without using a second app.

For example, If you have a lot of forms, you should disable the
autocreation in the project options. Then you must create a form only
when you are going to use it, and release it as soon as you have
finished with it. This way you can have all the forms that you like in
the same app.

Hope it helps.

--
un saludo

Dario Guerrero
dariogfkualosw.com
dariogfgmail.com


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: delphi-en-unsubscribe@yahoogroups.com
Yahoo! Groups Links







Calling application with parameters..
user name
2006-04-04 04:08:15
Vahan Yoghoudjian wrote:
&gt; I would backup Dario in his opinion...
>
>; We have applications that have from 10MB to 20MB exe files and we
> never had
> memory problems by creating objects only when needed and freeing them as
> soon as we are done with them...
I thought, with bigger exe files,the application will take much more
memory,so i decided to partitioned the application into several
parts..But based on your opinion i'm understand now..i'll created my
form dynamicly and relesed it when it doesnt needed anymore.
Thank u for all of your opinions,i appreciate that.

Best regards.




Calling application with parameters..
user name
2006-04-04 21:55:57
2006/4/4, Ridwan Haris <yuppies.netgmail.com&gt;:

>; I thought, with bigger exe files,the application will take much more
> memory,

Don't worry, it's a thougth that a lot of us have had ;) . You can
have a 40 kb app, that can use all the memory available in your pc, or
a huge app, that doesn't load all its stuff in memory and uses less
memory than the little one.

&gt; so i decided to partitioned the application into several
&gt; parts.

It can be a usefull technique in other situations, but yours is not
the appropiated one. Use the dinamically created forms and you will
see how your app startup time is increased and your memory
requirements lowered.

> But based on your opinion i'm understand now..i'll created my
> form dynamicly and relesed it when it doesnt needed anymore.

Remember not to create all the forms at application startup, only when
you need them.

&gt; Thank u for all of your opinions,i appreciate that.

Not at all ;)

--
un saludo

Dario Guerrero
dariogfkualosw.com
dariogfgmail.com
[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )