Why am i getting:
For:
I cant figure it out.. Help
Code:
General protection fault! History: UScriptedTexture::execDrawTile <- (DynamicTexture Temp3.MyDynamicTexture @ Function Test.DynamicTexture.DrawPixel : 00DE) <- UObject::ProcessEvent <- (xPlayer Temp3.xPlayer, Function Engine.PlayerController.Use) <- UObject::ScriptConsoleExec <- (xPlayer Temp3.xPlayer) <- UPlayer::Exec <- UViewport::Exec <- UWindowsViewport::Exec <- UInput::ExecInputCommands <- UInput::Process <- UEngine::InputEvent <- UWindowsViewport::CauseInputEvent <- WM_KEYDOWN <- UWindowsViewport::ViewportWndProc <- WWindow::StaticProc <- MessagePump <- MainLoop <- FMallocWindows::Free <- FMallocWindows::Realloc <- 10910191 0 FArray <- FArray::Realloc <- 0*2 <- FMallocWindows::Free
Code:
simulated function DrawFrame() { local int X,Y; //Log("DrawFrame(); Began At "$Level.TimeSeconds); StopWatch(False); for(Y=0;Y<PixelY.Length;Y++) { for(X=0;X<PixelY[0].PixelX.Length;X++) { Log("DynamicTexture.DrawFrame() Drawing Pixel("$X$","$Y$")",'BreakPoint'); DrawPixel(X,Y,PixelY[Y].PixelX[X]); } } StopWatch(True); //Log("DrawFrame(); Finished At "$Level.TimeSeconds); } function DrawPixel(int X, int Y, color C) { Log("DynamicTexture.DrawPixel("$X$","$Y$",(R="$C.R$",G="$C.G$"B="$C.B$")) Would have drawn a pixel.",'BreakPoint'); DrawTile(X,Y,X+1,Y+1,0,0,1,1,PixelTex,C); }

Comment