Prev: Bitmap shown "transparent" in static control due to Common Controls 6?
Next: Creating small window near cursor
From: JoeC on 3 Apr 2010 17:53 I am trying to write my own bitmap editor but it keeps crashing. Basically I want to edit my owe graphics and the color palette. When I try to modify a palette it crashes. When I try to copy colors to the pallet it crashed. It works when I set the colors to 0 but when I set them to another value I have a problem. What code should I post and where do I look to try to fix this problem?
From: ScottMcP [MVP] on 4 Apr 2010 22:32 On Apr 3, 5:53 pm, JoeC <enki...(a)yahoo.com> wrote: > I am trying to write my own bitmap editor but it keeps crashing. > Basically I want to edit my owe graphics and the color palette. When > I try to modify a palette it crashes. When I try to copy colors to > the pallet it crashed. > > It works when I set the colors to 0 > but when I set them to another value I have a problem. What code > should I post and where do I look to try to fix this problem? You need to run the program in a debugger. It will halt the program when it "crashes" and show you the line of code that caused the problem. If that line of code is down inside some library you didn't write then use the debugger stack window to trace back through the calls to see what line of your code led to the issue.
From: Jerry Coffin on 8 Apr 2010 02:05
In article <41c84f9e-ec60-4215-a58a-703c832d7286 @r18g2000yqd.googlegroups.com>, enki034(a)yahoo.com says... > > I am trying to write my own bitmap editor but it keeps crashing. > Basically I want to edit my owe graphics and the color palette. When > I try to modify a palette it crashes. When I try to copy colors to > the pallet it crashed. > > It works when I set the colors to 0 > but when I set them to another value I have a problem. What code > should I post and where do I look to try to fix this problem? Why? Why mess with palettes at all? I'd be tempted to compare 256- color graphics cards to horses and buggies, but that wouldn't be fair: in the last 5 years (for example) I'm pretty sure I've seen more horses and buggies than 256-color graphics cards... -- Later, Jerry. |