- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
Game Development
>>
Game Development
>>
Need help with a possible Varible/Memory problem
Pages: [
1
]
« previous
next »
Print
Author
Topic: Need help with a possible Varible/Memory problem (Read 511 times)
Magnum357jhp
Community Member
Posts: 82
Need help with a possible Varible/Memory problem
«
on:
July 03, 2008, 04:38:58 PM »
I'm working on a project that is not directly related to Truevision. I think I may know the problem, but not sure how to fix it. I built this program, a prototype game, that uses a lot of Varibles in VB6, but when I try to delete the program from the computer, I get the following message...
<ERROR DELETING FILE>
Can not delete <file>: Access Denied.
Make sure the disk in not full or Write-protected and that the file is not currently in use.
If I reboot the computer, it allows me to delete the program easily. I'm guessing the problem I'm having is that the Varibles and perhaps the VB6 program itself is still being used by Windows and that I need to "unload" the varibles from Memory, but I'm not quite sure how to do that. I know in Truevision, its a good idea to "Unload" the Truevision file, but does anyone have any advice on how to do this with just simple VB6 programs?
Any info would be most apprecated.
Logged
"There is no such thing as the ultimate programming language. Every language has its weaknesses."
Lordtek
Customers
Community Member
Posts: 35
Re: Need help with a possible Varible/Memory problem
«
Reply #1 on:
July 05, 2008, 12:09:43 AM »
1. Don't use doevents when working with files if it can be helped because the buffer can get pretty full and a lot of stuff will be waiting to be written if you close the program before the file closes.
2. close all the files in the form unload sub
3. "end" the program in the form unload sub
Logged
common sense isn't common anymore
Magnum357jhp
Community Member
Posts: 82
Re: Need help with a possible Varible/Memory problem
«
Reply #2 on:
July 09, 2008, 02:44:35 AM »
Ok, I think I get what you mean. But how do you "End" a VB6 program? I have quite a few varibles in this program (and I assuem taking up the buffere space) how do you unload all those varibles? Is there a simple command line I can use to unload everything, or do I need to "end/unload" each and every varible?
Also, the program does use a Database file, if I need to unload anything here aswell, does anyone got any advice on Database accessing?
Logged
"There is no such thing as the ultimate programming language. Every language has its weaknesses."
Lordtek
Customers
Community Member
Posts: 35
Re: Need help with a possible Varible/Memory problem
«
Reply #3 on:
July 22, 2008, 11:55:22 PM »
The standard variables will be reclaimed when you "END" the program but if you have variable made with set/let you have to manually set/let them = "NOTHING". As far as the database file goes it is really wise to manually close these files as well. I have found a few data base/grid OCXes (is that a word???) provided by Mr. Bill and Co. to leak horribly if you don't manually unload them from the ocx but if its a home grown db just close it and its done.
Logged
common sense isn't common anymore
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
=> TV3D SDK 6.5
===> Bugs
===> Content Pipeline
===> Shader Development
-----------------------------
Projects
-----------------------------
=> Announcements
=> In-Development
=> Showcase
=> Recruitment
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
=> Game Development
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks