RE: [perl-win32-gui-users] DoEvents can crash

2002-06-20 Thread Piske, Harald
Well ... I just tried it. I replaced my /pleasedonotcrash/; before the DoEvents() call with Win32::GUI::PeekMessage (0, 0, 0); and guess what ... it crashes. Like I said, there IS a bug in the xs somewhere and when the circumstances are right (nah ... wrong!) then it will crash the script and tear

Re: [perl-win32-gui-users] DoEvents can crash

2002-06-20 Thread Morbus Iff
>In a very busy loop, I keep calling >return -1 if Win32::GUI::DoEvents () < 0; Harald, I profess to know nothing, but I use a tight, infinite while loop that calls "gui_listen" each iteration. gui_listen is just: sub gui_listen { # anyone there? Win32::GUI::PeekMessage(0,0,0);

[perl-win32-gui-users] DoEvents can crash

2002-06-20 Thread Piske, Harald
OK, this is killing me. I need help from someone with GUI.xs eyes ... Aldo? In a very busy loop, I keep calling return -1 if Win32::GUI::DoEvents () < 0; To be able to click and have the program react (especially to Abort_Click or Alt+F4) Every once in a blue moon, I get the infamous "the memo

RE: [perl-win32-gui-users] Using Win32::GUI and Win32::OLE togeth er to connect to MSExcel

2002-06-20 Thread Piske, Harald
If all you want to do is read the whole excel sheet, here's how I go about it without OLE. The only thing that keeps annoying me is that even though I specify FIRSTROWHASNAMES=0, with my Excel drivers, it still won't return the topmost row. But reading huge files is not an issue - all it takes is t

[perl-win32-gui-users] Using Win32::GUI and Win32::OLE together to connect to MSExcel

2002-06-20 Thread Eric Hansen
I am finding that MS-Excel does not shut down if I read my entire spreadsheet of 4550 rows with Win32::OLE. But if I read 500 rows and then close Excel and reopen it and read the next 500 rows (keeping track of where I left off) and continue this way to the end, then Excel closes down fine. Not

Re: [perl-win32-gui-users] Clear a TreeView

2002-06-20 Thread Andrea Maestrutti
"Piske, Harald" wrote: > > This is not a question, I just wanted to share a solution. When you have a > treeview with a lot of entries (a hundred base nodes with dozens of branches > each) and do a $Main->Tree->Clear (), this can clog up the CPU for a > considerable time. Here's what's much faster

[perl-win32-gui-users] ListView question

2002-06-20 Thread Jonathan Southwick
I know I can select items based on their index with $MainWindow->Listview->Select($index) but how do I unselect it (without clicking on it)? Jonathan

[perl-win32-gui-users] Clear a TreeView

2002-06-20 Thread Piske, Harald
This is not a question, I just wanted to share a solution. When you have a treeview with a lot of entries (a hundred base nodes with dozens of branches each) and do a $Main->Tree->Clear (), this can clog up the CPU for a considerable time. Here's what's much faster (up to 100 times, depending on th