INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Out of Memory error caused by vanishing control

Out of Memory error caused by vanishing control

(OP)
Yesterday I updated my shockwave used in my browser in the usual way after the usual "invitation" to do so.

I am currently working on a little app that uses the old Flash.ocx (file dated 2004) on 2 of its 5 forms.
When I went to test it in the IDE today it gave an "Out of Memory" error whenever I tried to edit or run either of the 2 pages than contained the ShockwaveFlash controls. The error log generated said the shockwaveflash control was missing which was the case.

On examining Components it said it was there OK and the 2004 date of Flash.ocx had not changed.
I could see there were other new Adobe files in the same folder - the ones created by the update.

So I reinserted the control back onto the forms and all was OK.

Anybody got any ideas why the controls just vanished from the form or why the IDE gave an "out of memory" error instead of some sort of "missing control" error?

Is there perhaps a newer version of Flash.ocx available anyway and if so where would I get it from?

RE: Out of Memory error caused by vanishing control

Did you check the entry for the Flash.ocx in the project's current vbp file against that in the backup you made of the broken version for any differences.

RE: Out of Memory error caused by vanishing control

Does flash.ocx live with the executable or in system32? If it is only in one application and does not need to be installed, it should live with the executable. Executables will normally look in their own directory first before venturing to a system directory.

RE: Out of Memory error caused by vanishing control

Quote:

Does flash.ocx live with the executable or in system32? If it is only in one application and does not need to be installed, it should live with the executable. Executables will normally look in their own directory first before venturing to a system directory.

Never do this!

This is the leading cause of DLL Hell, and risks breaking other applications.

Deploying this OCX also requires a license from Adobe.

RE: Out of Memory error caused by vanishing control

(OP)
The problem did not affect the exe version of the program, only when I loaded the .vbp to add more other forms to the project.
The little shockwaveflash icon in Components was still there.
The flash.ocx has always been in the C:\Windows\System32\Macromedia\ folder.
This file is dated 2004 and has not changed since.
There is another file flash.oca that had it's date changed to a more recent date.

Whatever happened, it just removed the Shockwaveflash control from both forms without leaving an empty box like usually happens when you don't copy a new dll across to another computer.

What confused me was the error said "Out of Memory" when I loaded either of these forms which led me on a lengthy wild goose chase trying to find what I had added to the other forms might have used up the memory.

Removing and reinserting it in components and reinserting it into the form fixed this error - I just wondered why and would like to warn others to look out for this possibility if they get the same error?



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close