Click here to Skip to main content
15,915,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Virtual Memory Problem in Multithreaded C++ Console Application Pin
Bram van Kampen16-Aug-06 16:16
Bram van Kampen16-Aug-06 16:16 
GeneralRe: Virtual Memory Problem in Multithreaded C++ Console Application Pin
Bram van Kampen16-Aug-06 16:22
Bram van Kampen16-Aug-06 16:22 
AnswerRe: Virtual Memory Problem in Multithreaded C++ Console Application Pin
freak13_az17-Aug-06 6:51
freak13_az17-Aug-06 6:51 
QuestionMultitheading Pin
Waldermort16-Aug-06 11:43
Waldermort16-Aug-06 11:43 
AnswerRe: Multitheading Pin
valikac16-Aug-06 12:50
valikac16-Aug-06 12:50 
AnswerRe: Multitheading Pin
Tim Smith16-Aug-06 17:04
Tim Smith16-Aug-06 17:04 
AnswerRe: Multitheading Pin
Stephen Hewitt16-Aug-06 21:16
Stephen Hewitt16-Aug-06 21:16 
QuestionFundamental Question Pin
eggie516-Aug-06 9:33
eggie516-Aug-06 9:33 
Tell me if what I say below makes sense and is possible.

There is a program (matlab) that makes plots. Currently (as far as I can work it) it can either just display the plot or save it to the hardive. Well I want to display the plot on my separate application. Here are two ways I have done it - also, please note, the graph is real time data so it is refreshed every millisecond or so. When I was generating the graphs as displays (ie not save image to HD) I would - in my external app - take a screenshot of the plot and display it on my app. This was fast enough, etc but I doesn't work if the app is minimized or covered up. So, then I went towards the save image to HD method, this worked great, except it was kinda slow, especially if you're running it on a laptop harddrive.

So, currently both my solutions have their limitations. Here is my question. Ignoring whether the fact matlab even has the functionality to do this, I would like to save the plot to memory! Does this make sense? I just want to save the bytes somewhere in the RAM! Then I would like to read it in my external app and construct an image out of it. So, I guess serialize the image to memory then deserialize it to an image. Is this feasible?

Can anybody else think of an efficient way of gettting this plot from matlab?

P.S. The plot is hosted in a SunAwtCanvas (thanks to spy++)

/\ |_ E X E GG

AnswerRe: Fundamental Question Pin
eggie516-Aug-06 9:59
eggie516-Aug-06 9:59 
AnswerRe: Fundamental Question Pin
Bram van Kampen16-Aug-06 15:30
Bram van Kampen16-Aug-06 15:30 
QuestionObject Definition Pin
Jay0316-Aug-06 9:21
Jay0316-Aug-06 9:21 
AnswerRe: Object Definition Pin
Zac Howland16-Aug-06 10:11
Zac Howland16-Aug-06 10:11 
GeneralRe: Object Definition Pin
JWood16-Aug-06 11:26
JWood16-Aug-06 11:26 
GeneralRe: Object Definition [modified] Pin
SimonSays16-Aug-06 11:47
SimonSays16-Aug-06 11:47 
GeneralRe: Object Definition Pin
JWood16-Aug-06 15:51
JWood16-Aug-06 15:51 
GeneralRe: Object Definition Pin
Zac Howland17-Aug-06 3:51
Zac Howland17-Aug-06 3:51 
GeneralRe: Object Definition [modified] Pin
Prakash Nadar16-Aug-06 22:01
Prakash Nadar16-Aug-06 22:01 
GeneralRe: Object Definition Pin
Jay0317-Aug-06 5:02
Jay0317-Aug-06 5:02 
GeneralRe: Object Definition Pin
Zac Howland17-Aug-06 5:22
Zac Howland17-Aug-06 5:22 
AnswerRe: Object Definition Pin
Bram van Kampen16-Aug-06 15:46
Bram van Kampen16-Aug-06 15:46 
Questionhow to obtain mouse position while dragging a dialog bar... Pin
Luckeman16-Aug-06 7:32
Luckeman16-Aug-06 7:32 
AnswerRe: how to obtain mouse position while dragging a dialog bar... Pin
Waldermort16-Aug-06 7:36
Waldermort16-Aug-06 7:36 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
Luckeman16-Aug-06 8:13
Luckeman16-Aug-06 8:13 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
cje16-Aug-06 10:58
cje16-Aug-06 10:58 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
Luckeman16-Aug-06 13:15
Luckeman16-Aug-06 13:15 

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.