Click here to Skip to main content
15,851,242 members
Home / Discussions / C#
   

C#

 
QuestionCom port c#, windows form Pin
Jan 194728-Aug-23 2:16
Jan 194728-Aug-23 2:16 
AnswerRe: Com port c#, windows form Pin
Richard MacCutchan28-Aug-23 5:44
mveRichard MacCutchan28-Aug-23 5:44 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 12:21
Jan 194728-Aug-23 12:21 
AnswerRe: Com port c#, windows form Pin
Gerry Schmitz28-Aug-23 7:44
mveGerry Schmitz28-Aug-23 7:44 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 12:12
Jan 194728-Aug-23 12:12 
GeneralRe: Com port c#, windows form Pin
Gerry Schmitz28-Aug-23 15:43
mveGerry Schmitz28-Aug-23 15:43 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 17:13
Jan 194728-Aug-23 17:13 
Questionlimiting recursion as two interdependent values change c# Pin
BillWoodruff27-Aug-23 2:15
professionalBillWoodruff27-Aug-23 2: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 14:14
harold aptroot27-Aug-23 14:14 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 4:41
professionalBillWoodruff28-Aug-23 4:41 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot28-Aug-23 5:55
harold aptroot28-Aug-23 5:55 
GeneralRe: limiting recursion as two interdependent values change c# Pin
Gerry Schmitz28-Aug-23 7:50
mveGerry Schmitz28-Aug-23 7:50 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 12:08
professionalBillWoodruff28-Aug-23 12:08 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 12:13
professionalBillWoodruff28-Aug-23 12:13 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot28-Aug-23 13:36
harold aptroot28-Aug-23 13:36 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 23:48
professionalBillWoodruff28-Aug-23 23:48 
QuestionC# error when I try to run Pin
Member 1607362720-Aug-23 19:22
Member 1607362720-Aug-23 19:22 
AnswerRe: C# error when I try to run Pin
OriginalGriff20-Aug-23 19:27
mveOriginalGriff20-Aug-23 19:27 
AnswerRe: C# error when I try to run Pin
Richard Deeming20-Aug-23 22:01
mveRichard Deeming20-Aug-23 22:01 
QuestionHikVision Biometrics Pin
Icanus Tuiloma20-Aug-23 15:48
Icanus Tuiloma20-Aug-23 15:48 
AnswerRe: HikVision Biometrics Pin
Dave Kreskowiak20-Aug-23 18:16
mveDave Kreskowiak20-Aug-23 18:16 
GeneralRe: HikVision Biometrics Pin
Icanus Tuiloma20-Aug-23 19:11
Icanus Tuiloma20-Aug-23 19:11 
QuestionFormat integer with ToString("D2") in SqLite Pin
Edilson Lemos 202118-Aug-23 17:21
Edilson Lemos 202118-Aug-23 17:21 
AnswerRe: Format integer with ToString("D2") in SqLite Pin
Dave Kreskowiak18-Aug-23 17:52
mveDave Kreskowiak18-Aug-23 17:52 
GeneralRe: Format integer with ToString("D2") in SqLite Pin
Edilson Lemos 202118-Aug-23 18:36
Edilson Lemos 202118-Aug-23 18:36 

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.