Results 1 to 18 of 18

Thread: [RESOLVED] App suddenly changes size (0xc000007B)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Resolved [RESOLVED] App suddenly changes size (0xc000007B)

    So, I made an app on visual basic 2008, all cool and stuff, but now I'm experiencing a major problem. When I run my program it just works fine, but after some time (when I don't use the app) it suddenly changes from 42,5 KB to around 100 - 130 KB, and when I try to run it I get this error;

    The application failed to initialize properly 0xc000007B
    Click on ok to terminate the application.

    So if I extract it again (zipped it), it works again and after some time I get the error again, so the file in the ''zip'' doesn't change.

    I can ensure I got no virus whatsoever on my computer, nor in my application.
    I just reinstalled my pc to see if it fixed the problem, it didn't

    (Windows XP Home Premium)

    I attached the source code ;-).

    Thanks in advance,
    Jordy.
    Last edited by Imperoto; Jul 18th, 2010 at 04:11 AM. Reason: resolved

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: App suddenly changes size (0xc000007B)

    It's most likely your Timer. Memory management is kind of funky... but in this case, your creating 6 different variables during runtime and never disposing of them. Eventual the GC will pick them up, but it's apparently not quick enough.

    Try disposing them after they're used and see what you get. Also, you can force the Garbage Collector to pick up unused resources (GC.Collect), but for some reason, people say it's best not to.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Funny thing is, it just runs flawless on my laptop, any idea how that comes?

    So since I'm a kind of douchebag in visual basic, how could I do this?
    I mean, I need the timer to run all the time (program uses hotkeys).
    Could you please look into this?
    I'm sorry if I'm a pain in the ass, but I really would appreciate it ;-).

  4. #4
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by Imperoto View Post
    So, I made an app on visual basic 2008, all cool and stuff, but now I'm experiencing a major problem. When I run my program it just works fine, but after some time (when I don't use the app) it suddenly changes from 42,5 KB to around 100 - 130 KB, and when I try to run it I get this error;

    The application failed to initialize properly 0xc000007B
    Click on ok to terminate the application.

    So if I extract it again (zipped it), it works again and after some time I get the error again, so the file in the ''zip'' doesn't change.

    I can ensure I got no virus whatsoever on my computer, nor in my application.
    I just reinstalled my pc to see if it fixed the problem, it didn't

    (Windows XP Home Premium)

    I attached the source code ;-).

    Thanks in advance,
    Jordy.
    Hi Jordy,

    I'm not an expert on vb (far from it) but I took a look at your source code for you. 2 things really, 1. What is it you're trying to achieve? & 2. This error is popping up all over the place Error 10 'Settings' is not a member of 'My'. D:\Users\Wilko\Downloads\source\Form1.vb, it won't even run

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Norman,

    What I'm trying to archieve is;
    An user can save a website and press a hotkey to display it.

    Why?
    Because I'm also far from an expert, I'm learning out of this stuff.

    Settings?
    You just need to go to 'My Project' (Right-Above), double click it.
    Click on settings, it should say there is no file, click here to create one.
    So click and it should be done

  6. #6
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by Imperoto View Post
    Norman,

    What I'm trying to archieve is;
    An user can save a website and press a hotkey to display it.

    Why?
    Because I'm also far from an expert, I'm learning out of this stuff.

    Settings?
    You just need to go to 'My Project' (Right-Above), double click it.
    Click on settings, it should say there is no file, click here to create one.
    So click and it should be done
    I see lol. However the 'resources.rsx' file is missing from the folder you uploaded so still won't run. Can you attach it pls?

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Added, I'm not sure which resources file you needed so I've put all resources files I could find in one .rar file and attached it ;-).

    Why you need it so badly anyways?

  8. #8
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by Imperoto View Post
    Added, I'm not sure which resources file you needed so I've put all resources files I could find in one .rar file and attached it ;-).

    Why you need it so badly anyways?
    It won't load, says 'MyProject/Resources.resx' cannot be found

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by norman_bates View Post
    It won't load, says 'MyProject/Resources.resx' cannot be found
    Screw it, I attached the whole map, now it works

  10. #10
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by Imperoto View Post
    Screw it, I attached the whole map, now it works
    Tried it and it works fine mate on Vista.

    For XP if you haven't managed to sort it have you tried writing and saving strings to a .txt file and get the program to load the values for the buttons from there?

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Nope

    Look: I can run the program, but after a time the size changes from like 44 KB to 120-130 KB, at that point it won't work anymore. I can just do everything in visual basic, debug it etc.

    Nope, I didn't try, but these strings are the websites, so the button has no role in there, if it would works I just should add codes to Form_Load to check if a textbox is filled, if it's filled, show the command & label.
    Last edited by Imperoto; Jul 17th, 2010 at 10:49 AM.

  12. #12
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by Imperoto View Post
    Nope

    Look: I can run the program, but after a time the size changes from like 44 KB to 120-130 KB, at that point it won't work anymore. I can just do everything in visual basic, debug it etc.

    Nope, I didn't try, but these strings are the websites?
    By the sounds of it the program is saving the strings directly into the exe file and is causing an overflow of some kind that xp can't handle.

    I've not played about with loading text strings from txt files much before but I'm pretty sure that you if you save the web address as a string in the text file as something like "1. www.microsoft.com" then get button 1 to search the text file for "1." and load the text after it to the address bar and browse to the site you should be able to save yourself from getting the error?

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Yeah but before I can think about loading I need to think about saving. I really have no clue about how to do this, I guess I know HOW to save but not how I save it in the map where the app is saved, do you have any clue? Or anyone else?

    EDIT: Oh crap, Norman, I get the same error in your application now :S
    Last edited by Imperoto; Jul 17th, 2010 at 11:18 AM.

  14. #14
    Hyperactive Member
    Join Date
    May 2009
    Posts
    274

    Re: App suddenly changes size (0xc000007B)

    Quote Originally Posted by Imperoto View Post
    Yeah but before I can think about loading I need to think about saving. I really have no clue about how to do this, I guess I know HOW to save but not how I save it in the map where the app is saved, do you have any clue? Or anyone else?

    EDIT: Oh crap, Norman, I get the same error in your application now :S
    I'm googling create/read/write to txt files as we speak. I think I got a book somewhere too

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    No need to, I'll just install Windows Vista, screw this.

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: App suddenly changes size (0xc000007B)

    Sorry for the doublepost;

    Installed Vista, don't have this error anymore ;-)

    Problem solved.

  17. #17
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [RESOLVED] App suddenly changes size (0xc000007B)

    With regards to your attachment, from the size, I am fairly certain that you have included the compiled application. It is against forum rules to attach binary files. If you want to post a project then you MUST delete the 'bin' and 'obj' folders and then include EVERYTHING else in the archive.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  18. #18

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    26

    Re: [RESOLVED] App suddenly changes size (0xc000007B)

    Quote Originally Posted by jmcilhinney View Post
    With regards to your attachment, from the size, I am fairly certain that you have included the compiled application. It is against forum rules to attach binary files. If you want to post a project then you MUST delete the 'bin' and 'obj' folders and then include EVERYTHING else in the archive.
    Removed.

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