Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 9th, 2005, 05:21 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C++ Debug Problem

I wrote this C++ program to read and process text, I have about 30 text files to process, all of them have the exact same format. The program works fine all except 2 files, and when I tried to use the debugger in Visual C++, I get the following errors:

  CXX0017: Error: symbol "j" not found

  Unhandled exception in asc2mat.exe: 0xC0000005: Access Violation

I am relatively new at programming in C++ and don't really know how to use the debugger well. Any suggestions welcome.

Thank you very much.



Reply With Quote
  #2 (permalink)  
Old February 11th, 2005, 01:41 PM
Authorized User
 
Join Date: Feb 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rockyrak
Default

Hi,

This may be helpful to solve that problem.

Text from MSDN library:

One possible cause of this error is a case mismatch in the symbol name. Because C and C++ are case-sensitive languages, a symbol name must be given in the exact case in which it is defined in the source.

This error can occur when trying to typecast a variable in order to watch the variable during debugging. The typedef declares a new name for a type, but it does not define a new type. The typecast attempted in the debugger requires the name of a defined type.

Tips

Make sure the symbol is already declared at the point in the program where it is being used.
Use an actual type name to cast variables in the debugger, rather than a typedef-defined name.

Let me know whether u got it.



Ram
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug Problem monika.vasvani ASP.NET 2.0 Basics 0 June 9th, 2008 09:36 PM
Debug/Build Problem BigJim BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 4 June 9th, 2007 09:11 AM
first debug problem in my code haagen Java Basics 2 September 25th, 2006 03:28 AM
Debug problem Scootterp Access VBA 4 August 9th, 2006 10:30 AM
visoal studio.net debug problem matokuko VS.NET 2002/2003 2 November 12th, 2004 10:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.