1
Answer

the use of picture boxes and .gif form objects vs. java-style paint() and draw(): which is better?

deryk_2784

deryk_2784

20y
2.4k
1
hi everyone. i'm currently pursuing my thesis, which is in its early stages. for our early game prototype (an RPG in the vein of ultima) we used picture boxes and a custom .dll to allow the use of animated GIF files in the same way as normal JPEGS and BMPS. however, the system functioned particularly slowly without us having any idea why. we also stumbled upon a tutorial on .NET's ThreadPool stuff that reminded us of Java paint and repaint methods used in graphical applications. for the length of time we have on our hands, either this or the use of the previously mentioned form objects is the way to go. we'd like to know which is better to solve the speed issue? what could be the possible cause for the slowness of the graphics? any possible solutions? thanks. :)
Answers (1)
0
Bechir Bejaoui
NA 20.1k 5.3m 16y
The problem is when you open the file and leave it for other tasks you leave it in an open state so that you can't reuse it later, be sure to close it after each operation
you can try to use a StreamWriter object to write your content, it will append contents without getting this error.
Take a look on this

http://www.velocityreviews.com/forums/t294100-the-process-cannot-access-the-file-quotquot-because-it-is-being-used-by-another-process.html

they have the same problem as you





0
krishna shivarla
NA 9 14.9k 16y
Yes , I got that error.................
0
Bechir Bejaoui
NA 20.1k 5.3m 16y

Did you recieved the error

The process Can not access the file because it is being used by another
process
0
krishna shivarla
NA 9 14.9k 16y

In my application I am usin dsoframer activex control..........using that dsoframer activex control I am opening my word document from server ........when i try to save that file it is giving error........so i save my file to client system folder.......so that now i need to save that file to server agian which is actually has to saved to server....................that is the reason i want to save the client system fule to server without the help of fileuploader or any UI component........instead of that I want to save the file which i saved in particular client folder..........please help me out in this with some sample code.............. 

0
Bechir Bejaoui
NA 20.1k 5.3m 16y

Cloud you please explain the situation it is a little unclair