crazy error - win 2k server *** RESOLVED ***
Hi,
The following is a very strange and very frustrating problem I've been trying to solve for the past week!!!
My program installs fine on all OS's, and even opens up fine. In fact, everything works perfectly on all OS's except for Win2k Server. On Windows 2000 Server computers, it crashes as soon as I open up my options form (it does however let me open up other forms).
There is no code in the form activate or form initialize events, and there are no public or private variables declared at the top of the form. On the first line of the form_load event, i added a msgbox "Test", and when this form is opened, the message box does NOT get fired before the error "out of memory" is displayed, and the program crashes.
In another round of testing I added the following code to the Form_Initialize(), and Form_Activate() events
VB Code:
On Error GoTo errlog
MsgBox "Form_Initialize()"
Exit Sub
errlog:
Msgbox "Error #" & err.Number & vbcrlf & _
"Description: " & err.Description
This time, when I open up the options form, the message "Form_Initialize()" is displayed, followed directly by the same "Out of memory" error and program crash. The error message displayed is not from the built in error handler I added to either of these routines, so this tells me that the error is happening directly after the Form_Initialize() event and directly before the Form_Activate event.
My options form has a SSTab control with 7 tabs, a common dialog control, and maybe 30 or 40 other controls (text boxes, combo boxes, labels etc).
What the heck is going on here. I don't understand what could be causing the out of memory error and program crash.
One of the tech guys at the company where we are experiencing this problem mentioned something about installing the program as a service, because of RAM restrictions on programs on Win2K server. I don't know if that makes any sense to me or not, so maybe any of you can comment on this.
Please help, I'm going nucking futs here!