This is caused when FormNew() called
without a FormRead(). Then the next time you call FormNew() it will
fail with the invalid argument passed hardware error as the
previous form new is still pending. This can happen if you have a
piece of cicode which calls FormNew() then does various checks
which causes the cicode to give up or abort before it calls
FormRead(). Once you get Citect into this state all FormNews will
fail. If you have called FormNew() and you want to give up you
should call the function FormDestroy() to remove the pending form.
In Citect for Windows version 3.00 and later if you call
FormNew() and don't call FormRead() and then you call another
FromNew() after 2 seconds the first form will automatically be
destroyed.
|