473,791 Members | 2,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

52 New Member
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(crc3 2example.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 3063
Banfa
9,065 Recognized Expert Moderator Expert
"Unhadled exception at 0x10001045(crc3 2example.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
raghunadhs
52 New Member
Thanks Banfa,
I will do accordingly, what u suggested, and let u know feed back..
regards:
raghunadhs.
Aug 16 '07 #3
gnanapoongothai
62 New Member
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
2977
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 large, and the FTP process isn't complete when I try to access the files. In those instances, an exception is thrown when I try to access the file.
1
4179
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 couple of tables in my database using INNER JOINS and the WHERE clause to specify the required constraints. However, I also want to read two fields from a *single* record from a table called 'Locations' and then apply one of these field's values...
0
1160
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 in his C++ wrapper used this routine in this way: myfunc(a, (void *)0x5a5a5a5a, b)
1
2324
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 carrierFreq, void *userData); UUIRTDRV_API BOOL PASCAL UUIRTLearnIR(HUUHANDLE hHandle, int codeFormat, char *IRCode, PLEARNCALLBACKPROC progressProc, void *userData, BOOL *pAbort, unsigned int param1, void *reserved0, void *reserved1);
3
9048
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 protocol violation. Section=ResponseStatusLine' error. Here is an example of the session that generates the error: --- snip --- GET <someURLHTTP/1.0
6
2934
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 fault) raised in your program"
2
3218
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
9347
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 VB.NET: "Access Violation Exception was unhandled. Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I have no problem when send commands to my TEC Controller (using "SendAsciiA" - see below...
4
6347
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 thisEvent = WatchForProcessDeath()) { WaitHandle.WaitOne(thisEvent);
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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
10426
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...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
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...
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
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.