Thread

aw_query and MFC (Sdk)

aw_query and MFC // Sdk

1  |  

commie

Mar 25, 2001, 11:25pm
Have a small problem with my program. I log into a world and try to do
aw_query, but it seems the program locks up. The timer routine isnt even
being called. I know the code works. It works in a console application of
the program but not in a MFC application.

Commie

ananas

Mar 26, 2001, 5:50am
This is a multi-part message in MIME format.
--------------455E60D8C83764AE79E5B7A4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

- in the class assistant activate WM_TIMER for the dialog

- in the source code activate it with something like

TimerHandle=SetTimer (12345, 1000, NULL);

Keep the timer handle so you can kill the timer later


[View Quote] begin:vcard
n:Hatzenberger;Volker
x-mozilla-html:FALSE
url:oct31.de
adr:;;Bornheimer Strasse 15;Bonn;;53111;Germany
version:2.1
email;internet:vha at oct31.de
end:vcard

--------------455E60D8C83764AE79E5B7A4--

commie

Mar 26, 2001, 6:14am
Ive already done that. It will add and delete people if the enter and leave
the world. But when it tries to do a aw_query it locks up.

[View Quote]

ananas

Mar 26, 2001, 6:30am
This is a multi-part message in MIME format.
--------------61949364C14F096C084EEBBA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

That's how my timer routine looks like, not more in it - and it is
called frequently, like expected.
You wrote it would not even call the timer - a reason I could imagine is
that you set the timer before the OnInitDialog() was called.

void CAnaBotDlg::OnTimer(UINT nIDEvent)
{
aw_wait(0);
CDialog::OnTimer(nIDEvent);
}

And I have one aw_wait(0) behind each aw_query(...), when I didn't do
that the query returned RC_QUERY_IN_PROGRESS quite often

[View Quote] begin:vcard
n:Hatzenberger;Volker
x-mozilla-html:FALSE
url:oct31.de
adr:;;Bornheimer Strasse 15;Bonn;;53111;Germany
version:2.1
email;internet:vha at oct31.de
end:vcard

--------------61949364C14F096C084EEBBA--

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn