Hi everyone,

The development team in my company meets a stange bug for few days while executing a VB6 project.
My program is linked to a PostgreSQL database via an ODBC connection.
Here is the procedure I follow to reproduce the bug :

  1. I open a form. The form is identified with the code FRM-1 in this procedure.
    Here are some features of FRM-1 :
    • It contains a tabbed control.
    • It contains collections of controls.
      The collections lblEtiquette and cmdListe are ones of them.
      The controls of these two collections are not all located on the same tab.
      We created collections of controls in most of forms in our VB6 project to limit the number of identifiers.

  2. I close FRM-1.
  3. I open FRM-1 again but now the controls indexed at 9 in the lblEtiquette and cmdListe collections are missing [BUG].


We consider the fact at step 3 as a bug because of the following reasons :
  • The program never adds or removes controls in collections during its execution.
  • The procedure does not raise the bug everytime.


I do not expect a miracle solution to this bug.
I suspect this bug to come either from the PostgreSQL driver or from the VB6 limit of identifiers.
Does anyone have ever experimented this kind of bug ?

We reached the VB6 limit of identifiers few months ago.
We renamed some entities within the project but now we can only add 11 new identifiers.
That is why I suspect the limit of identifiers as a possible cause for the bug.

Thanks in advance for your future help and advices