473,804 Members | 3,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weird error when marshalling objects using remoting

Hi,

I am encountering a really subtle error which I have been trying to isolate
for a while and I am still not able to find it. The problem boils down to
this: I have a button which marshals two files (two images) across a
remoting boundary. It does this by accessing an Access database for the
filenames. If the two files actually exist, my program runs fine. However,
if I remove or rename the files (so that the filename listed in the access
database is no longer valid) than it runs fine after about 25 tries, then
gives the following error:

at System.Data.Ole Db.OleDbConnect ion.ProcessResu lts(Int32 hr)
at System.Data.Ole Db.OleDbConnect ion.InitializeP rovider()
at System.Data.Ole Db.OleDbConnect ion.Open()
Message: Unspecified error

This seems to be some sort of memory leak. I have made sure to close all of
my connections and readers when they are done. In addition, I am checking to
see if the filename exists before doing anything (using
System.IO.File. Exists). However, this ONLY occurs, if the two files being
sent are renamed or deleted. Otherwise, the program runs indefinitely with
no problems. The check simply creates a blank object instead of sending the
actual image files (which is caught on the other end). This is probably one
of those "symptoms don't point anywhere near the actual problem" problems
but I can't seem to figure out why it should make a difference. Any help
would be greatly appreciated!!

-Tim


Nov 15 '05 #1
1 1622
Hi Tim,

According to the call stack of the error, it seems to me that the error
occurs when it trying to open the Access database. I recommend you check
whether the Access connections are close properly when there are some
errors/exceptions occur (say, fail to access the images files).

I look forward to hearing from you.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
Nov 15 '05 #2

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

Similar topics

10
2004
by: Bjarke Lindberg | last post by:
Hey NG. Using .NET remoting it's possible to "override" the <c>new</c> operator to return a proxy to the object in question. I'd like to use this approach to let a factory class return the reference to the newly created object instead of letting the runtime instantiate the object. Does anybody know any references for doing this? (If it's possible at
4
2870
by: Animesh | last post by:
Hi All, I don't know whethher this is possible or not. This is the result of a bad design problem. Here I go; I have a structure like this: typedef struct _s_index_entry { char *doc_id; double s_id;
0
1078
by: Simon Stewart \(C# MVP\) | last post by:
Hi Our scenario is: Various business objects on a server using interfaced-based remoting being called by a thick Windows client - all written in .NET 1.1. Objects are running under a domain admin/domain user account and hosted as a Windows Service on Windows 2003. In some situations, instead of receiving a "normal" exception or one of our custom exceptions we receive the following:
0
3846
by: Mike Grishaber | last post by:
Hello All, I am using an IHttpAsyncHandler class to intercept HTTP Requests and forward them to a system which processes the Request and returns the Result. I use .NET Remoting to connect the IHttpAsyncHandler object to the System and transfer the Request and Result between the two. This works fine for quite a while, and then I start to get the following error. "This remoting proxy has no channel sink which means either the server has
2
1282
by: Mas L via DotNetMonster.com | last post by:
This is what I get by the way : the error on my Remoting. Code: RemotingConfiguration::Configure ("RTC_cpp.exe.config"); Error: An unhandled exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll Additional information: Cannot run a non-default constructor when connecting
2
1190
by: Satish A | last post by:
Hi, I'm writing a n-tier ASP.NET application with BusinessLogic as Remoting Objects While passing custom business entity object byref to remoting object methods i'm getting following error Please Help!!!!
2
1609
by: DazedAndConfused | last post by:
I converted a C# example of using dll crypt32 to VB .NET. The converted example fails when Encypting/Decypting. I found that if instead of defining a variable as and setting the values for CRYPTPROTECT_PROMPTSTRUCT; I defined the variable as IntPtr and then set it to zero CryptProtectData/CryptUnrotectData return without error. The values between the C# and VB for CRYPTPROTECT_PROMPTSTRUCT are exact except for szPrompt C# passes null...
2
3745
by: Lonewolf | last post by:
hi all, I realize the example on MSDN for IPCChannel has compile error in VS2005 pro. Either I'm missing something or there's something seriously wrong with MSDN on that section. I reproduce the MSDN code sample for IPCchannel for server side in c# below. please help me see what I'm missing here. using System; using System.Runtime.Remoting.Channels.Ipc;
18
1998
by: atv | last post by:
at least to me it is. I can't figure out for the life what it is i'm doing wrong here. i have a function called assign_coordinate. usually, i pass a malloced pointer to it, then individual pointers are malloced within that function. No problem here. Now i have a situation in this software, where i need to assign new coordinates to all nodes in the list.
0
9705
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
10567
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
10323
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
10310
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,...
0
10074
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
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
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4291
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
2
3809
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.