|
-
Jul 17th, 2010, 08:26 AM
#1
Thread Starter
Junior Member
[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
-
Jul 17th, 2010, 09:57 AM
#2
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
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jul 17th, 2010, 10:04 AM
#3
Thread Starter
Junior Member
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 ;-).
-
Jul 17th, 2010, 10:05 AM
#4
Hyperactive Member
Re: App suddenly changes size (0xc000007B)
 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
-
Jul 17th, 2010, 10:08 AM
#5
Thread Starter
Junior Member
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
-
Jul 17th, 2010, 10:15 AM
#6
Hyperactive Member
Re: App suddenly changes size (0xc000007B)
 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?
-
Jul 17th, 2010, 10:24 AM
#7
Thread Starter
Junior Member
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?
-
Jul 17th, 2010, 10:25 AM
#8
Hyperactive Member
Re: App suddenly changes size (0xc000007B)
 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? 
It won't load, says 'MyProject/Resources.resx' cannot be found
-
Jul 17th, 2010, 10:30 AM
#9
Thread Starter
Junior Member
Re: App suddenly changes size (0xc000007B)
 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
-
Jul 17th, 2010, 10:40 AM
#10
Hyperactive Member
Re: App suddenly changes size (0xc000007B)
 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?
-
Jul 17th, 2010, 10:44 AM
#11
Thread Starter
Junior Member
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.
-
Jul 17th, 2010, 10:51 AM
#12
Hyperactive Member
Re: App suddenly changes size (0xc000007B)
 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?
-
Jul 17th, 2010, 10:58 AM
#13
Thread Starter
Junior Member
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.
-
Jul 17th, 2010, 11:24 AM
#14
Hyperactive Member
Re: App suddenly changes size (0xc000007B)
 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
-
Jul 17th, 2010, 12:22 PM
#15
Thread Starter
Junior Member
Re: App suddenly changes size (0xc000007B)
No need to, I'll just install Windows Vista, screw this.
-
Jul 17th, 2010, 04:50 PM
#16
Thread Starter
Junior Member
Re: App suddenly changes size (0xc000007B)
Sorry for the doublepost;
Installed Vista, don't have this error anymore ;-)
Problem solved.
-
Jul 17th, 2010, 10:10 PM
#17
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.
-
Jul 18th, 2010, 04:11 AM
#18
Thread Starter
Junior Member
Re: [RESOLVED] App suddenly changes size (0xc000007B)
 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|