[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.
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.
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 ;-).
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
Imperoto
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
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 ;)
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
Imperoto
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?
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? :p
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
Imperoto
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? :p
It won't load, says 'MyProject/Resources.resx' cannot be found
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
norman_bates
It won't load, says 'MyProject/Resources.resx' cannot be found
Screw it, I attached the whole map, now it works ;)
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
Imperoto
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?
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.
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
Imperoto
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?
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
Re: App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
Imperoto
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
Re: App suddenly changes size (0xc000007B)
No need to, I'll just install Windows Vista, screw this.
Re: App suddenly changes size (0xc000007B)
Sorry for the doublepost;
Installed Vista, don't have this error anymore ;-)
Problem solved.
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.
Re: [RESOLVED] App suddenly changes size (0xc000007B)
Quote:
Originally Posted by
jmcilhinney
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.