Results 1 to 3 of 3

Thread: crazy error - win 2k server *** RESOLVED ***

  1. #1

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545

    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:
    1. On Error GoTo errlog
    2.    
    3.     MsgBox "Form_Initialize()"
    4.     Exit Sub
    5.  
    6. errlog:
    7.     Msgbox "Error #" & err.Number & vbcrlf & _
    8.                 "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!
    Last edited by ae_jester; Apr 22nd, 2004 at 01:34 PM.

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    Did you create a setup program to install it with? I'm just thinking that maybe you have an incompatible DLL or OCX somewhere.

  3. #3

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    Your reply got me thinking, maybe one of the controls is causing the problem. So I copied each control one by one onto the main form.

    It turns out that the MS Forms 2.0 Combo Box control is the culprit. For some reason, it seems to work on all computers except win2k server, hmmmmmm

    I guess I'll have to switch to the dumb combo box that ships with VB.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width