VB5 problem: Too many local, nonstatic variables 
Author Message
 VB5 problem: Too many local, nonstatic variables

Hi there,

After converting a VB 3 project to VB 5 and changing several 16-bit calls
to 32-bit calls a real annoying problem occured and was not solvable with
the given help information. The project contains straight VB forms and
modules with 3 simple custom controls.

I think the trickiest elements of it are the rather large data structures
(largest of them is 22 kB, globally defined), the number of different data
elements in that structure (somewhere around 400 items with average name
length of about 12 characters) and there are some fixed string elements in
it, which could be a problem with ASCII / UNICODE. This largest data
structure is being used for input and output to a 32-bit DLL, which uses 2
byte alignment. I tried several trim-down situations, but with no effect.

This project did run without any problem on VB 3, but with VB 5 I can't
compile it anymore. I thought the memory capacity of VB 5 would be more,
not less. The mentioned error "Too many local, nonstatic variables" occurs
with the given large data structure highlighted. But the help information
suggests only to change local nonstatic variables to static ones. Since the
large data structure itself is global (public) defined and there are just a
few local nonstatic variables (about 10), I can't understand what to

Thanks for any helpful suggestions.

Wed, 05 Apr 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Too many local, nonstatic variables...

2. Too Many Local, Nonstatic Variables

3. Error: Too many local nonstatic variables

4. Too many local, nonstatic variables

5. Too many local, nonstatic variables

6. Problem:VB5 and C-Dll with TLS variable under Win95

7. vb5 i am having problems with lost variables

8. referencing a local variable in the calling procedure from a nested procedure

9. Modifying variables using the Locals Window

10. Too many local, non-static variables

11. Would like to get value from local static variable

12. How to initialize a local static variable?


Powered by phpBB® Forum Software