Error: Bad parameter type

Linux specific forum
gerd
User
User
Posts: 94
Joined: Tue Feb 23, 2010 7:50 pm
Location: Germany

Error: Bad parameter type

Post by gerd »

Hello everybody,

I do have a problem with the following line:
g_signal_connect_data_(*Widget, @Signal.s, Function, user_data.i, 0, 0)

Since PureBasic 5.4.0 I get an error on this line. The error says: Bad parameter type: a string is expected.

I do not even know which part causes the error.
With older versions of PureBasic I don't get this error when using the exactly same code.

Any help is appreciated.

Thank you
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Error: Bad parameter type

Post by ts-soft »

Without testing, but the errormessage is really clear! Change @Signal.s to Signal.s!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply