473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Violation at addres....???

Hi,

I'm writing a C# Library that interacts with an C DLL, the resulting DLL is
used by an application and it works fine on my PC but when i copy the
resulting DLL to another PC running the same application it gives an error

Access violation at address ..... in module ..... Read of address 0000000

Help!
Nov 16 '05 #1
7 4863
It looks like you are trying to read a null pointer somewhere. It would
be impossible to say what is causing it, but you obviously have a reference
set to null somewhere and you are trying to access it (in your unmanaged
code).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GeRmIc" <Ge****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi,

I'm writing a C# Library that interacts with an C DLL, the resulting DLL
is
used by an application and it works fine on my PC but when i copy the
resulting DLL to another PC running the same application it gives an error

Access violation at address ..... in module ..... Read of address 0000000

Help!

Nov 16 '05 #2
It looks like you are trying to read a null pointer somewhere. It would
be impossible to say what is causing it, but you obviously have a reference
set to null somewhere and you are trying to access it (in your unmanaged
code).

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GeRmIc" <Ge****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi,

I'm writing a C# Library that interacts with an C DLL, the resulting DLL
is
used by an application and it works fine on my PC but when i copy the
resulting DLL to another PC running the same application it gives an error

Access violation at address ..... in module ..... Read of address 0000000

Help!

Nov 16 '05 #3
Hi,

If what you say is the case then why does it work perfectly on my PC.

Both the PCs have the same OS & patches installed. Runs the same application
except that my PC has Visual Studio 2003 installed and the other has the dot
net framework installed.
Nov 16 '05 #4
The resulting DLL (the .NET assembly) and the C DLL and it's dependent
DLL's (if any) have to be available on all PC's, do they?

Willy.

"GeRmIc" <Ge****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi,

I'm writing a C# Library that interacts with an C DLL, the resulting DLL
is
used by an application and it works fine on my PC but when i copy the
resulting DLL to another PC running the same application it gives an error

Access violation at address ..... in module ..... Read of address 0000000

Help!

Nov 16 '05 #5
Hi,

If what you say is the case then why does it work perfectly on my PC.

Both the PCs have the same OS & patches installed. Runs the same application
except that my PC has Visual Studio 2003 installed and the other has the dot
net framework installed.
Nov 16 '05 #6
The resulting DLL (the .NET assembly) and the C DLL and it's dependent
DLL's (if any) have to be available on all PC's, do they?

Willy.

"GeRmIc" <Ge****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi,

I'm writing a C# Library that interacts with an C DLL, the resulting DLL
is
used by an application and it works fine on my PC but when i copy the
resulting DLL to another PC running the same application it gives an error

Access violation at address ..... in module ..... Read of address 0000000

Help!

Nov 16 '05 #7
Hi Willy,

It worked. What I did was to copy the final (C DLL + C# Library) DLL
together with the C# Library to that program directory and then run

regasm XXX.dll /tlb: xxx.tlb (xxx - the C# library)
gacutil /i xxx.dll (xxx - the C# library)

It works!
Thanks
Nov 16 '05 #8

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

Similar topics

15
17979
by: Steven Reddie | last post by:
I understand that access violations aren't part of the standard C++ exception handling support. On Windows, a particular MSVC compiler option enables Microsoft's Structured Exception Handling...
0
2708
by: Steven Reddie | last post by:
In article <slrnbnj19j.av.juergen@monocerus.manannan.org>, Juergen Heinzl wrote: >In article <f93791bd.0309282133.650da850@posting.google.com>, Steven Reddie wrote: >> I understand that access...
5
2343
by: Alex | last post by:
Hello Im working on project for my college, nevermind (but it urgent :((()... So I have this code example (in VS 6.0) in main class : REAL *Input; ....
7
3118
by: Daniel | last post by:
I want to write a method to remove the last node of the linked list. But the error "Access Violation" exists and the error point to this method. What does it means by Access Violation and how can...
0
1801
by: Microsoft News | last post by:
I'm getting the following error when I shut down my C# .NET v1.1 application: 0xC0000005: Access violation reading location 0x73bc0000 This error didn't occur until I added a...
1
2026
by: Thomas Albrecht | last post by:
My application fails during initialization of the dlls with an ExecutionEngineException and a access violation in the MFC app. The structure of the program looks like: MFC app -> mixed DLL ->...
2
2828
by: Boris Fortes | last post by:
I need to unhook event receiver as result of native C++ event. It unhooks successfully, but __raise does not return and throws access violation. Visual Studio 2003 How to reproduce: Consol...
2
4249
by: =?Utf-8?B?c29jYXRvYQ==?= | last post by:
Hi, I have a DLL in VC6, when a specific function is called it will spawns a few threads and then return. The threads stay running and inside one of these threads an event is created using the...
39
4226
by: Martin | last post by:
I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP 5.2.5. I have not used or changed this site for several months - the last time I worked with it, all was well. When I tried it...
0
7231
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
7133
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
7504
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...
0
5643
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,...
1
5059
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...
0
4724
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...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.