Jaiden Posted August 10, 2011 Author Share Posted August 10, 2011 **Edit: I created a new account and it works fine now. I don't understand what is causing the issue here.**This is really really obscure, I was map editing and after saving my map and opening the editor a second time, I recieved Runtime Error 480: Cannot create auto redraw image.The following line is highlighted:``` Call Surface.BltToDC(picBox.hdc, sRECT, dRECT)```In this function:```Public Function Engine_BltToDC(ByRef Surface As DirectDrawSurface7, sRECT As DxVBLib.RECT, dRECT As DxVBLib.RECT, ByRef picBox As VB.PictureBox, Optional Clear As Boolean = True) As Boolean ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler If Clear Then picBox.Cls End If Call Surface.BltToDC(picBox.hdc, sRECT, dRECT) picBox.Refresh Engine_BltToDC = True ' Error handler Exit Functionerrorhandler: HandleError "Engine_BltToDC", "modDirectDraw7", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit FunctionEnd Function```Now this is bothering me tremendously because the issue suddenly appeared after saving a map and not doing anything else. The error appears whenever I edit any map now, not just the one I saved.If it helps for some reason, the map I saved was very large; 223x117\. But I saved it multiple times before without an issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now