-
Jan 7th, 2008, 04:21 PM
#1
Thread Starter
New Member
[2008] compiler crash
Hi all
I have written a simple program that needs two arrays of 300,000 cells each. The program searchs each cell for certain criteria and returns an answer in a third array, again of length 300,000.
My compiler faults and usually vb itself crashes. This cannot be the computer as I have tried it on two top of the range computers.
Specifically the error says " VB compiler is unable to recover from the following error: system error &H800700008&
I believe my coding to be correct so I must be making some kind of stupid error. Any help you can provide would be gratefully appreciated.
Many thanks
amick
-
Jan 7th, 2008, 05:17 PM
#2
Re: [2008] compiler crash
did you try to do a clean on your project? Try that and see if the error persists.
-
Jan 7th, 2008, 06:13 PM
#3
Thread Starter
New Member
Re: [2008] compiler crash
Thanks for the prompt reply bmahler.
How do you go about doing a clean. I open vb and the project and get the compiler error in about thirty seconds.
-
Jan 7th, 2008, 06:50 PM
#4
Re: [2008] compiler crash
From the Build menu. Rebuild = Clean + Build
-
Jan 7th, 2008, 06:59 PM
#5
Thread Starter
New Member
Re: [2008] compiler crash
There is only two options under the build menu
1. build projectname
2. publish projectname.
I am using Visual basic 2008 express edition. Do i need to download additional software or buy additional software
tks
amick
-
Jan 7th, 2008, 07:08 PM
#6
Re: [2008] compiler crash
Right-click the menu/toolbar area and select Customize. On the Commands tab select the Build category, then drag one or more of the Clean items onto your Build menu. I don't have 2008 Express here but I'm assuming those options are available, just not displayed by default.
Alternatively you can simply go to your project folder and delete the bin and obj folders, which is all Clean does anyway.
-
Jan 7th, 2008, 07:11 PM
#7
Re: [2008] compiler crash
It may be that your installation is corrupt too, if the compiler itself is dying. Perhaps a reinstall of the IDE is in order.
-
Jan 7th, 2008, 07:37 PM
#8
Thread Starter
New Member
Re: [2008] compiler crash
Cannot be IDE as this is the second installation on a second computer.
Below is the three error messages that come up.
Error 2 The "Vbc" task failed unexpectedly.
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at Microsoft.Build.Tasks.Hosting.IVbcHostObject.EndInitialization()
at Microsoft.Build.Tasks.Vbc.InitializeHostCompiler(IVbcHostObject vbcHostObject)
at Microsoft.Build.Tasks.Vbc.InitializeHostObject()
at Microsoft.Build.Utilities.ToolTask.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) box3
Error 3 Visual Basic compiler is unable to recover from the following error: System Error &H80070008&
Save your work and restart Visual Studio.
Error 1 A problem occurred while trying to set the "Resources" parameter for the IDE's in-process compiler. External component has thrown an exception. box3
-
Jan 7th, 2008, 07:45 PM
#9
Re: [2008] compiler crash
It may be that your project is corrupt. You could try starting a new project and then dragging your existing types to that, using Add Existing Item to copy them across.
-
Jan 7th, 2008, 08:46 PM
#10
Frenzied Member
Re: [2008] compiler crash
I'm confused. Can you compile it? Is VB crashing at runtime? Have you thought maybe that it's because you have two arrays of 300,000 cells each? Do you really expect VB not to crash?
-
Jan 8th, 2008, 04:40 PM
#11
Thread Starter
New Member
Re: [2008] compiler crash
Have you thought maybe that it's because you have two arrays of 300,000 cells each? Do you really expect VB not to crash?
Brilliant. Why did I not think of that.
So basically my dataset must be less than than 600,000. Monte Carlo simulation requires the use and storage of over a billion pieces of data. Our in house computer program handles this in seconds.
-
Jan 8th, 2008, 04:51 PM
#12
Re: [2008] compiler crash
http://home.earthlink.net/~commander...errorcodes.htm
&H80070008 Not enough storage is available to process this command.
Hazarding a guess, I would guess that your in-house computer program handles it by not keeping 600,000 cells in-memory at any one time
-
Jan 8th, 2008, 04:57 PM
#13
Thread Starter
New Member
Re: [2008] compiler crash
Hi axion
So its about redesigning the program i.e putting in loops etc. If you declare an array of 300,000 but do not assign values to parts of the array does this still put a strain on the memory. You see the array values cannot change but I could post the array into the program piecemeal.
Tks
amick
-
Jan 8th, 2008, 05:25 PM
#14
Re: [2008] compiler crash
Short answer: yes, there would be a little strain. System memory management isn't a topic I'm particularly au fait with, so I'll give explanations a skip
Help is at hand though! The clever pixies at Microsoft have an article that introduces, at a very high level, the reader to Windows memory management: http://msexchangeteam.com/archive/20...07/415733.aspx [you don't have to read past the "How much memory does Exchange need?" section :P ]
-
Jan 8th, 2008, 05:35 PM
#15
Frenzied Member
Re: [2008] compiler crash
On my computer, I am loading 600,000 indices easily with no errors into an array in around 50 milliseconds. However, it may be failing at your end. Do you really need 300,000 indices in two arrays? Are you sure there isn't a better design or way to do this?
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
|