New topic: 

Problem with DragItem

<http://forums.realsoftware.com/viewtopic.php?t=47126>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        relaht          Post subject: Problem with DragItemPosted: Sat 
Mar 02, 2013 12:11 pm                         
Joined: Fri Dec 01, 2006 9:39 pm
Posts: 180                I experience a strange behavior if dropping from the 
finder

if I open a ModalWindow after the drop and wait about 20 seconds before closing 
it, the app will crash as soon as i drag and drop again.

I hope you understand... 

Try this:

Sub DropObject(obj As DragItem, action As Integer)
  // some code to handle the DragItem
  // ..............
  
  window2.ShowModal
End Sub


- Drag & drop a item from the finder. (window2 will open)
- Now wait more than 20 seconds 
- close window2
- Drag & drop again

Here, the application will crash.
(RS 2011 r4.3)


Any ideas?   
                             Top                DaveS          Post subject: 
Re: Problem with DragItemPosted: Sat Mar 02, 2013 12:25 pm                      
           
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4616
Location: San Diego, CA                Try using SHOW and HIDE instead of 
SHOWMODAL and CLOSE      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                relaht          Post subject: 
Re: Problem with DragItemPosted: Sat Mar 02, 2013 12:36 pm                      
   
Joined: Fri Dec 01, 2006 9:39 pm
Posts: 180                I need to use ShowModal because there is code after 
it.

It works if I trigger window2.ShowModal with a timer.
It looks if the drag&drop action can not finished because of the modal 
window...   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to