473,395 Members | 1,692 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,395 software developers and data experts.

could u say how to resolve "access violation reading Location" exception in VC++

Hi all,
i have developed a ".dll" in vc++, regarding to find out CRC32. and in my V.B 6.0 application i am calling that .dll.

If i run my v.b application it is working means.. i am able to find crc also. where as if i run the .exe of my v.b application, a runtime error is coming. the error is like this....
"Unhadled exception at 0x10001045(crc32example.dll) in latest.exe 0x0000005 Access violation reading locatioln 0x0017d000"

Actually i am new to VC++. and i am unable to come to an understand why this is behaving like this. even though, v.b application is able to call .dll and able to work properly, the exe of v.b applicaiton is not working...

could u please suggest me any way to resolve this issue....

Thanks:
regards:
raghunadhs.
Aug 16 '07 #1
3 3036
Banfa
9,065 Expert Mod 8TB
"Unhadled exception at 0x10001045(crc32example.dll) in latest.exe 0x0000005 Access violation reading locatioln 0x0017d000"
Are you sure you don't mean 0xC000005 as the exception number. This would be an attempt to access memory at an invalid address.

What you could do is use the MSVC++ debugger. When debugging a DLL you can specifiy an executable to run that will load the DLL in the project settings.

THen when the access violation occurs the debugger should halt the program, you will be able to locate the position in your code that is causing the problem and, possibly, see what that problem is by examining the value of the variables in use.

You could also set break points in the DLL code and step through the execution of your code.
Aug 16 '07 #2
Thanks Banfa,
I will do accordingly, what u suggested, and let u know feed back..
regards:
raghunadhs.
Aug 16 '07 #3
May i know why did u choose the crc to a dll rather than application. under what constrain. Plx do reply it will be helpful to me too.
Aug 21 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Kent P. Iler | last post by:
Hi, I have an application that watches a directory using FileSystemWatcher. When a specific type of files comes over, I want to parse it and then move it. However, these files can be somewhat...
1
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a...
0
by: Yanping Zhang | last post by:
Hi All, I need to use this C routine in python and there is a void pointer parameter in it: (this routine was written by someone else): myfunc(int a, (void *)userdata, bool b) I saw someone...
1
by: Yanping Zhang | last post by:
Here are more details about my codes, please help! The function declared in C: typedef void (WINAPI *PLEARNCALLBACKPROC) (unsigned int progress, unsigned int sigQuality, unsigned long...
3
by: Scott McDermott | last post by:
I have an application that is making an HTTP request with HttpWebRequest.GetRequest. Unless I set 'httpWebRequest useUnsafeHeaderParsing="true"' in the web.config, I get a 'The server committed a...
6
by: hadad.yaniv | last post by:
Hello, i am new to c++, i hav a vector of typed object: vector<Man*People; When i do a second pushback, even for the same object the program crash say: "An Access Violation (Segmentation...
2
by: Hetal | last post by:
I searched online and went through the forums as well, but i could not find a way to capture the database primary key violation exception. Any help will be much appreciated. Thanks, Hetal
3
by: =?Utf-8?B?eGJsZXNzaW5n?= | last post by:
Hello, I'm trying to communicate with a TEC Controller Newport 350B using their ..dll and VB.NET. I was able to use their example code with VB6. However, I've got following error when using...
4
by: Dilip | last post by:
Hi I am using the following WMI code to watch for the termination of a particular process. This code is running under Windows Vista. public void WaitForDeath() { using (AutoResetEvent...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.