Results 1 to 8 of 8

Thread: My project is blowing up when I open the code

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    My project is blowing up when I open the code

    OK, now I am scared %#^$less. I have to deliver my app tomorrow. Been on it for months, all is going great. Final testing, and I haven't even changed anything for a while, but when I open the project I get a bunch of "Errors during load" for all my classes..
    Even worse, for a component that hasn't been touched in days, I just try to compile it and I get the MS VB error that it blew up and the project shuts down. I am pretty scared right about now??
    Please help.
    Thanks

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Re: My project is blowing up when I open the code

    more info, I get this in the log, see attachment.
    Attached Files Attached Files

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: My project is blowing up when I open the code

    That's not a nice situation.. the first thing I would do is check who you are logged in as - it you aren't an administrator that kind of error can come up quite often (I presume because controls are re-registered, even if they dont need to be).

    If you are already an administrator, try to re-register the relevant controls (using regsvr32), then load the project again.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Red face Re: My project is blowing up when I open the code

    thanks si for your advice. But I never logged off and I am the administrator. I am not sure what you mean by registering the controls. I thot you only registered DLLs, which isn't the problem, all the class objects within the project are giving me errors when I open the project. Also, all the classes are producing class.obj after the error message. This is so weird, and scary, I have no idea what happened. I am going for a beer and maybe the VB fairy will fix it tonight!

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Re: My project is blowing up when I open the code

    After more investigation I actually have 2 problems. My application as several components. The main one is getting error when I try to open the project..

    Class classname in control controlname is not a loaded control class.

    This message appears if Visual Basic finds a class name it doesnt recognize.

    Control controlname could not be loaded.

    This message appears if Visual Basic encounters an unknown type of control in the form description. Visual Basic creates a picture box to represent the unknown control, giving that picture box any valid properties from the unknown control description. When this message appears, a number of invalid property errors are likely to follow


    The classes in question are my Report Designers, but they all loaded fine a few hours ago..
    The second problem is an other component, I can open it fine, but when I try to compile it, it blows up on MS errors. This code has not been changed in days.
    I am very confused about this . Please send any ideas
    Thanks

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: My project is blowing up when I open the code

    It sounds like your project file does not have the required components (controls) and/or references selected, or that it does not contain all the required files (the designers/classes/..).

    I would recommend starting a new project, and setting up the references & components that you need. Once you have that, add the forms etc from your existing project, and hopefully it will work fine - if it does you can save the project, and either use the new one or open both vbp files in Notepad to copy across the relevant parts.

    Hopefully you have not saved any files that were loaded with errors - as that removes the links to what the components are supposed to be.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    193

    Re: My project is blowing up when I open the code

    thanks Si, I was pretty freaked this morning since I had to deliver the latest at noon. I luckily found another machine with VB on it(rare here). i just copied all my code and I could recompile no problem, with no reference changes. I think something corrupted my VB itself, or some registry thing. I am going to try to re-install VB, hope that fixes it.. I think I aged 5 years this morning..

  8. #8
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: My project is blowing up when I open the code

    I am glad that you fixed your problem Don't forget to mark this post as resolved
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


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