Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Problem running a progranm in version 6 !?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2008, 07:03 PM
Senior Member
 
Join Date: Apr 2007
Location: Netherlands
Posts: 102
Default Problem running a progranm in version 6 !?

Erel,

An 'old' program does not run correctly with the libraries of version 6. At least, I think that that is the reason.

It runs correctly in debug mode , both on the device and on the desk top.

However, translated it does not run correctly on the device, nor on the desktop. It doesn't stop, but just doesn't do what it should do. As in debug mode it works fine, it is difficult for me to analyze the problem.

It doen't work correctly in an area where quite some decimal arithmetic is done.

Any idea?

Harry
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 08:33 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

Can you upload a small portion of the code that demonstrates the problem?
If not, then please send it to me: erel@basic4ppc.com
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 09:46 AM
Senior Member
 
Join Date: Apr 2007
Location: Netherlands
Posts: 102
Default

Erel,

I found the problem myself already:

err is an boolean

leaving a sub the statement : "return not (err)" works in debugging mode, but after compilation the inversion does not take place. With the previous version it did work, also in run mode.

The new code works in both modes:

If err = true Then
err=false
Else
err=true
End If
Return err

I do not know who is right: the compiler or the debugger?

Shouldn't they react in the same way?

Harry
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 09:56 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

They should react the same.
I can't reproduce this problem. It seems to work properly.
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 01:01 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 425
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Harry
I encountered similar behaviours with Booleans, too. Just for fun, please try

If err Then '(not: If err = true)
err=false
Else
err=true
End If
Return err
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 01:41 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

@Harry, I've received your project and I see the problem.
It will be fixed in the next release.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem running my program! damnfoile Questions & Help Needed 1 07-11-2008 05:33 AM
Version 6.01 Problem with SIP Features of Hardware Library Woinowski Bug Reports 4 01-08-2008 01:59 PM
SQL problem with new version HARRY Questions & Help Needed 4 12-30-2007 11:52 AM
Version 6.0 Device optimized compilation problem HarleyM Bug Reports 0 12-28-2007 03:01 AM
Running other apps Ianmac Questions & Help Needed 2 12-16-2007 03:30 PM


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0