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

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

Bug Reports Post about errors or bugs encountered.

IDE 6.80 crashed due to error in source code

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2010, 11:46 PM
DieterR's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany, 30 km south of Munich
Posts: 21
Default IDE 6.80 crashed due to error in source code

My Basic4ppc IDE crashed when I tried to run the following erronous source code in the debug mode. (I was asked to report the bug to Microsoft, but I did not.)
The compiler (optimized comilation for Windows EXE or Device) ignored the problem, but the generated EXE crashed too when the faulty defined NumUpDown was tried to be used.

Here the important source code lines:
---------------------------------------------
Source File:
Version=6.80
:
addnum(paneldate,Num22,160,155,60,0,100,255,255,25 5,True,True)@
:
---------------------------------------------
Source Code:
Sub App_Start
:

Table4.AddCol (cString, "Name", 50)
:
Defaults
:
End Sub
:
:
Sub Defaults
:
Num22.Maximum=Table4.RowCount 'Problem: RowCount is 0 or unknown at the time when the program starts !?
Num22.Value=Table4.RowCount-1
:
End Sub
---------------------------------------------

I solved the problem, but the IDE should not crash in case of coding errors.

Further infos: Basic4ppc IDE Version 6.8, Win XP SP3, .NET Version: 2.0.50727.3603, the size of my source code is about 350 kByte, 3 modules, the compiled EXE is about 900 kByte.

Best regards
DieterR
__________________
What would we do if computers don't waste our time ...
Reply With Quote
  #2 (permalink)  
Old 01-04-2010, 10:16 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I can't reproduce that from the source code given. It refuses to run at the line "Num22.Value=Table4.RowCount-1" with an invalid value error as I would expect. Which line caused the problem and what did you change to solve it?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 01-05-2010, 10:00 PM
DieterR's Avatar
Junior Member
 
Join Date: Jun 2007
Location: Germany, 30 km south of Munich
Posts: 21
Default

Sorry agraham,

today, I spend some time to reproduce the crash, but I can't.
Now, in debug run or the compiler always the same error message as you have seen is reported:

"An error ocurred on sub_main_defaults"
~" -1 is invalid for Value, ...should be between 'Min..' and 'Max..' ..."

It is unbelievable! A few days ago the crash repeated any time after I had restarted the B4P IDE. But I didn't restart Windows (and .NET).

I solved the problem by moving the 2 lines in a sub that is executed when the panel containing 'num22' becomes visible and table4 is surely loaded (.RowCount > 0).

Thank You
DieterR
__________________
What would we do if computers don't waste our time ...
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
Error loading source code Roadrunner Bug Reports 12 06-02-2008 08:46 AM
Source Code Folders On The Device RandomCoder Basic4ppc Wishlist 13 03-23-2008 02:01 PM
Include source code from an external file Zemog Questions (Windows Mobile) 2 06-29-2007 09:38 AM
Source Code Form Issues Louis Questions (Windows Mobile) 3 06-16-2007 09:17 PM
The best folder for your source code Erel Code Samples & Tips 0 05-01-2007 08:17 PM


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


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