473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

vc++ 2005 unhandled exception error: settings


I was able to solve the problem in vc++5 by changing the vc++
settings. ButI can't find the same options in vc++ 2005. I have a lot
of big arrays! "Unhandled exception at 0x0040c247 in jan7.exe:
0xC0000005: Access violation reading location 0x00030000."

Jan 8 '07 #1
2 3497

fa***********@gmail.com skrev:
I was able to solve the problem in vc++5 by changing the vc++
settings. ButI can't find the same options in vc++ 2005. I have a lot
of big arrays! "Unhandled exception at 0x0040c247 in jan7.exe:
0xC0000005: Access violation reading location 0x00030000."
Lucky you! I bet there is an option to make your program enter the
debugger. In that case you can examine the fault, correct it and
finally get a working program.

/Peter

Jan 8 '07 #2
fa***********@gmail.com schrieb:
I was able to solve the problem in vc++5 by changing the vc++
settings. ButI can't find the same options in vc++ 2005. I have a lot
of big arrays! "Unhandled exception at 0x0040c247 in jan7.exe:
0xC0000005: Access violation reading location 0x00030000."
Why do you think that you need more memory? The OS gives your programm all
memory when you use new or malloc().
However, the stack space is limited. If you have huge arrays that use
automatic storage, then that might be your problem.

Compiler options to increase the stack space are offtopic here and best
asked in a compiler specific newsgroup.

Instead, you can allocate your arrays on the free store where you can have
larger arrays without problems:

#include <vector>

void function()
{
std::vector<intv(1000);
// instead of: int v[1000];
}

--
Thomas
http://www.netmeister.org/news/learn2quote.html
Jan 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SHC | last post by:
Hi all, I read the Microsoft KB Q815658 "How to read the XML data from a file using Visual C++ .NET" and tried to follow the steps of executing its source code in my VC++ .NET 2003 under Console...
1
by: SHC | last post by:
Hi all, I did the "Build" on the attached code in my VC++ .NET 2003 - Windows XP Pro PC. On the c:\ screen, I got the following: Microsoft Development Environment An unhandled exception of type...
3
by: eswanson | last post by:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode. I created a new site on a windows 2003 server and copied the pre-compiled...
2
by: Bob | last post by:
I MUST be able to trap unhandled exceptions, bring the thread to a routine that then closes the thread on which the execption occurred without closing or affecting the other threads. Think of an...
2
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web...
1
by: Milton Snider | last post by:
I installed visual studio 2005 and created a website. I turned on the forms authentication and allowed the system to create the aspnetdb.mdf file for me under the App_Data directory. Everything...
1
by: farshid.roumi | last post by:
I was able to solve the problem in vc++5 by changing the vc++ settings. ButI can't find the same options in vc++ 2005. I have a lot of big arrays! "Unhandled exception at 0x0040c247 in jan7.exe:...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
8
by: Daniele Piccinini | last post by:
Hi all, In my vc++ 2005 dialog based application i need to use a comunication activex component in a secondary thread: CFINSAxEFS* pNewAx = new CFINSAxEFS(); if ( !pNewAx->Create( NULL,...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.