PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Symbian & GD301 problem with CreateSurface()

Hi everyone,

I'm developing an application for Nokia 6600, SE P900, Smartphone and PocketPC.

First I started with GD201 and later shipped all projects to GD300 evaluation version.

Now, the company I work for bought the GD301 license and I have to change GD version once again.

I reed the release history and after that I tried to change the GD version.

I started with Smartphone and everything was ok, than PocketPC and there wasn’t any problem also.

Next device was Nokia 6600 and I tried just to link my classes with GD301 but there was a problem.
When I try to “CreateSurface()” from PNG images, my application crashes.

After the call to CreateSurface(), I got the “EEventFocusLost” and than info message “App. Closed”.
I tried to comment the “CreateSurface()” calls and to start the application with the new GD and application worked fine but without some images (that should be created from PNG images) and without text I write with the fonts I create from the PNG images.

I can’t check the return value from CreateSurface() or to do anything else.

When I try the same code with P900 (also Symbian OS), CreateSurface() works fine.

The other problem I have is with “m_pDisplay->CloseDisplay()”. Application crashes every time I call this (on application exit).
I commented that line of code and now it works fine.

Just to mention something about Nokia 6600 problem: when I link my classes with GD300 evaluation version, everything works fine, than I change the “lib”, compile it again, try it with “gd301.dll” and application crashes. After I change lib to “GD300.lib” and dll to “GD300.dll” application works fine again.

There must be some difference between this two versions but I haven’t found anything in release history.

Please help me.

Thanks in advance!