Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] OT: pointerproblem programming a patch
- To: vdr@linuxtv.org
- Subject: [vdr] OT: pointerproblem programming a patch
- From: Torsten Kunkel <vdrml@tkunkel.de>
- Date: Fri, 5 Sep 2003 23:35:44 +0200 (CEST)
- Newsgroups: local.boerde.lists.vdr
- Organization: Torstens Inn
- Reply-to: vdr@linuxtv.org
- Sender: vdr-bounce@linuxtv.org
- User-agent: tin/1.5.19-20030610 ("Darts") (UNIX) (Linux/2.4.21 (i686))
Hi,
sorry for offtopic, but I know many of you can programm and it's for a
patch of vdr, so please forgive me this :)
In my menu.c i added:
[...]
int torsten;
torsten=1;
Add(new cMenuEditIntItem( tr("Torsten"),&torsten,0, 10));
[...]
eOSState cMenuTestRecording::ProcessKey(eKeys Key)
{
eOSState state = cOsdMenu::ProcessKey(Key);
if (Key == kOk) {
/* Start renaming */
myRecording->test(&torsten);
state = osEnd;
}
return state;
}
in recording.h i added:
const char cRecording::test(int *testInt){
}
But when i access testInt in my method, i always get false values.
It looks for me, that this varable is un-initialised, the values are
switching between -some thousands and +some thousands.
Has anyone an idea where i made the mistake? :/
Greetings
Torsten
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index