Click here to Skip to main content
15,901,666 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19472-Sep-23 23:42
Jan 19472-Sep-23 23:42 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan3-Sep-23 2:23
mveRichard MacCutchan3-Sep-23 2:23 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19473-Sep-23 2:35
Jan 19473-Sep-23 2:35 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan3-Sep-23 2:43
mveRichard MacCutchan3-Sep-23 2:43 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19473-Sep-23 11:44
Jan 19473-Sep-23 11:44 
GeneralRe: Bluetooth set as com port in c# Pin
Richard MacCutchan3-Sep-23 2:54
mveRichard MacCutchan3-Sep-23 2:54 
GeneralRe: Bluetooth set as com port in c# Pin
Jan 19473-Sep-23 11:38
Jan 19473-Sep-23 11:38 
QuestionNullable foreign key causes runtime error in OData service Pin
Alex Wright 202229-Aug-23 5:42
Alex Wright 202229-Aug-23 5:42 
QuestionRe: Nullable foreign key causes runtime error in OData service Pin
Richard MacCutchan29-Aug-23 6:21
mveRichard MacCutchan29-Aug-23 6:21 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Alex Wright 202229-Aug-23 6:47
Alex Wright 202229-Aug-23 6:47 
GeneralRe: Nullable foreign key causes runtime error in OData service Pin
Dave Kreskowiak29-Aug-23 11:52
mveDave Kreskowiak29-Aug-23 11:52 
GeneralRe: Nullable foreign key causes runtime error in OData service Pin
Richard MacCutchan29-Aug-23 21:18
mveRichard MacCutchan29-Aug-23 21:18 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Richard Deeming29-Aug-23 21:14
mveRichard Deeming29-Aug-23 21:14 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Gerry Schmitz30-Aug-23 10:25
mveGerry Schmitz30-Aug-23 10:25 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Mycroft Holmes30-Aug-23 12:44
professionalMycroft Holmes30-Aug-23 12:44 
QuestionCom port c#, windows form Pin
Jan 194728-Aug-23 1:16
Jan 194728-Aug-23 1:16 
AnswerRe: Com port c#, windows form Pin
Richard MacCutchan28-Aug-23 4:44
mveRichard MacCutchan28-Aug-23 4:44 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 11:21
Jan 194728-Aug-23 11:21 
AnswerRe: Com port c#, windows form Pin
Gerry Schmitz28-Aug-23 6:44
mveGerry Schmitz28-Aug-23 6:44 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 11:12
Jan 194728-Aug-23 11:12 
GeneralRe: Com port c#, windows form Pin
Gerry Schmitz28-Aug-23 14:43
mveGerry Schmitz28-Aug-23 14:43 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 16:13
Jan 194728-Aug-23 16:13 
Questionlimiting recursion as two interdependent values change c# Pin
BillWoodruff27-Aug-23 1:15
professionalBillWoodruff27-Aug-23 1:15 
assume you have a simple working social network (I wrote one as an experiment):

nodes are class Person ... identity properties

edges are class Edge ... FromNode, ToNode, Intensity (nullable double): they are one way following standard graph conventions.

both and Node have CRUD methods in place ... working.

if Intensity value is null: it means FromNode to ToNode has no connection

when Intensity's value changes: it raises a PropertyChanging ... the change can be canceled Iimplemented, working)

problem scenario:

an Edge Joe has a ToNode Mary and Intensity 50.

an Edge Mary has a ToNode Joe and Intensity 50

Joe's Node changes Intensity to 100 and raises PropertyChanging which Joe subscribes Mary to.

You see the possibility of runaway recursion if both Edges subscribe PropertyChanging to each other.

how to limit recursion ?

how to limit recursion when an Edge Intensity wants to raise raises PropertyChanging when a certain magnitude of change occurs ?

keep a count ? enforce a limit ?

appreciate your thoughts !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot27-Aug-23 13:14
harold aptroot27-Aug-23 13:14 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 3:41
professionalBillWoodruff28-Aug-23 3:41 

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.