Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?

Conditional runnig of modules

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2008, 08:20 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default Conditional runnig of modules

I don't know if this will be possible in the next release, but it would simplify LARGE projects...
The ability to call upon and run modules as if they were seperate programs,BUT not being seperate programs...
Imagine a "task" program...
Instead of programing every task into the exe code, we could program in a way that the "main" exe would execute a specified module ("task") as if it was internal...meaning that all global would still be Globals....
Exatcly as with the Modules, but instead of merging them into the exe, compile them into something else like dll or exe...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #2 (permalink)  
Old 10-11-2008, 01:37 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Cableguy

I agree there with you. I am busy with a Land Surveying program that exceeds 5mb.

Some of the functions in the program are not very often used and these one should be able to compile as an "external" program.

On the Workabout (from Psion), I have a Land Surveying program and here I will load all the "external" modules, but they are not really loaded. Only once the program needs a function in one of these "external" modules, will this module be loaded in memory. Saves on memory overheads!

Thanks
Michael
Reply With Quote
  #3 (permalink)  
Old 10-11-2008, 03:30 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Whilst a .NET application can load and execute separately copiled assemblies transparently sharing Globals between them is not possible. Furthermore once an application has loaded an assembly it cannot be unloaded until the application terminates (there are good code safety reasons for this behaviour) so memory usage would accumulate. Also the Compact Framework lacks most of this facility so unfortunately I don't think that your suggestion is possible - at least not in that transparent way.

Quote:
Originally Posted by ceaser View Post
Some of the functions in the program are not very often used and these one should be able to compile as an "external" program.
There is a relatively easy way to accomplish this. Compile a separate application that reads its Globals from a file on entry or gets them from its args() and writes anything to pass back to a file on exit. From the main app write the data file then Start the app using the Process object from my Threading library http://www.basic4ppc.com/forum/addit...-compiler.html. The Process object Exit event occurs when the Process exits and the data file then can be read by the main app. Although Threading needs to be optimised compiled to work correctly Process can work correctly in legacy mode.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FormLib and modules Cableguy Questions (Windows Mobile) 3 10-23-2008 09:26 PM
Determing if the app is runnig on a Desktop-PC or on a Handheld moster67 Questions (Windows Mobile) 4 10-23-2008 09:15 AM
Designer with modules derez Beta Versions 3 09-18-2008 05:02 PM
Modules - more information Erel Beta Versions 4 09-02-2008 05:42 AM
Conditional check failing for a Boolean type agraham Bug Reports 9 01-03-2008 12:22 PM


All times are GMT. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0