>i have fixed the sample code so now it works fine in VFP6 without causing a c05 and it still fails in VFP9 with the error 1593
>
>
>LOCAL loCrtDB
>BEGIN TRANSACTION
>
>loCrtDB = CREATEOBJECT("clscreatedatabase")
>loCrtDB.createdatabase()
>loCrtDB = .null.
>
>
>END TRANSACTION
>RETURN
>
>DEFINE CLASS clssession as Session
> datasession=2
>ENDDEFINE
>
>DEFINE CLASS clscreatedatabase as clssession
> PROCEDURE createdatabase()
> CREATE DATABASE c:\tempdb
> ENDPROC
>
> PROCEDURE destroy()
> CLOSE DATABASES
> ENDPROC
>ENDDEFINE
Yes with this code it looks like a bug. If a workaround work for you then you could use copy instead from a template or lowlevel create the dbc.
Cetin