Re: [2008] compiler crash
did you try to do a clean on your project? Try that and see if the error persists.
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.
Re: [2008] compiler crash
From the Build menu. Rebuild = Clean + Build
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
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.
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.
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
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.
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?
Re: [2008] compiler crash
Quote:
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.
Re: [2008] compiler crash
http://home.earthlink.net/~commander...errorcodes.htm
Quote:
&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 :)
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
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 ]
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?