Author |
Message |
Jairo A. Murillo I #1 / 8
|
 unload forms or frames
Hi everybody I did a develop in my PDA under embedded VB, I have a problem with my forms and frames. During the program execution this open several forms, when I have 4 or 5 forms opened the system close due "memoy is not enough" any idea abou it?, do you know how can I close each form or frame once I go to another one in the program ? Thanks in advance. -- Jairo Alonso Murillo I.
|
Mon, 25 Oct 2004 01:34:43 GMT |
|
 |
Dhadapan #2 / 8
|
 unload forms or frames
Hi Easily Foms can be unload from the memory using SEND Message API .. reds Dhandapani
Quote: > Hi everybody > I did a develop in my PDA under embedded VB, > I have a problem with my forms and frames. During the program execution this > open several forms, > when I have 4 or 5 forms opened the system close due "memoy is not enough" > any idea abou it?, > do you know how can I close each form or frame once I go to another one in > the program ? > Thanks in advance. > -- > Jairo Alonso Murillo I.
|
Mon, 25 Oct 2004 12:32:47 GMT |
|
 |
Amit #3 / 8
|
 unload forms or frames
hi, Please let me know which is the command should send thru SendMessage API. Is it SC_CLOSE message or something else. thanks in advance. Amit
Quote: > Hi > Easily Foms can be unload from the memory using SEND Message API > .. > reds > Dhandapani
> > Hi everybody > > I did a develop in my PDA under embedded VB, > > I have a problem with my forms and frames. During the program execution > this > > open several forms, > > when I have 4 or 5 forms opened the system close due "memoy is not enough" > > any idea abou it?, > > do you know how can I close each form or frame once I go to another one in > > the program ? > > Thanks in advance. > > -- > > Jairo Alonso Murillo I.
|
Mon, 25 Oct 2004 17:10:17 GMT |
|
 |
Will Olso #4 / 8
|
 unload forms or frames
Hello Jairo, I have developed several applications with EvB and I suggest that you only use one form per application and use Frames to "simulate" form actions such as hide or unload. By using Frames you economize on memory because forms are so memory intensive and you load all the frames up at the app.start so... take the performance hit at first and simply make the frame.visible = true or false depending on your app and its flow. Just some ideas ! Will With Quote: >-----Original Message----- >Hi everybody >I did a develop in my PDA under embedded VB, >I have a problem with my forms and frames. During the
program execution this Quote: >open several forms, >when I have 4 or 5 forms opened the system close
due "memoy is not enough" Quote: >any idea abou it?, >do you know how can I close each form or frame once I go to another one in >the program ? >Thanks in advance. >-- >Jairo Alonso Murillo I. >.
|
Tue, 26 Oct 2004 06:21:05 GMT |
|
 |
Dhadapan #5 / 8
|
 unload forms or frames
Hi , This is the code you can use this.. It is working fine. I hv impolemeted. BAS Module: Public Declare Function SendMessage Lib "Coredll" Alias "SendMessageW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long Public Const WM_CLOSE = &H10 Public Function CloseWindow(ByVal hWnd As Long) As Long CloseWindow = SendMessage(hWnd, WM_CLOSE, 0, 0) End Function Form: Private Sub Form_OKClick() CloseWindow me.hWnd End Sub regards Dhandapani
Quote: > hi, > Please let me know which is the command should send thru SendMessage API. > Is it SC_CLOSE message or something else. > thanks in advance. > Amit
> > Hi > > Easily Foms can be unload from the memory using SEND Message API > > .. > > reds > > Dhandapani
> > > Hi everybody > > > I did a develop in my PDA under embedded VB, > > > I have a problem with my forms and frames. During the program execution > > this > > > open several forms, > > > when I have 4 or 5 forms opened the system close due "memoy is not > enough" > > > any idea abou it?, > > > do you know how can I close each form or frame once I go to another one > in > > > the program ? > > > Thanks in advance. > > > -- > > > Jairo Alonso Murillo I.
|
Tue, 26 Oct 2004 12:33:33 GMT |
|
 |
Christoph Eisenman #6 / 8
|
 unload forms or frames
Hello, I tried this, but it did not work in my case. No memory got freed , no load event fired the next time I tried to load the form, so I guess that the evb WinProc is just hiding the form in case it receives WM_CLOSE. Or, I am doing something wrong?! Please could somebody from Microsoft comment on this thing!!! Christoph Eisenmann Bangkok, Thailand Quote: >-----Original Message----- >Hi , >This is the code you can use this.. It is working fine. I hv impolemeted. >BAS Module: >Public Declare Function SendMessage Lib "Coredll"
Alias "SendMessageW" Quote: >(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As >Long) As Long >Public Const WM_CLOSE = &H10 >Public Function CloseWindow(ByVal hWnd As Long) As Long >CloseWindow = SendMessage(hWnd, WM_CLOSE, 0, 0) >End Function >Form: >Private Sub Form_OKClick() >CloseWindow me.hWnd >End Sub >regards >Dhandapani
>> hi, >> Please let me know which is the command should send
thru SendMessage API. Quote: >> Is it SC_CLOSE message or something else. >> thanks in advance. >> Amit
>> > Hi >> > Easily Foms can be unload from the memory using SEND Message API >> > .. >> > reds >> > Dhandapani
message
>> > > Hi everybody >> > > I did a develop in my PDA under embedded VB, >> > > I have a problem with my forms and frames. During the program >execution >> > this >> > > open several forms, >> > > when I have 4 or 5 forms opened the system close due "memoy is not >> enough" >> > > any idea abou it?, >> > > do you know how can I close each form or frame once I go to another >one >> in >> > > the program ? >> > > Thanks in advance. >> > > -- >> > > Jairo Alonso Murillo I. >.
|
Wed, 27 Oct 2004 23:42:55 GMT |
|
 |
