Home

Action
Log In

Site Contents
Classified Ads
Developer's Corner
Download Software
Links
Mobile Channels
News
Pocket PC Forums
Reviews
Technical Support
Tips and Tricks
Vendors and Products

Administration
Webmaster

Search


Location: HPC.net for PocketPC
Pocket PC Forums
PocketPC-Dev List Archive
RE: Problems with memory
Search:

Title:

RE: Problems with memory

From:

Mailing List Member

Added:

3/26/2002 12:00:00 AM

Message:


I know form is not closed when hidden. It stays in memory (or at least there
was a technote about that).

Dario

-----Mensagem original-----
De: bounce-pocketpc-dev-11351@lists.hpc.net
[mailto:bounce-pocketpc-dev-11351@lists.hpc.net]Em nome de Carlos
Villarreal
Enviada: Tuesday, March 26, 2002 6:13 AM
Para: PocketPC Developers
Assunto: [pocketpc-dev] Problems with memory




> Hi,
> I am developing Pockect Pc aplications with embedded visual basic and
> I
> have some questions.
> I use this code to open,close forms,trying to minimize program memory
> but windows ce makes strange behaviour, Can anybody give some ideas ?
>
> I use a public variable to have only a form in memory.
>
> Const MAX_FORMULARIOS =3D 10
>
> Public gbFormularios(10) As Byte
> Public gbNFormularios As Byte
> Public gfFormulario As Form
>
> Sub charge_form(f As Byte)
> If gbNFormularios =3D MAX_FORMULARIOS Then
> Call MsgBox("Numero Maximo de Formularios Superado", , "Error")
> Else
> If gbNFormularios > 0 Then
> gfFormulario.Hide
> End If
> Set gfFormulario =3D Nothing
> gbNFormularios =3D gbNFormularios + 1
> gbFormularios(gbNFormularios) =3D f
> Call fver_formulario(f)
> End If
> End Sub
>
> Sub show_form(f As Byte)
>
> Select Case f
> Case 0
> Set gfFormulario =3D frm_principal
> Case 1
> Set gfFormulario =3D frm_borrado
> Case 2
> Set gfFormulario =3D frm_carga
> Case 3
> Set gfFormulario =3D frm_clientes
> Case 4
> Set gfFormulario =3D frm_clientes2
> Case 5
> Set gfFormulario =3D frm_clientes3
> end select
>
> gfFormulario.Show
> End Sub
>
> Sub hide_form()
> If gbNFormularios > 0 Then
> gbNFormularios =3D gbNFormularios - 1
> gfFormulario.Hide
> End If
> Set gfFormulario =3D Nothing
> Call show_formulario(gbFormularios(gbNFormularios))
> End Sub=20
>
> I notice an strange behaviour with ADOCE recordset and memory.
>
> I use two globals variables, one for a connection
> an another for a recordset.
> I need to transfer text files to my Pocket PC
> and load them into a database.
> I test with two or more files and the program
> memory increase in each charge. I don't know where is the problem.
> Someone knows if the recordset free memory when you close it.
>
> Please I need some help=20
>

---
You are currently subscribed to pocketpc-dev as: dario@omny.com
To unsubscribe send a blank email to leave-pocketpc-dev-11351H@lists.hpc.net


All Contents Copyright (c) 2019 Bongiovanni Research & Technology, Inc.