According to Thamm, Russell:
The compiler still apparently has problems with type definitions in units. [...] Error: type mismatch in argument 2 of `Tframes_Getnextdatapkt'
That looks known for me ... :-(
You have encountered one of the most unpleasant problems in GPC.
I don't know how there can be an error in argument 2 of a function with only one parameter. Perhaps the return value is argument 1.
Argument 1 is the implicit self parameter. But you are right: We should clarify that error message.
However, the compiler apparently thinks that the type "PacketPtr" used in frames is different from "PacketPtr" used in the main program, even though both "import" the declaration from the same unit.
Exactly. :-(
I am currently working on this bug. There is some hope that it will be fixed in the next Alpha. (More precise: This bug is one of the reasons why the next Alpha has not yet been released and declared at least "Beta".)
Greetings,
Peter