Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot28-Aug-23 4:55
harold aptroot28-Aug-23 4:55 
GeneralRe: limiting recursion as two interdependent values change c# Pin
Gerry Schmitz28-Aug-23 6:50
mveGerry Schmitz28-Aug-23 6:50 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 11:08
professionalBillWoodruff28-Aug-23 11:08 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 11:13
professionalBillWoodruff28-Aug-23 11:13 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot28-Aug-23 12:36
harold aptroot28-Aug-23 12:36 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 22:48
professionalBillWoodruff28-Aug-23 22:48 
QuestionC# error when I try to run Pin
Member 1607362720-Aug-23 18:22
Member 1607362720-Aug-23 18:22 
AnswerRe: C# error when I try to run Pin
OriginalGriff20-Aug-23 18:27
mveOriginalGriff20-Aug-23 18:27 
AnswerRe: C# error when I try to run Pin
Richard Deeming20-Aug-23 21:01
mveRichard Deeming20-Aug-23 21:01 
QuestionHikVision Biometrics Pin
Icanus Tuiloma20-Aug-23 14:48
Icanus Tuiloma20-Aug-23 14:48 
AnswerRe: HikVision Biometrics Pin
Dave Kreskowiak20-Aug-23 17:16
mveDave Kreskowiak20-Aug-23 17:16 
GeneralRe: HikVision Biometrics Pin
Icanus Tuiloma20-Aug-23 18:11
Icanus Tuiloma20-Aug-23 18:11 
QuestionFormat integer with ToString("D2") in SqLite Pin
Edilson Lemos 202118-Aug-23 16:21
Edilson Lemos 202118-Aug-23 16:21 
AnswerRe: Format integer with ToString("D2") in SqLite Pin
Dave Kreskowiak18-Aug-23 16:52
mveDave Kreskowiak18-Aug-23 16:52 
GeneralRe: Format integer with ToString("D2") in SqLite Pin
Edilson Lemos 202118-Aug-23 17:36
Edilson Lemos 202118-Aug-23 17: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.