473,804 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3518

fa***********@g mail.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***********@g mail.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<int v(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
2778
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 Application (.NET). I lauched a project 'Q815658XMLRead' (see the attached .cpp file below) and did the "Build" and I got the following 2 errors: c:\Documents and Settings\Scott H. Chang\My Documents\Visual Studio...
1
2255
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 'System.Xml.XmlException' occured in system.xml.dll Addtional Information: System error |Break| |Continue| I clicked on the |Continue| and I got the following: "c:\Documents and Settings\Scott H. Chang\My Documents\Visual Studio...
3
4468
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 site up to this server. Now I am getting the following error: Server Error in '/' Application. --------------------------------------------------------------------------------
2
2185
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 Interactive voice response telephone application. An unforeseen error occurs on one phone call. You terminate that phone call politely but you don't all of a sudden hang up the phone without warning on the other 400 callers that are on line at that...
2
4957
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 method may succeed one time and not another. I cannot find any reason why it would work one time and not another. The exception occurs every two or three calls to the web method. The service utilizes a COM component provided by PeopleSoft...
1
3010
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 works fine locally running the site locally with the sql server express edition. However, when I publish to an IIS site, I can see the login aspx page I created, but can't authenticate. I get an error listed below. Should an IIS server be able...
1
1194
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: 0xC0000005: Access violation reading location 0x00030000."
1
2899
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 file which includes some html code to populate html formatted content as the text of an asp:label (<asp:label>). The reading of the text file itself goes just fine ;however, this only occurs when I use an absolute file path which will not work of...
8
1992
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, NULL, CRect( 0,0,0,0), pParent, pNode->m_nFinsID) )
0
2011
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 ((string)(this.GetPropertyValue("Address1")));
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10603
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.