[fpc-devel] I get duplicate GUIDs under Linux
Michael Van Canneyt
michael at freepascal.org
Thu May 29 15:08:22 CEST 2008
On Thu, 29 May 2008, Graeme Geldenhuys wrote:
> 2008/5/29 Michael Van Canneyt <michael at freepascal.org>:
> > can you send me your test program, so I can test my fixes ?
> Here you go. It is pretty much what I sent before, except now I made
> it a console application instead of a fpGUI one. Below it tries to
> create 50,000 GUID's. My SQL version tries 5mil.
Well, after my patch, it creates 500.000 as well, no errors.
I had to modify your algoritm a bit to make it more efficient,
and I'm too lazy to wait for 5 million.
So I guess the bug is fixed. It's merged to the fixbranch.
If you want to use your own GUID creation routine, you can
always set the OnCreateGUID handler in sysutils.
More information about the fpc-devel