CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.94k stars 551 forks source link

Cosmos BMP Exception #1391

Closed valentinbreiz closed 4 years ago

valentinbreiz commented 4 years ago

When I try to make a Bitmap from my bmp file (put in a byte[]) I have this exception: image

image

I tried with and without compatibility option. The thing is the image from the GraphicTest is working so I don't know how to export my image

quajak commented 4 years ago

Can you try to catch the exception? Also what Bitmap ctor are you using?

valentinbreiz commented 4 years ago

When I put it into a try catch nothing happens :/

Setting FirstDataLookupTable to 
0x022C58E7
FirstDataLookupTable was set to 
0x022C58E7
In Cosmos.System.Kernel..ctor
Starting kernel
HW Bootstrap Init
Global Init
Creating Console
Creating Keyboard
HW Init
Creating Primary ATA IOGroup
Creating Secondary ATA IOGroup
Before Core.Global.Init
PCI Devices
ACPI Init
PS/2 Controller Init
ATA device with speclevel ATA found.
Number of MBR partitions found:
0x00000001
ATA device with speclevel ATAPI found, which is not supported yet!
Done initializing Cosmos.HAL.Global
KeyboardManager.AddKeyboard
Cls
Before Run
step one!

image

quajak commented 4 years ago

Weird, cant really tell whats wrong. Can you please upload the image or reproducible code?

valentinbreiz commented 4 years ago

https://anonfiles.com/F5EfbbFfo6/Arrow_bmp https://anonfiles.com/D2Ecb5Fao0/Arrow_cur