Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

using dispose gives error on PPC and not on PC

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2007, 10:00 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default using dispose gives error on PPC and not on PC

Hello,

I have created in runtime 3 table's , the 3 tables are correct displayed.
Now i add an panel too, but when i add the panel i want to dispose the table's.
To create the panel, i will be done during the event of the table, so i mean
i selected an cell in the table (doesn;t matter which table) then the event will raised to add the panel, the panel will add and then i dispose the table's.
The problem is on the PPC it generate a runtime error, on the pc not

I have read somewhere that during an event to use the dispose i cannot be done of an issue of .net

i use this method to dispose

For TC = 1 To TN
Control(TC).Dispose
Next
TN = 0
TH = form1.Height - 185



Another thing in tableevent i have done this code:

Sub TablesEvent (ColName, Row)

Control(TN).SelectCell("ID",0)

If Colname = Control(TN).colname(1) Then

Option = Control(TN).cell("fullpath",row)

If option = "Exit" Then
DirDel("DNWindow", True)
AppClose
Else If StrIndexOf(Option , ".",0) = -1 Then



To Exit my application i choose in table exit (one cell is filled with the word exit), the table event will called but it give an runtime error.


I have no idea how to solve this.


the source is very big now to post sorry

Thanks
__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.
Reply With Quote
  #2 (permalink)  
Old 10-04-2007, 10:35 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi tvrman,

try to solve your problem using a timer!

Introduce a timer and set it enabled = false. Enable the timer with the last statement in your event sub. Now code your additional statements within the timer sub. And don't forget to reset it within the timer sub ...

Code:
Sub Table1_SelectionChanged(column, row)
    ...
    
' do something
    ...
    Timer1.enabled = 
true
End Sub

Sub Timer1_Tick
    Timer1.Enabled = 
false
    ...
    
' do something outside the event...
    ...
End Sub

specci48
Reply With Quote
  #3 (permalink)  
Old 10-05-2007, 07:32 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

Quote:
Originally Posted by specci48 View Post
Hi tvrman,

try to solve your problem using a timer!

Introduce a timer and set it enabled = false. Enable the timer with the last statement in your event sub. Now code your additional statements within the timer sub. And don't forget to reset it within the timer sub ...

Code:
Sub Table1_SelectionChanged(column, row)
    ...
    
' do something
    ...
    Timer1.enabled = 
true
End Sub

Sub Timer1_Tick
    Timer1.Enabled = 
false
    ...
    
' do something outside the event...
    ...
End Sub

specci48

Hi specci48,

Yes it works fine now, thanks!
__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
TabControl won't dispose? willisgt Questions (Windows Mobile) 6 03-21-2008 03:44 PM
Optimised compile and "Dispose" agraham Bug Reports 2 03-12-2008 10:50 AM
ArrayList won't dispose? willisgt Questions (Windows Mobile) 1 08-30-2007 08:56 PM
ArrayList Dispose Method RandomCoder Bug Reports 2 07-02-2007 01:57 PM


All times are GMT. The time now is 04:50 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0