Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp !! Pin
Sreekanth Muralidharan13-May-05 21:58
Sreekanth Muralidharan13-May-05 21:58 
GeneralRe: Help !! Pin
ThatsAlok13-May-05 23:38
ThatsAlok13-May-05 23:38 
GeneralRe: Help !! Pin
Anonymous15-May-05 17:10
Anonymous15-May-05 17:10 
GeneralRe: Help !! Pin
Sreekanth Muralidharan15-May-05 17:12
Sreekanth Muralidharan15-May-05 17:12 
GeneralRe: Help !! Pin
ThatsAlok15-May-05 18:08
ThatsAlok15-May-05 18:08 
GeneralRe: Help !! Pin
Sreekanth Muralidharan15-May-05 19:01
Sreekanth Muralidharan15-May-05 19:01 
GeneralRe: Help !! Pin
ThatsAlok16-May-05 2:37
ThatsAlok16-May-05 2:37 
GeneralRe: Help !! Pin
Sreekanth Muralidharan16-May-05 18:10
Sreekanth Muralidharan16-May-05 18:10 
Hi Alok
Thanks a lot for your quick response.

#####assigns the handle to a CFile object.
Are you calling Corressponding CFile::Detach() as you must be calling CFile::Attach to attach File Handle.
#####

Is this required since a CFile::Open would return a handle to the file object. Could you please tell me what is the hidden functionality involved in CFile::Detach()/Attach().

$$$$$
Have you checked the thread Stop gracefully without any problem before second time play button hit!.
$$$$$

Is there any method for it? Any way I think we can use the concept of critical sections for making sure that all the resources alloted to the thread has been returned back before it is terminated. But this did not solve my problem still. Is there any tool to analyze the thread process so that I could see the resource leaks inside the thread?

And again I have an FTDI USB driver installed in the system where I am reading and writing to USB. We are able to read and write the flat file contents in the system to the USB. But when I try to write a single character (say 'C'), I get a block.

The application is for a Solid State Cockpit Voice Recorder where we have an MPU player attached to the system via a USB and speakers attached to MPU. The system writes data to the USB and the controller in the USB handles the data and transfers it to the four voice channels connected to speakers. When user presses the pause button the application suspends the write thread acting on the USB. When the user presses the same pause button again, he sends a character 'P' to the USB and the controller acknowledges the command by returning the same character. We have a condition check in the application to ensure that the pause command worked properly. It is this write which creates all the trouble. I think you got it.

The same application has another module which downloads data from flash memory cards connected to the SSCVR and this data rounds to about 400MB. We have no problem as said above in handling this bulk of data, but the single character acknowledgement fails quite too often.

That's the project on.
Please read the mail in detail and your suggestions are very valuable not only for me but for the entire codeproject world.


Sreekanth Muralidharan,
Corporate Systems Consultant [Embedded Systems],
INDIA
GeneralRe: Help !! Pin
ThatsAlok16-May-05 20:15
ThatsAlok16-May-05 20:15 
GeneralRe: Help !! Pin
Sreekanth Muralidharan16-May-05 22:38
Sreekanth Muralidharan16-May-05 22:38 
GeneralRe: Help !! Pin
ThatsAlok16-May-05 22:52
ThatsAlok16-May-05 22:52 
GeneralRe: Help !! Pin
Sreekanth Muralidharan16-May-05 23:28
Sreekanth Muralidharan16-May-05 23:28 
GeneralRe: Help !! Pin
ThatsAlok17-May-05 0:29
ThatsAlok17-May-05 0:29 
GeneralRe: Help !! Pin
Sreekanth Muralidharan18-May-05 17:59
Sreekanth Muralidharan18-May-05 17:59 
GeneralRe: Help !! Pin
ThatsAlok18-May-05 18:12
ThatsAlok18-May-05 18:12 
GeneralRe: Help !! Pin
Sreekanth Muralidharan18-May-05 18:15
Sreekanth Muralidharan18-May-05 18:15 
GeneralRe: Help !! Pin
ThatsAlok18-May-05 18:42
ThatsAlok18-May-05 18:42 
GeneralRe: Help !! Pin
Sreekanth Muralidharan18-May-05 19:19
Sreekanth Muralidharan18-May-05 19:19 
GeneralRe: Help !! Pin
ThatsAlok18-May-05 19:25
ThatsAlok18-May-05 19:25 
GeneralRe: Help !! Pin
Sreekanth Muralidharan18-May-05 19:28
Sreekanth Muralidharan18-May-05 19:28 
GeneralRe: Help !! Pin
Sreekanth Muralidharan18-May-05 23:14
Sreekanth Muralidharan18-May-05 23:14 
GeneralRe: Help !! Pin
ThatsAlok18-May-05 23:29
ThatsAlok18-May-05 23:29 
GeneralRe: Help !! Pin
Sreekanth Muralidharan19-May-05 17:10
Sreekanth Muralidharan19-May-05 17:10 
GeneralRe: Help !! Pin
ThatsAlok19-May-05 20:44
ThatsAlok19-May-05 20:44 
GeneralRe: Help !! Pin
Sreekanth Muralidharan19-May-05 23:17
Sreekanth Muralidharan19-May-05 23:17 

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.