Skip to content

Using Combobox error: Kernelbase.dll #18

Description

@MauGal

I'm not sure if I'm using correctly Combobox

I'm using genui

At first:

genui:
        mainwin%Window("Update Genere (ver. 2.2)", 450, 300, true):
            VerticalBox(padded=true):
                Label("Nome database")
                HorizontalBox(padded=true):
                    txtNomeDB%Entry[stretchy = true]
                    Button("Estrai dati", onclick = estraiDati)[stretchy=true]
                Label("File csv")
                HorizontalBox(padded=true):
                    txtFileCsv%Entry[stretchy = true]
                    Button("Apri selezione file", onclick = (_: Button) => (txtFileCsv.text = mainwin.openFile()))
                Label("Campo di ricerca")
                RadioButtons(onselected = (rd:RadioButtons) => (ricerca = rd.items[rd.selected])):
                    "matricola"
                    "nome"
                Label("Campo da aggiornare")
                RadioButtons(onselected = (rd:RadioButtons) => (aggiorna = rd.items[rd.selected])):
                    "genere"
                    "qualifica"
                HorizontalBox(padded=true):
                    Button("Avvia aggiornamento", onclick = avviaAggiornamento)[stretchy=true]

and so everything went

Then I changed txtNomeDB%Entry[stretchy = true] to a Combobox like this:

var cbDatabases = newCombobox(recuperaNomiDatabase())

And the row in genui:

%cbDatabases[stretchy = true]

The procedure recuparaNomiDatabase return seq[string]

I haven't error in compile time but when run gui nothing happens

In the event view of window I have this error:

Nome applicazione con errore: guiUpdateGenereScPers.exe, versione: 0.0.0.0, timestamp: 0x67c07224
Nome modulo non valido: KERNELBASE.dll, versione: 10.0.26100.3037, timestamp: 0x1883624e
Codice eccezione: 0x80000003
Offset errore: 0x000000000011f3f2
Id di processo in errore: 0x5FE4
Ora di avvio dell'applicazione in errore: 0x1DB89219E590881
Percorso dell'applicazione in errore: C:\Users\mauro_s1nn2ps\Documents\Progetti\Progetto_QSA_NET\Utility_in_Nim\Aggiorna_Genere_scpers_da_csv\guiUpdateGenereScPers.exe
Percorso del modulo in errore: C:\WINDOWS\System32\KERNELBASE.dll
Id di rapporto: d1eb9e72-84a4-4cee-bca5-2c3085042815
Nome completo del pacchetto guasto:
ID applicativo relativo al pacchetto guasto:

OS version: Windows 11 pro
Nim version: 2.2.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions