Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-05

Graph, Win, putimage

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andreas K. Foerster

Hello,

has anyone yet worked successfully with GetImage and PutImage under Windows?

I try to write a little prog for Linux and Windows. It works fine under Linux, but under Windows it sais something like segmentation fault when I run it.

Tschuess Andreas

Reply by email

Jonas Maebe
to Andreas K. Foerster
Andreas K. Foerster wrote 6 lines
has anyone yet worked successfully with GetImage and PutImage under Windows? I try to write a little prog for Linux and Windows. It works fine under Linux, but under Windows it sais something like segmentation fault when I run it.

Both the linux and windows getimage and putimage are the default ones, ie. they just call get/putpixel for every pixel to be drawn, except for 16 color modes under linux, there getimage is slightly optimized.

Jonas

Reply by email

Andreas K. Foerster
to Andreas K. Foerster
Andreas K. Foerster wrote 5 lines
> Both the linux and windows getimage and putimage are the default ones, ie. > they just call get/putpixel for every pixel to be drawn, Hmmm, strange. Then it must be my memory usage.

I found the problem. I used a word for the buffersize and I had to use a longint.

Now the program runs -
or I should say, it crawls. :-(

Tschuess Andreas

Reply by email