Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


HRESULT E_FAIL (error)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Jul 11, 2008 1:31 am    Post subject: HRESULT E_FAIL (error) Reply with quote

I am making a variable scanner for flash games.

Basically it reads from a textfile, and than uses GeVariable to see if the variable exists or not. I keep getting this damn error though.

I am not sure what is happening, because I only "sometimes" I get this error. (When the SWF file for the ShockWave flash component isn't loaded, and sometimes when it is loaded.)

Error HRESULT E_FAIL has been returned from a call to a COM component.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at ShockwaveFlashObjects.IShockwaveFlash.GetVariable(String name)
at AxShockwaveFlashObjects.AxShockwaveFlash.GetVariable(String name)
at Variable_Scanner.Form1.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\HP_Administrator\My Documents\Quick Task\Variable Scanner\Variable Scanner\Form1.vb:line 37
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Fri Jul 11, 2008 6:44 am    Post subject: Reply with quote

When the Flash Variable does not exist that you attempt to pull with GetVariable, the initial thing the object does is raises an error. You need to handle the error yourself, you can't leave it alone. The most easy way is to use 'On Error Resume Next' method inside the function that calls GetVariable.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Jul 11, 2008 11:27 am    Post subject: Reply with quote

Wiccaan wrote:
When the Flash Variable does not exist that you attempt to pull with GetVariable, the initial thing the object does is raises an error. You need to handle the error yourself, you can't leave it alone. The most easy way is to use 'On Error Resume Next' method inside the function that calls GetVariable.


Thanks for this.

And how come every time I get this error, the only way for me NOT to get this error is to delete and than create the "ReadMe.txt" file over again?

If I edit the file, than save, it gives me that error.

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites