Click here to Skip to main content
15,888,984 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Date Time Conversion Pin
papy-boom23-Jun-09 4:41
papy-boom23-Jun-09 4:41 
GeneralRe: Date Time Conversion Pin
Baran M23-Jun-09 20:39
Baran M23-Jun-09 20:39 
Questionany examples on webparts personalisation in sql server2005 Pin
lakshmichawala23-Jun-09 2:27
lakshmichawala23-Jun-09 2:27 
GeneralGenrate Login ID Suggestion Pin
Deepak Nigam23-Jun-09 1:42
Deepak Nigam23-Jun-09 1:42 
GeneralRe: Genrate Login ID Suggestion Pin
Abhijit Jana23-Jun-09 2:17
professionalAbhijit Jana23-Jun-09 2:17 
GeneralRe: Genrate Login ID Suggestion Pin
Manas Bhardwaj23-Jun-09 2:25
professionalManas Bhardwaj23-Jun-09 2:25 
GeneralRe: Genrate Login ID Suggestion Pin
padmanabhan N23-Jun-09 2:27
padmanabhan N23-Jun-09 2:27 
QuestionOutProc on State Server: Thread problem Pin
misha_grewal23-Jun-09 1:23
misha_grewal23-Jun-09 1:23 
Hi folks,

I am new to ASP.Net development as such, so my questions can be really stupid. Thanks a ton in advance and pointers greately appreciated

The problem:

For Web Farm setup, we are trying to keep the session data in State Server. We have marked the objects as [Serializable] to make them fit in State Server.

Now, we keep some of the data bjects in session and we are also keeping threads that operate on these objects in session.


The class looks like:
[serializable]
Class DataManager {
Data1 data1Obj;
Data2 data2Obj;

[nonserialized]Thread m_thread;
[nonserialized]AutoResetEvent m_event;
[nonserialized]Thread m_updateThread;

.....

}

Now we are getting exception as threads and events are non-serializable when we run the program. We added the attribute [nonserialized] to these individual thread variables and events. But the strange thing is, once we allocate the threads and start them, some how the thread objects are set to null. I guess this happens after one serialization operation. So imaginge, the program is continuously stuck on checking the thread null and allocating it again. This obviously is not working at all.

// the code looks like

void somefunction()
{
if (m_thread == null)
{
RespawanThread() // this happens all the time
}

}

My question is even after adding the [nonserialized] tag to the individual thread members, what makes them null after some time?

Evil triumphs when good people sit quiet...

AnswerRe: OutProc on State Server: Thread problem Pin
ToddHileHoffer23-Jun-09 6:50
ToddHileHoffer23-Jun-09 6:50 
QuestionPlease give me answer for below quetion. [modified] Pin
kantharao23-Jun-09 0:50
kantharao23-Jun-09 0:50 
AnswerRe: Please give me answer for below quetion. Pin
Christian Graus23-Jun-09 0:56
protectorChristian Graus23-Jun-09 0:56 
AnswerRe: Please give me answer for below quetion. Pin
padmanabhan N23-Jun-09 1:03
padmanabhan N23-Jun-09 1:03 
QuestionHow to load web part in another web part? Pin
Hoang Jang23-Jun-09 0:17
Hoang Jang23-Jun-09 0:17 
AnswerRe: How to load web part in another web part? Pin
Abhijit Jana23-Jun-09 0:50
professionalAbhijit Jana23-Jun-09 0:50 
GeneralRe: How to load web part in another web part? Pin
Hoang Jang23-Jun-09 19:58
Hoang Jang23-Jun-09 19:58 
QuestionObject reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 0:17
KhandelwalA23-Jun-09 0:17 
AnswerRe: Object reference not set to an instance of an object. in BOLD Line Pin
Abhijit Jana23-Jun-09 0:34
professionalAbhijit Jana23-Jun-09 0:34 
AnswerRe: Object reference not set to an instance of an object. in BOLD Line [modified] Pin
padmanabhan N23-Jun-09 0:36
padmanabhan N23-Jun-09 0:36 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 0:42
KhandelwalA23-Jun-09 0:42 
AnswerRe: Object reference not set to an instance of an object. in BOLD Line Pin
Abhijit Jana23-Jun-09 0:48
professionalAbhijit Jana23-Jun-09 0:48 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 0:50
padmanabhan N23-Jun-09 0:50 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 0:56
KhandelwalA23-Jun-09 0:56 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 1:23
KhandelwalA23-Jun-09 1:23 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 1:29
padmanabhan N23-Jun-09 1:29 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 1:30
KhandelwalA23-Jun-09 1:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.