ImageList & Toolbar crashes

G

Guest

Hi,

I just made a simple smartdeviceapplication with a toolbar, consisting of a
zoom in button and a zoom out button. That's all.

I dragged an ImageList to the Form and add the images I created to the
ImageList. Then I dragged a toolbar control to the Form and added the
imageList to the Toolbar (That's how it's explained in the book .Net CF Core
Reference from Microsoft Press). I created 2 buttons for the toolbar,
referencing them to index 0 and index 1 of the imageList for the icons.

It builds perfectly. But when I run in on my device (HP hx4700):

"
SmartDeviceApplication3.exe
Exception

MISC::HandleAr+0x5b
ImageCollection::Add+0x2e
Form1::InitializeComponent+0x89
Form1::ctor+0xc
Form1::Main+0xa
"

When I remove the connection between the imagelist and the toolbar it works
(but offcourse the buttons of the toolbars don't have icons).

I Tried both .gif and .bmp but that shouldn't matter normally

What could the problem be? Thx!
 
G

Guest

Hi,

That would probably solve the problem. I downloaded SP3 now: it contains a
number of .cab files. Where should I put these?

Thx

Sergey Bogdanov said:
There was an issue with Hx4700 that was fixed in the latest CF SP:
http://www.microsoft.com/downloads/...FamilyID=7bf313b9-71ed-4e15-ad6e-315dae6faf9f



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,

I just made a simple smartdeviceapplication with a toolbar, consisting of a
zoom in button and a zoom out button. That's all.

I dragged an ImageList to the Form and add the images I created to the
ImageList. Then I dragged a toolbar control to the Form and added the
imageList to the Toolbar (That's how it's explained in the book .Net CF Core
Reference from Microsoft Press). I created 2 buttons for the toolbar,
referencing them to index 0 and index 1 of the imageList for the icons.

It builds perfectly. But when I run in on my device (HP hx4700):

"
SmartDeviceApplication3.exe
Exception

MISC::HandleAr+0x5b
ImageCollection::Add+0x2e
Form1::InitializeComponent+0x89
Form1::ctor+0xc
Form1::Main+0xa
"

When I remove the connection between the imagelist and the toolbar it works
(but offcourse the buttons of the toolbars don't have icons).

I Tried both .gif and .bmp but that shouldn't matter normally

What could the problem be? Thx!
 
S

Sergey Bogdanov

Just put the cab from:
....Program Files\Microsoft .NET Compact Framework 1.0
SP3\netcf.core.ppc3.ARM.cab

into device and run it.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,

That would probably solve the problem. I downloaded SP3 now: it contains a
number of .cab files. Where should I put these?

Thx

:

There was an issue with Hx4700 that was fixed in the latest CF SP:
http://www.microsoft.com/downloads/...FamilyID=7bf313b9-71ed-4e15-ad6e-315dae6faf9f



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,

I just made a simple smartdeviceapplication with a toolbar, consisting of a
zoom in button and a zoom out button. That's all.

I dragged an ImageList to the Form and add the images I created to the
ImageList. Then I dragged a toolbar control to the Form and added the
imageList to the Toolbar (That's how it's explained in the book .Net CF Core
Reference from Microsoft Press). I created 2 buttons for the toolbar,
referencing them to index 0 and index 1 of the imageList for the icons.

It builds perfectly. But when I run in on my device (HP hx4700):

"
SmartDeviceApplication3.exe
Exception

MISC::HandleAr+0x5b
ImageCollection::Add+0x2e
Form1::InitializeComponent+0x89
Form1::ctor+0xc
Form1::Main+0xa
"

When I remove the connection between the imagelist and the toolbar it works
(but offcourse the buttons of the toolbars don't have icons).

I Tried both .gif and .bmp but that shouldn't matter normally

What could the problem be? Thx!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top