473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reflection causing AccessViolation Exceptions after SP1 upgrade?

Hi,

I'm coding some new BOs, and I've hit a problem when using one of my
pre-existing libraries. The only changes is that I've installed SP1
for .Net 3.5 and VS 2008.

My older DAL that I build uses a lot of reflection to get things
done. I'm not getting a lot of AccessViolation Exceptions running
tests under NUnit. The stack trace starts off like this:
at (Object , Object[] )
at MyCompany.Data. EntityReflector .GetProvider(Ty pe entType)
at MyCompany.Data. EntityReflector .GetProvider(Da taEntity ent)
at MyCompany.Data. DataSearcher`1. Find()

It happens quite a bit... but sometimes tests sneek by without causing
the exception. When stepping through code via the debugger, things
work just fine.

I haven't read anything that should cause reflection to fail due to
the upgrade... is this something to do with the fact that I'm on a
dual-core workstation as well?

Anyone else encountering these issues? My DAL has been fine for over
two years now.. I'm surprised I'm hitting problems now.

Andy
Aug 13 '08 #1
0 876

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

Similar topics

2
1794
by: Angelos Karantzalis | last post by:
Hi guys, I'm trying to load a class instance dynamically, and then cast it to it's base type so I can use it in my app. More specifically, I'm dynamically instantiating a System.Web.UI.WebControls.RequiredFieldValidator and attempting to cast it into an IValidator and/or a BaseValidator. Both casting attempts have failed miserably, throwing an InvalidCastException ... how can it be i cannot cast to the base class of my instance ???
10
7374
by: Sunny | last post by:
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a Windows.Forms.UserControl in a COM environment, i.e. I want to host that control in a COM host. So far, so good, I can host it, but I can not reach the parent COM object from the control (Parent property is null :( ). I have stopped the control in the...
0
1535
by: Gemma M | last post by:
Hi, I have a C# program (code fragment below), which runs forever, processing incoming jobs. Part of this program launches a COM object. However, after a while I get : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80010007): Automation error
5
1191
by: kevin goff | last post by:
I am seeing that our CPU spikes for several minutes at 100% for the asp.net process. This happens several times a day and seems to last for 10 min or so and use a lot of memory. I'm trying to find out what page it is that is causing these problems. How can i find out what pages are executing at the time of the spike? Thanks, kevin goff kevin_goff@nospam.nospam
2
1257
by: gabe | last post by:
We use a custom versioning scheme that includes the date and time (2.0.10271545). The version number is displayed in a footer user control, which is rendered in every page. The web application is in a web farm. Would there be a significant performance increase by adding it to the global cache object, instead of reading the version info every time through reflection for the version that's set in the AssemblyInfo file?(Instead of just the...
0
1729
by: stacy | last post by:
I used the wizard to upgrade an application from VB 6 to VB.net, the following warnings appear around the .Input property of the MSCOmm control 'UPGRADE_WARNING: Couldn't resolve default property of object MSComm1.Input. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1037"' When running the application, the following dialog comes up when a
5
6591
by: Skandy | last post by:
Hello All: I'm having this little trouble getting a form displayed using reflection. objForm.GetType().GetMethod("ShowDialog", BindingFlags.InvokeMethod).Invoke(objForm, null); The above is the line of code that is causing this trouble. I'm getting a NullreferenceException at this line.
4
1480
by: Chris | last post by:
I am looking at this code in C# Assembly a=Assembly.LoadFrom("employee.dll"); Type t=a.GetType("Company.Employee"); I can't figure out what it is in VB.net can anyone help. I try Dim login_assembly = Assembly.LoadFile(Server.MapPath("bin/login.dll")) Dim login_type As Type = login_assembly.GetType("clsLogin")
0
9688
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
9546
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
10490
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
10260
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
10243
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,...
1
7570
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
6809
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
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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 we have to send another system

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.