• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

Using XMS with VB dos ver 1.0 pro edition

how do i compile/link programs in VB for dos ver 1.0 professional edition to use XMS memory ?
i encountered this problem because when running my compiled application and loading two forms i get an out-of-memmory error in module X.my compiled program is over 530k!
0
asaf_koren
Asked:
asaf_koren
  • 3
  • 2
1 Solution
 
asaf_korenAuthor Commented:
Edited text of question
0
 
asaf_korenAuthor Commented:
Adjusted points to 240
0
 
asaf_korenAuthor Commented:
Adjusted points to 250
0
 
kswinneyCommented:
I tried to do what you're trying to do several years ago.  Unfortunately, because of the way VB-DOS handles memory (or rather, doesn't handle it) it won't use XMS or EMS for its own storage.  You can, however, use XMS or EMS for storing your own data, freeing up conventional memory for VB-DOS.

Sorry, but I'm afraid there's not much you can do about it.
0
 
kswinneyCommented:
... however, if you design it to use "Chain" to switch back and forth between different forms, you can effectively reduce the amount of RAM being used at any given time.

You can't design apps in VB for DOS like you can in VB for Windows.  You can't have one big EXE that holds all the forms.

You need to modularize and use "Chain" to move between them.

HTH,

Ken.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now