when I create a program with VB6 and I do storage program that I have made the message "System error & H80004005 (-2147467259). Unspecified error".
Can you all enlighten me?
thank you for your help
when I create a program with VB6 and I do storage program that I have made the message "System error & H80004005 (-2147467259). Unspecified error".
Can you all enlighten me?
thank you for your help
Thanks for the added detail, . Given your follow‑up and ’s hunch, this is almost certainly the Shockwave Flash ActiveX control biting the VB6 IDE. It is a known VB6 bug: when a form that contains the Flash control is saved, the IDE can throw “System error &H80004005 (‑2147467259).” Developers reported it with Flash 10.x (e.g., 10f–10i). Downgrading to 10e avoided the save-time crash, but that is not recommended today because Flash is long past end‑of‑life and actively removed/blocked by Microsoft. (vb6zone.blogspot.com)
Quickest, safe workarounds that keep your project buildable without Flash at design‑time:
Add the Flash control only at runtime so VB6 does not try to serialize it when you save. Remove any design‑time instance, then do something like this:
' VB6: add Flash at runtime so the .frm is saveable
Option Explicit
Private mFlash As VBControlExtender
Private Sub Form_Load()
Set mFlash = Me.Controls.Add("ShockwaveFlash.ShockwaveFlash", "Flash1")
With mFlash
.Move 0, 0, ScaleWidth, ScaleHeight
.Visible = True
With .Object
.Movie = App.Path & "\menu.swf" ' adjust as needed
.Loop = False
.Play
End With
End With
End Sub Now Save works because the control is not persisted in the .frm. If the control is on an MDI parent, host it inside a PictureBox (allowed on MDI) or move it to a child form. (vbwithsuman.blogspot.com)
Clear VB6’s type library cache and re-register the OCX. Close VB6, delete any matching .OCA files (they are just a cache and will be rebuilt), then regsvr32 flash*.ocx again. Stale .OCA files frequently cause odd IDE errors. (stackoverflow.com)
Note: The KB pointed to describes a different scenario (runtime EXEs failing because common controls were not initialized), not an IDE save error, which is why it did not help here. (jeffpar.github.io)
Given Flash’s deprecation and blocking across Microsoft products, the long‑term fix is to remove the Flash menu entirely or replace it with native UI. (learn.microsoft.com)
Jump to Post— Minimalist 96Please check this link:
Jump to Post— Minimalist 96I don't understand. You mean edit the code or put data into a form and than try to save. Also use debug and show the code where the error is raised.
Please check this link:
Minimalist thank you for your reply, but the problem is not there, I've never gotten an error like the link you mentioned, but this one is a different case.
Once again thank you for your response,
best regards
"minimalist" error appears when I edit the main program on the mdi form and when I save the edits comes the error message
I don't understand. You mean edit the code or put data into a form and than try to save. Also use debug and show the code where the error is raised.
I think he meant:
I get the error when saving the file/project.
The only reason I can think is that you are using the FLASH8.ocx file.
Try removing that control in your form.
Well I googled it again and went a bit further.The conclusion is that there are many reasons that error can be thrown. It would be helpful to see the original code that worked and the code that you edited and throws the error.
@ abelingaw, my right to wear flash.ocx accesories main menu program I created, and it is also true when there is a change in the main program and I could not save it, but usually it does not matter.
But this time I was outsmarted by using notepad.exe For the editors if there is a change in the main program and it worked, @ abelingaw no other way than removing flash.ocx, I wear his flash.ocx final version version 10
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.