New topic: 

Mountain Lion prevents writing to file?

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        torrid          Post subject: Mountain Lion prevents writing to 
file?Posted: Sun Sep 02, 2012 3:24 pm                                 
Joined: Sat Jun 04, 2011 8:29 am
Posts: 352                Hey I have a customer who installed our app just 
fine... on mountain lion.... but when it writes to a file located at:

Users/HisUserName/Library/Application 
Support/OurCompany/OurAppname/Sometextfile.txt

It crashes the program.  No one else has experienced this error so far.

Could it be relatedion to Mountain Lion security? Stack dump pasted below...

-Tim

IOException
Stack:
INI_File.Save%%o<INI_File>
ttGlobalFunctions.SetRegistryValue%b%sss
frmUserInfo.frmUserInfo.cmdOK_Action%%o<frmUserInfo.frmUserInfo>o<BevelButton>
Delegate.IM_Invoke%%o<BevelButton>
AddHandler.Stub.17%%
REALPluginMain
_ZN24RuntimeCustomControlPane12HandleActionEi
_ZN7SubPane21RedrawFromCarbonEventEv
_Z22_InvokeEventHandlerUPPP25OpaqueEventHandlerCallRefP14OpaqueEventRefPvPFlS0_S2_S3_E
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
SendEventToEventTarget
_ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef
SendHICommandToTarget
_Z18SendControlCommandP6HIViewmm
_ZN6HIView16NotifyControlHitEP14OpaqueEventRefsm
_ZN6HIView13ClickInternalERK7CGPointmPFvP16OpaqueControlRefsEP14OpaqueEventRefb
HandleControlClick
REALPluginMain
_ZN24RuntimeCustomControlPane11HandleClickEiii
_ZN6Window11HandleClickEiii
_ZN17RuntimeViewWindow11HandleClickEiii
_ZN16PumpedEventQueue15HandleInContentEP11PumpedEventP6WindowS3_
_Z36PumpedEventQueueInternalHandleEventsv
_Z28PumpedEventQueueHandleEventsv
_Z17UpdateMouseCursorv
_Z11ModalEventsh
RuntimeShowModal
Window.ShowModal%%o<Window>
App.Event_Open%%o<App>
RuntimeExit
Delegate.Invoke%%
Application._CallFunctionWithExceptionHandling%%o<Application>p
_Z33CallFunctionWithExceptionHandlingPFvvE
RuntimeExit
RuntimeRegisterAppObject
REALbasic._RuntimeRegisterAppObject%%o<Application>
_NewAppInstance
_Startup
RunFrameworkInitialization
REALbasic._RunFrameworkInitialization%%p
_Main
% main
_start      
_________________
Currently using:
Windows XP Pro SP3
Real Studio 2011 Release 4.3 Enterprise
and
Mac OS 10.7.3
Real Studio 2011 Release 4.3 Enterprise
(finally also compiled on Mac)  
                             Top                npalardy          Post subject: 
Re: Mountain Lion prevents writing to file?Posted: Sun Sep 02, 2012 3:47 pm     
                  Real Software Engineer          
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7399
Location: Canada, Alberta, Near Red Deer                An IOException is 
likely in your code not checking that the path exists before trying to write to 
the file

That'd be my guess

But IOExceptions are definitely something you can handle in your code & is 
unlikely something specific to ML

If you post the code that try's to save & create the INI file we could help 
more      
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 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

rbforumnotifier@monkeybreadsoftware.de

Reply via email to