C-API Examples

Ralf Habacker ralf.habacker at freenet.de
Thu May 11 10:38:47 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kosina, Martin schrieb:
> Ralf wrote:
> 
>> Another solution i got with:
> ...
>>   while (1) {
>>      dbus_connection_read_write(conn, 0);
>>      msg = dbus_connection_pop_message(conn);
> ...
>> unfortunally this does not print the results, probably because the 
>> messages  are not  dispatched isn't it ?
> 
> Just curious - did you run this with the Linux build or your Windows
> port? 
windows
> I built some profiling apps using this polling construct (pretty
> much Matt's "listen" sample, fed repeatably at full titlt by a client)
> and having very inconsistent results between MSVC Debug and Release
> modes (i.e. it won't dispatch anything in Debug, although initial
> authentication works fine - I need to confirm if it's the bus daemon or
> client side). This sort of thing is usually a sign of some insidious
> memory corruption, but for the record, the linux version of the same
> sample code works fine.

This issue people had while porting KDE4 to windows too As far as I
remember on rule was not to mix release and debug libraries

> I know you used mingw (which I assume uses its own libc ?), 
> but can't help thinking there may be a common thread...
mingw uses msvcrt, no problems in this his area.

Ralf 		
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEY3anoHh+5t8EXncRAmdaAJ49otlfiCN1ZLNFVm5+sBtH+bgIcACePrql
vczuDLeCLmBuLcg8EjW2VRA=
=X/Z2
-----END PGP SIGNATURE-----


More information about the dbus mailing list