Ticket #3353 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

c++ program freezes when trying to write into shared folder

Reported by: aftershock Owned by:
Priority: major Component: other
Version: VirtualBox 2.1.2 Keywords:
Cc: Guest type: Linux
Host type: Windows


I wrote a c++ program that writes out some content into a file which is located in a shared folder which is supposed to be read/write (full access) I compiled it with gcc -g

" ostringstream tempvar44; (gdb) n 3176 fstream F; (gdb) n

3177 open(F, (tempvar43 << ">" << ofilename, tempvar43.str()))
die((tempvar44 <<"could not write "<< ofilename << "\n", tempvar44.str()));

" at this line , the program freezes. It cannot be killed inside the guest kanotix linux. I have Windows Xp.

Change History

comment:1 Changed 9 years ago by michael

Could you please post a complete programme which exhibits this behaviour? Thanks.

comment:2 Changed 9 years ago by aftershock

I could not make a smaller working program yet. However, it had to do with the guest folder as when I copied the file into a linux folder, The freezing no longer occured.

comment:3 Changed 9 years ago by aftershock

I mean when I ran my program on the copied version of the file, there was no freezing.

comment:4 Changed 9 years ago by frank

Michael's intension was to get a small sample application which allows us to reproduce the problem. In the subject you posted some code fragments. Could you post/atach a the code of a small application which can be compiled with gcc/g++?

comment:5 Changed 9 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

There were some fixes to shared folders with Linux guests with VBox 3.0.2. Please reopen this ticket if the problem persists and provide a compilable example in that case.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use