jorg #7 / 8
|
 unload forms or frames
hi i have the same problem that Chrisoph eisenmann my aplication is made whit database I make an example whitout database and worked fine but in my aplication no. maybe do you know what happened? what can I do? thanks jorge
Quote: > Hi Chrisoph eisenmann, > I have attached the code for your reference , it is working fine unloading > the form from the memory. Try with this.. > FYI i hv used in my apps almost 25 forms. > regards > Dhandapani
> > Hello, > > I tried this, but it did not work in my case. No > > memory got freed , no load event fired the next time > > I tried to load the form, so I guess > > that the evb WinProc is just hiding the form > > in case it receives WM_CLOSE. Or, I am doing > > something wrong?! Please could somebody from Microsoft > > comment on this thing!!! > > Christoph Eisenmann > > Bangkok, Thailand > > >-----Original Message----- > > >Hi , > > >This is the code you can use this.. It is working fine. > > I hv impolemeted. > > >BAS Module: > > >Public Declare Function SendMessage Lib "Coredll" > > Alias "SendMessageW" > > >(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As > > Long, lParam As > > >Long) As Long > > >Public Const WM_CLOSE = &H10 > > >Public Function CloseWindow(ByVal hWnd As Long) As Long > > >CloseWindow = SendMessage(hWnd, WM_CLOSE, 0, 0) > > >End Function > > >Form: > > >Private Sub Form_OKClick() > > >CloseWindow me.hWnd > > >End Sub > > >regards > > >Dhandapani
> > >> hi, > > >> Please let me know which is the command should send > > thru SendMessage API. > > >> Is it SC_CLOSE message or something else. > > >> thanks in advance. > > >> Amit
> > >> > Hi > > >> > Easily Foms can be unload from the memory using > > SEND Message API > > >> > .. > > >> > reds > > >> > Dhandapani
> > message
> > >> > > Hi everybody > > >> > > I did a develop in my PDA under embedded VB, > > >> > > I have a problem with my forms and frames. During > > the program > > >execution > > >> > this > > >> > > open several forms, > > >> > > when I have 4 or 5 forms opened the system close > > due "memoy is not > > >> enough" > > >> > > any idea abou it?, > > >> > > do you know how can I close each form or frame once > > I go to another > > >one > > >> in > > >> > > the program ? > > >> > > Thanks in advance. > > >> > > -- > > >> > > Jairo Alonso Murillo I. > > >.
|
Sat, 30 Oct 2004 21:16:17 GMT |
|
 |
Anthony Marchin #8 / 8
|
 unload forms or frames
Dhandapani, I had asked this a while back, and decided to test if for myself. On my platform, the close command you send to the form acts no differently than hide. The formload event never fires again. I have also used the GlobalMemoryStatus API call to check memory usage. At least on my setup, memory goes up but it does not go back. Your method would recover no memory. The fact that it doesn't work for me at the very least shows that your solution is not universal. Tony
Quote: > Hi Chrisoph eisenmann, > I have attached the code for your reference , it is working fine unloading > the form from the memory. Try with this.. > FYI i hv used in my apps almost 25 forms. > regards > Dhandapani
> > Hello, > > I tried this, but it did not work in my case. No > > memory got freed , no load event fired the next time > > I tried to load the form, so I guess > > that the evb WinProc is just hiding the form > > in case it receives WM_CLOSE. Or, I am doing > > something wrong?! Please could somebody from Microsoft > > comment on this thing!!! > > Christoph Eisenmann > > Bangkok, Thailand > > >-----Original Message----- > > >Hi , > > >This is the code you can use this.. It is working fine. > > I hv impolemeted. > > >BAS Module: > > >Public Declare Function SendMessage Lib "Coredll" > > Alias "SendMessageW" > > >(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As > > Long, lParam As > > >Long) As Long > > >Public Const WM_CLOSE = &H10 > > >Public Function CloseWindow(ByVal hWnd As Long) As Long > > >CloseWindow = SendMessage(hWnd, WM_CLOSE, 0, 0) > > >End Function > > >Form: > > >Private Sub Form_OKClick() > > >CloseWindow me.hWnd > > >End Sub > > >regards > > >Dhandapani
> > >> hi, > > >> Please let me know which is the command should send > > thru SendMessage API. > > >> Is it SC_CLOSE message or something else. > > >> thanks in advance. > > >> Amit
> > >> > Hi > > >> > Easily Foms can be unload from the memory using > > SEND Message API > > >> > .. > > >> > reds > > >> > Dhandapani
> > message
> > >> > > Hi everybody > > >> > > I did a develop in my PDA under embedded VB, > > >> > > I have a problem with my forms and frames. During > > the program > > >execution > > >> > this > > >> > > open several forms, > > >> > > when I have 4 or 5 forms opened the system close > > due "memoy is not > > >> enough" > > >> > > any idea abou it?, > > >> > > do you know how can I close each form or frame once > > I go to another > > >one > > >> in > > >> > > the program ? > > >> > > Thanks in advance. > > >> > > -- > > >> > > Jairo Alonso Murillo I. > > >.
|
Mon, 01 Nov 2004 01:44:45 GMT |
|
|
|