VirtualBox

Opened 15 years ago

Closed 15 years ago

#3353 closed defect (fixed)

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

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

Description

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 (5)

comment:1 by Michael Thayer, 15 years ago

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

comment:2 by aftershock, 15 years ago

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 by aftershock, 15 years ago

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

comment:4 by Frank Mehnert, 15 years ago

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 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed

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.

© 2023 Oracle
ContactPrivacy policyTerms of Use