![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Bug Reports Post about errors or bugs encountered. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Erel,
Long time since I've been here! I just got/installed V6 this afternoon and noticed a deficiency in my device that I figured I would create a program for - using the latest version. The app is basically a digital alarm clock that plays a song file when the alarm is triggered. That works fine. The error is when I try to compile the app for the device using the optimized compiler. Attached is a screen shot of the error I received. I have fmod.dll in the Basic4PPC Desktop directory, both FMODDesktop.dll (1.0.2860.24351) and FMODDevice.dll(1.0.2860.24334) in the apps directory. The Desktop version compiled fine with optimized compiling, but the device version failed. I was able to compile the device version WITHOUT the optimization option checked and it works fine on the device. Did I mess something up here? Or is it maybe a conflict with the V6? Any way, I thought I would post this so you could check it out... Happy New Year to you and yours! ![]() |
|
|||
|
Erel, the fix worked - to the extent that I can create an optimized .exe file. The unoptimized file is 176KB and the optimized file is 48K. Unfortunately, it seems that optimization removed some functionality!? The first problem. The app is frmClock with pnlFace and txtTime imposed on pnlFace. Here's the the start-up code:
Code:
Sub App_Start
fmod.New1
frmClock.Show
TimeFormat("HH:mm")
txttime.Text=Time(Now)
pnlface.Focus
tmrupdatetime.Enabled=true
End Sub
The second problem is that when the alarm time is reached, the unoptimized version plays the selected sound, the optimized version does not. From the Main Help file>Backword Issues: Quote:
Lastly, when the alarm time is reached, a button pops up to shut off the alarm. Again, after the button is pressed, it disappears and the focus is supposed to go back to the panel to keep the blinking cursor out of txttime. The only thing I changed was the FMODDesktop.dll. Both versions were compiled using the same code, but the optimized one doesn't work properly. So, either I'm not coding this properly, for optimization - or Murphy done got ahold of your optimizing routine! What do you reckon? Attached is a zip file with everything in the application directory. Includes the source code, OAlarmClock.exe - optimized version and AlarmClock.exe - unoptimized version. Never mind that it can be done cleaner, I just threw this together quick and once I get it working right I'll clean it up! ![]() |
|
||||
|
There was a problem with FMODDevice too.
You can download it here: http://www.basic4ppc.com/forum/showthread.php?p=7926 On .Net CF 2.0 (optimized compile) you can't move the focus to a Panel. You could hide a button behind the panel and set the focus to this button. |
|
|||
|
I hate to be the bearer of bad news - but...
The hint about putting a button behind the panel solved that problem, but still no joy with sound playback with the optimized version! I replaced the FMOD*.dll's with the contents of the file linked above, recompiled the app and still no joy! So I tried running the app from the designer on the device and it worked fine. Attached is the current changes if you want to test. Thanks Erel! |
|
|||
|
OH STUPID ME!!!
![]() ![]() ![]() ![]() Here, I've been faithfully updating all the dll's - ON THE DESKTOP, and completely forgot to update them on the DEVICE! ![]() I will now crawl back into my hole - after 30 lashes with 4GB SD card... Thanks Erel! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Choose Folder - Optimized Compilation | orhan | Questions & Help Needed | 10 | 11-05-2008 10:52 AM |
| optimized compilation | manu | Questions & Help Needed | 4 | 08-06-2008 07:17 PM |
| Optimized compilation | susu | Questions & Help Needed | 3 | 05-13-2008 07:23 AM |
| Optimized Compilation problem on the device | bob | Questions & Help Needed | 4 | 03-12-2008 02:05 PM |
| 6.01 Optimized compilation error | dpriem | Bug Reports | 2 | 01-06-2008 04:42 PM |