I think your problem is the famous process messages. When your program
reaches the line to draw the layer it sends a message to the window to draw
the layer but it also continues with the code as you will notice your CPU is
probably at 100% while loading meaning that this message is not handled
until then end of the creation of the layers. Your alert box basically stops
the execution of code and lets the draw message be processed and then
continues. If you are looking for an elegant way to do this just use a
timeout or for an even simpler more elegant way my thread object (not the
standard DynAPI one).

8an
(BTW Abre how do you pronounce that ?? )


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to