Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataCombo Out Of Memory Error VB6

Status
Not open for further replies.

jolamb42

Programmer
Aug 23, 2001
26
US
Hello,

I have a VB6 form with a DataCombo control. My database is in SQL Server 2000. For the client receiving the error, the DataCombo is filled with 267 items.

If the client selects an item, or uses the scroll bar to view the list, there is not a problem. Same with using down arrow or page down keyboard buttons. If they scroll through the list with the scroll bar, but decide not to select anything by just clicking somewhere else on the form, the first "default" item is still selected and they can proceed as normal.

However, the weird problem comes when the client uses the down arrow on the actual DataCombo control and holds it down to scroll partway down the list. At that time, if they decide not to select anything by just clicking somewhere else on the form and try to proceed, they get an Out Of Memory error. It seems like the first "default" item is no longer selected. I'm sure I could write some code to check for this and select the default item again, that is not the problem.

My question is, does anyone know why this would behave so weirdly - the difference between dragging the scroll bar vs. holding down the down arrow?

Any insight would be appreciated!

Thx,
Jolynn
 

From the help files for Error Number 7, (Out of Memory)
[tt]
More memory was required than is available, or a 64K segment boundary was encountered. This error has the following causes and solutions:

You have too many applications, documents, or source files open.
Close any unnecessary applications, documents, or source files that are open.

You have amodule orprocedure that's too large.
Break large modules or procedures into smaller ones. This doesn't save memory, but it can prevent hitting 64K segment boundaries.

You are running Microsoft Windows in standard mode.
Restart Microsoft Windows in enhanced mode.

You are running Microsoft Windows in enhanced mode, but have run out of virtual memory.
Increase virtual memory by freeing some disk space, or at least ensure that some space is available.

You have terminate-and-stay-resident programs running.
Eliminate terminate-and-stay-resident programs.

You have many device drivers loaded.
Eliminate unnecessary device drivers.

You have run out of space for Publicvariables.
Reduce the number of Public variables.

For additional information, select the item in question and press F1.
[/tt]

Good Luck

 

jolamb42, have you read FAQ222-2244 yet? Did you get your problem fixed?

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top