Sign in Join

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

Mailing lists / lazarus / 2003-07

Patch: message size (win32)

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Micha Nelissen

Hi,

Attached is a patch for fixing the size of messages. As now known in win32callback.inc some messages are larger than 16 bytes. I have now changed the code to use an 26 byte array for storing the message data and casting the various messages to it.

Regards,

Micha.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00060.bin
Type: application/octet-stream
Size: 2325 bytes
Desc: "msg.patch.gz"
Url : http://localhost/pipermail/lazarus/attachments/20030726/40915bdd/bin00060.bin

Reply by email

Mattias Gaertner
to Mattias Gaertner: On Sat, 26 Jul 2003 14:57:31 +0200 Ehm. I already fixed WindowProc one and a half hour…
Show quoted text 15 lines
> Micha Nelissen wrote: > > > Hi, > > > > Attached is a patch for fixing the size of messages. As now known in > > win32callback.inc some messages are larger than 16 bytes. I have now > > changed the code to use an 26 byte array for storing the message data > > and casting the various messages to it. > > Ehm. I already fixed WindowProc one and a half hour ago to work with > messages of arbitrary length and without the need to typecast > everything. Didn't you receive the mail? CB_INSERTSTRING still has that dangerous construct (though currently the problem spot, userdata is commented. That wasn't the case yesterday)

Sorry. I didn't notice that my commit timed out. It is now committed.

Mattias

Reply by email

Marco van de Voort
to Mattias Gaertner: On Sat, 26 Jul 2003 14:57:31 +0200 Ehm. I already fixed WindowProc one and a half hour…
Show quoted text 12 lines
Micha Nelissen wrote: > Hi, > > Attached is a patch for fixing the size of messages. As now known in > win32callback.inc some messages are larger than 16 bytes. I have now > changed the code to use an 26 byte array for storing the message data > and casting the various messages to it. Ehm. I already fixed WindowProc one and a half hour ago to work with messages of arbitrary length and without the need to typecast everything. Didn't you receive the mail?

CB_INSERTSTRING still has that dangerous construct (though currently the problem spot, userdata is commented. That wasn't the case yesterday)

Reply by email

Mattias Gaertner
to Micha Nelissen: Attached is a patch for fixing the size of messages. As now known in win32callback.inc…
Show quoted text 6 lines
Hi, Attached is a patch for fixing the size of messages. As now known in win32callback.inc some messages are larger than 16 bytes. I have now changed the code to use an 26 byte array for storing the message data and casting the various messages to it.

Ehm. I already fixed WindowProc one and a half hour ago to work with messages of arbitrary length and without the need to typecast everything. Didn't you receive the mail?

Mattias

Reply by email