|
-
Jul 14th, 2003, 04:01 AM
#1
Thread Starter
Lively Member
Exit problem
I have recently started having a problem with my app.
When I exit the app in the IDE it closes cleanly.
When closing the compiled version I get a
'The instruction at "blah" referenced memory at "blah". The memory could not be "written" '
Anyone got any quick tips? I really don't know what has changed.
-
Jul 14th, 2003, 10:34 AM
#2
Lively Member
hmm...
be sure that you unload all forms and references including unload me
-
Jul 14th, 2003, 11:03 AM
#3
Frenzied Member
I suspect you are using the 'End' function. This is not recommended and I had stop using it when I had the same problem as you.
-
Jul 14th, 2003, 11:04 AM
#4
Frenzied Member
'End' releases the process without releasing the resources.
-
Jul 14th, 2003, 02:52 PM
#5
Frenzied Member
You better go for this one.
VB Code:
Dim frm As Form
For Each frm In Forms
Unload frm
Set frm = Nothing
Next
-
Jul 15th, 2003, 03:52 AM
#6
Thread Starter
Lively Member
I don't think it's that.
I must admit I am below the latest service pack as I can't download it at the moment.
I do close cleanly as far as I can see, I've certainly always tried to unload everything but who knows.
Like I said, it only appeared the other day and the only changes I've made have been cosmetic.
I'll try to get SP5 for VB and update whether that works or not.
Cheers for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|