Click here to Skip to main content
15,911,786 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Target communication framework TCF - anybody? Pin
Vaclav_30-Jul-18 18:25
Vaclav_30-Jul-18 18:25 
GeneralRe: Target communication framework TCF - anybody? Pin
Richard MacCutchan1-Aug-18 20:58
mveRichard MacCutchan1-Aug-18 20:58 
GeneralRe: Target communication framework TCF - anybody? Pin
Vaclav_2-Aug-18 11:05
Vaclav_2-Aug-18 11:05 
QuestionWhat programming language/technology to choose for developing your own ERP solution? Pin
B0mber27-Jul-18 10:47
B0mber27-Jul-18 10:47 
AnswerRe: What programming language/technology to choose for developing your own ERP solution? Pin
jschell28-Jul-18 7:05
jschell28-Jul-18 7:05 
AnswerRe: What programming language/technology to choose for developing your own ERP solution? Pin
Gerry Schmitz28-Jul-18 7:56
mveGerry Schmitz28-Jul-18 7:56 
AnswerRe: What programming language/technology to choose for developing your own ERP solution? Pin
Eddy Vluggen28-Jul-18 10:39
professionalEddy Vluggen28-Jul-18 10:39 
QuestionCan you recommend some movies related to computers Pin
Member 1390489811-Jul-18 19:19
Member 1390489811-Jul-18 19:19 
AnswerRe: Can you recommend some movies related to computers Pin
Nelek11-Jul-18 19:24
protectorNelek11-Jul-18 19:24 
GeneralRe: Can you recommend some movies related to computers Pin
Member 1390489812-Jul-18 18:02
Member 1390489812-Jul-18 18:02 
GeneralRe: Can you recommend some movies related to computers Pin
Member 1390489815-Jul-18 16:02
Member 1390489815-Jul-18 16:02 
AnswerRe: Can you recommend some movies related to computers Pin
Eddy Vluggen12-Jul-18 0:16
professionalEddy Vluggen12-Jul-18 0:16 
GeneralRe: Can you recommend some movies related to computers Pin
Member 1390489812-Jul-18 18:06
Member 1390489812-Jul-18 18:06 
GeneralRe: Can you recommend some movies related to computers Pin
Eddy Vluggen13-Jul-18 0:03
professionalEddy Vluggen13-Jul-18 0:03 
AnswerRe: Can you recommend some movies related to computers Pin
Gerry Schmitz12-Jul-18 8:27
mveGerry Schmitz12-Jul-18 8:27 
AnswerRe: Can you recommend some movies related to computers Pin
Vaclav_30-Jul-18 4:54
Vaclav_30-Jul-18 4:54 
QuestionHandling Optimistic Concurrency Violations Pin
Kevin Marois6-Jul-18 8:37
professionalKevin Marois6-Jul-18 8:37 
AnswerRe: Handling Optimistic Concurrency Violations Pin
Eddy Vluggen6-Jul-18 10:24
professionalEddy Vluggen6-Jul-18 10:24 
GeneralRe: Handling Optimistic Concurrency Violations Pin
Kevin Marois6-Jul-18 10:34
professionalKevin Marois6-Jul-18 10:34 
GeneralRe: Handling Optimistic Concurrency Violations Pin
Eddy Vluggen6-Jul-18 10:36
professionalEddy Vluggen6-Jul-18 10:36 
AnswerRe: Handling Optimistic Concurrency Violations Pin
jschell16-Jul-18 15:58
jschell16-Jul-18 15:58 
QuestionPython 2.7: Best way for processes to log to single log file Pin
ninjaef5-Jul-18 21:39
ninjaef5-Jul-18 21:39 
AnswerRe: Python 2.7: Best way for processes to log to single log file Pin
Eddy Vluggen6-Jul-18 10:26
professionalEddy Vluggen6-Jul-18 10:26 
QuestionMemento pattern and releasing resources Pin
Abivarius3-Jul-18 9:47
Abivarius3-Jul-18 9:47 
Hi everybody. I have a question about Memento pattern.

Let's suppose we have a class which's state has to be saved and later restored, and we resorted to the Memento pattern for that.

What if the state includes resources that have to be explicitly released (like file handles, OpenGL textures etc)?

Should I make them part of the saved state? This necessitates to handle memento objects in a special manner: if memento was restored, then it's up to the originator class to handle the resources, if memento is dropped, then it has to clean up itself. Pretty entangled logic.

How would you implement Memento when state has resources to be released?

Should I apply Memento at all when object state includes OS resources that have to be released?
GeneralRe: Memento pattern and releasing resources Pin
Richard MacCutchan4-Jul-18 1:07
mveRichard MacCutchan4-Jul-18 1:07 

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.