Results 1 to 7 of 7

Thread: Runtime Error 126???? HELP PLEASE

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    51

    Question

    My Form is Ok in Debug Mode but after compiling the Programm shutdown with Runtime Error 126!
    What is this??
    Or where can i find a list of all VB Runtime Error codes!

    Help Please..

    cya

  2. #2
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    Do you have any User Controls?

    I have had in the past weird errors (not that one - but memory related ones) in a USerControl which forced me to take the following action in an Init method of my user control:

    Code:
      If Not Ambient.UserMode Then
        #If compiling = 1 Then
          Exit Sub
        #End If
      End If
    I did not bother to determine the root cause and I have not tried since installing SP4 (the problem was on SP3).

    I post this in case it helps you to at least get around the problem. Can you please post your final solution if you manage to get one?

    Cheers
    Paul Lewis

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The error codes are all in the VB help files.

    In this case, 126 is not actually defined by my copy of VB. What 3rd-party DLLs / OCXs are you using?

    Also, try checking the command-line options.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    126 is not listed

    It is listed by virtue of the covering note that MS put in the help file "Reserved for future use". Well I guess the future is upon us however the help files haven't been updated...

    The error I was getting (I checked just now) was Runtime error 7 Out of Memory" and I still get it with SP4.

    You have to painstakingly comment out parts of the code to determine which part the compiler or linker is having a problem with.

    The only reference to an error and 126 I found in MSDN was related to ODBC connections. Do you use ODBC or any Data Object at all?

    Regards
    Paul Lewis

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    51

    Runtime Error 126

    Hi..I will try it in the evening....now i have to go to Work.....Bääähhhh..:-)
    cya

  6. #6
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    From Windows SDK:

    126 The specified module could not be found. ERROR_MOD_NOT_FOUND


  7. #7

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    51

    ?

    Originally posted by LG
    From Windows SDK:

    126 The specified module could not be found. ERROR_MOD_NOT_FOUND

    And what should i do now???

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