You Are Here:

Community: Developer Discussion Boards

#1 Old problem compiling a module to control the IR - 2006-07-06, 01:27

Join Date: Sep 2005
Posts: 30
xchip
Offline
Registered User
I'm writing a python module to talk to the IR port, the problem I have found is that when I declare the global variable "RCommServ server" I get a "ERROR: Dll 'SERIAL.PYD' has uninitialised data.", when I declare this variable in a function it works fine.

Why am I getting this error? How do I fix it?

Thanks

P.D: Below the piece of code where I declare the variable

Code:
   [.....]

_LIT(RS232,"ECUART");
_LIT(IRCOMM,"IRCOMM");


RCommServ server;


extern "C" PyObject *
Init(PyObject* /*self*/, PyObject *args)
{
   [.....]
the error I get:

Code:
 
PETRAN - PE file preprocessor V01.00 (Build 183)
Copyright (c) 1996-2001 Symbian Ltd.

ERROR: Dll 'SERIAL.PYD' has uninitialised data.
make[1]: *** [..\..\EPOC32\RELEASE\ARMI\UREL\SERIAL.PYD] Error -2
make: *** [TARGETSERIAL] Error 2
  make -r  -f "\Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20
\PYTHON\SERIAL\ARMI.make" FINAL CFG=UREL VERBOSE=-s

c:\Symbian\7.0s\Series60_v20\python\serial>
Last edited by xchip : 2006-07-07 at 00:41.
Reply With Quote

#2 Old Re: problem compiling a module to control the IR - 2006-07-30, 10:01

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by xchip
I'm writing a python module to talk to the IR port, the problem I have found is that when I declare the global variable "RCommServ server" I get a "ERROR: Dll 'SERIAL.PYD' has uninitialised data.", when I declare this variable in a function it works fine.

Why am I getting this error? How do I fix it?

Thanks

P.D: Below the piece of code where I declare the variable

Code:
   [.....]

_LIT(RS232,"ECUART");
_LIT(IRCOMM,"IRCOMM");


RCommServ server;


extern "C" PyObject *
Init(PyObject* /*self*/, PyObject *args)
{
   [.....]
the error I get:

Code:
 
PETRAN - PE file preprocessor V01.00 (Build 183)
Copyright (c) 1996-2001 Symbian Ltd.

ERROR: Dll 'SERIAL.PYD' has uninitialised data.
make[1]: *** [..\..\EPOC32\RELEASE\ARMI\UREL\SERIAL.PYD] Error -2
make: *** [TARGETSERIAL] Error 2
  make -r  -f "\Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20
\PYTHON\SERIAL\ARMI.make" FINAL CFG=UREL VERBOSE=-s

c:\Symbian\7.0s\Series60_v20\python\serial>

Welcome to Symbian world pyd debugging

I already had this error ...
In brief you can't have data in DLL but look at
for problem resolving ...

http://www3.symbian.com/faq.nsf/0/CA...2?OpenDocument

I'm happy that you dive into C++ symbian programming
Please share your IR library when you have finished it !


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#3 Old Re: problem compiling a module to control the IR - 2006-07-31, 22:39

Join Date: Aug 2004
Posts: 290
simo.salminen
Offline
Regular Contributor
Quote:
Originally Posted by cyke64
In brief you can't have data in DLL
Well, actually you can, but I don't recommend using this technique unless you know what you are doing: http://pymbian.sourceforge.net/misc/statichack/

Anyways, because you are not porting code, it is better to use other methods (see the examples how to set global variables, SPyAddGlobalString etc).
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem MMC+USB Connection Fede81 General Discussion 3 2006-07-19 16:21
Control Pane problem sriramadasu General Symbian C++ 1 2006-06-06 16:28
A reward to resolve backlight control problem. edcruise General Symbian C++ 0 2006-01-24 00:19
Problem compiling BIOexample & BIOcontrol tianlye General Symbian C++ 1 2003-02-18 19:31
Problem in compiling from toolkit Nokia_Archive General Browsing 1 2002-05-15 04:13

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia