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

Home Posts Topics Members FAQ

hashtable as shared field

Trouble in the house.

I have a BL-component with different shared get and save methods.
When I get my data I put everything in a shared field. When I call the save
method my shared field(hashtable) is saying "length=error cannot obtain
value".
When I call my get method again then the field has the wright values.

Does anyone have any ideas what is happening.
I'm calling the get and save method from the same web-page, etc.
Sep 20 '07 #1
2 1193
On Sep 20, 6:30 am, James <Ja...@discussions.microsoft.comwrote:
Trouble in the house.

I have a BL-component with different shared get and save methods.
When I get my data I put everything in a shared field. When I call the save
method my shared field(hashtable) is saying "length=error cannot obtain
value".
When I call my get method again then the field has the wright values.

Does anyone have any ideas what is happening.
I'm calling the get and save method from the same web-page, etc.
It's hard to say without any code to look at. My initial thought is
that it may be a concurrency issue. Can you post some code?

Sep 20 '07 #2
Brian,

You can find some code in discussion group of DotNet.Framework with the same
subject

"Brian Gideon" wrote:
On Sep 20, 6:30 am, James <Ja...@discussions.microsoft.comwrote:
Trouble in the house.

I have a BL-component with different shared get and save methods.
When I get my data I put everything in a shared field. When I call the save
method my shared field(hashtable) is saying "length=error cannot obtain
value".
When I call my get method again then the field has the wright values.

Does anyone have any ideas what is happening.
I'm calling the get and save method from the same web-page, etc.

It's hard to say without any code to look at. My initial thought is
that it may be a concurrency issue. Can you post some code?

Sep 21 '07 #3

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

Similar topics

5
15562
by: Cyrus | last post by:
I have a question regarding synchronization across multiple threads for a Hashtable. Currently I have a Threadpool that is creating worker threads based on requests to read/write to a hashtable....
7
1690
by: J L | last post by:
I have defined a structure private structure FieldInfo dim FieldName as string dim OrdinalPostioin as Integer dim DataType as Type dim Size as Integer end structure I read this information...
4
5273
by: CsharpGuy | last post by:
I took over an web app (C#) were the developer put everything in a has table then called a method to execute a stored procedure, now I'm running into some issues were if I do an update and a NULL...
17
5060
by: John A Grandy | last post by:
For a Hashtable that is expected to contain no more than 100 DictionaryEntry elements , what is the best load factor ? ( This Hashtable is a encapsulted in a class , an instance of which is...
2
1784
by: xzzy | last post by:
Using ASP.net, C# and a static class, does the following from MSDN mean: 1. a static hashtable would only live during the session and end when the session ends 2. there would be a different...
2
1765
by: PRR | last post by:
how and why isnt it already provided??lol.... i wanted to inherit class hashtable and add a new field so that i can associate value and my new field to the KEY... i can inherit hashtable ..override...
1
1889
by: chuckroc76 | last post by:
I am running into an issue with a HashTable where it isnt holding data in the order that I am adding it. I am pulling a SqlDataReader out of a table and looping through that to add the items to the...
9
3093
by: raylopez99 | last post by:
Hello all— I’m trying to get the below to work and cannot get the format right. It’s from this example: http://msdn.microsoft.com/en-us/library/8627sbea(VS.71).aspx What it is: I’m trying...
0
2565
by: WaluigiCubed | last post by:
Hi all, I'm designing a phone application using J2ME that uses the Open Source Diamond Powder methodology. The below getSchema method will eventually read in data to build screens on the phone...
0
7118
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
7323
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,...
0
7379
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...
1
7038
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...
0
7493
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...
1
5049
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
4706
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
3192
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...
0
1550
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 ...

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.