Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRelease vs. debug Pin
spif200124-May-04 19:58
spif200124-May-04 19:58 
GeneralRe: Release vs. debug Pin
Andy *M*24-May-04 22:34
Andy *M*24-May-04 22:34 
GeneralRe: Release vs. debug Pin
spif200124-May-04 23:23
spif200124-May-04 23:23 
GeneralRe: Release vs. debug Pin
Dave Kreskowiak25-May-04 2:16
mveDave Kreskowiak25-May-04 2:16 
GeneralRe: Release vs. debug Pin
spif200125-May-04 2:24
spif200125-May-04 2:24 
GeneralRe: Release vs. debug Pin
Heath Stewart25-May-04 3:05
protectorHeath Stewart25-May-04 3:05 
GeneralRe: Release vs. debug Pin
spif200125-May-04 20:39
spif200125-May-04 20:39 
GeneralRe: Release vs. debug Pin
spif200125-May-04 21:18
spif200125-May-04 21:18 
Heureka! - the bug has been found.

It was a Singleton issue.

I had a Singleton class like the following:

private static readonly IOServiceAgent instance = new IOServiceAgent();<br />
<br />
private IOServiceAgent(){}<br />
<br />
public static IOServiceAgent Instance<br />
{<br />
	get<br />
	{<br />
		return instance;<br />
	}<br />
}


Changed it to the following:

private static IOServiceAgent instance;<br />
<br />
private IOServiceAgent(){}<br />
<br />
public static IOServiceAgent Instance<br />
{<br />
	get<br />
	{<br />
		if(instance == null)<br />
		{<br />
			instance = new IOServiceAgent();<br />
		}<br />
<br />
		return instance;<br />
	}<br />
}


Somehow the first solution failed even though the property wasn't called prior to the exception throw.

Anyway thanks for the replys
-spif2001
GeneralData Binding a TextBox to a DataSet Pin
woaksie24-May-04 18:49
woaksie24-May-04 18:49 
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 2:50
protectorHeath Stewart25-May-04 2:50 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 4:54
woaksie25-May-04 4:54 
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 5:51
protectorHeath Stewart25-May-04 5:51 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 19:06
woaksie25-May-04 19:06 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 19:21
woaksie25-May-04 19:21 
GeneralExpressions(calculations) Pin
stevemasters2224-May-04 18:46
stevemasters2224-May-04 18:46 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 19:20
sreejith ss nair24-May-04 19:20 
GeneralRe: Expressions(calculations) Pin
stevemasters2224-May-04 19:34
stevemasters2224-May-04 19:34 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 19:54
sreejith ss nair24-May-04 19:54 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz24-May-04 21:16
Stefan Troschuetz24-May-04 21:16 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 22:07
sreejith ss nair24-May-04 22:07 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz24-May-04 22:38
Stefan Troschuetz24-May-04 22:38 
GeneralRe: Expressions(calculations) Pin
stevemasters2225-May-04 17:09
stevemasters2225-May-04 17:09 
GeneralRe: Expressions(calculations) Pin
Dave Kreskowiak25-May-04 17:24
mveDave Kreskowiak25-May-04 17:24 
GeneralRe: Expressions(calculations) Pin
stevemasters2225-May-04 17:46
stevemasters2225-May-04 17:46 
GeneralRe: Expressions(calculations) Pin
Dave Kreskowiak26-May-04 0:46
mveDave Kreskowiak26-May-04 0:46 

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.