Ciao,
i work with Gemstone 3.1.0.6 environment.
I need to manage a critical access ( not simultaneous use of the device ) to printer device.
I define a printer "data base " with accessSema instance set to:
^ accessSema ifNil:[ accessSema := Semaphore forMutualExclusion ]
and a method : critical: mutuallyExcludedBlock
^ self accessSema critical: mutuallyExcludedBlock
But when i do the printer command with:
aPrinter critical:[
the system answer:
a TransactionError occurred (error 2407), The object Semaphore(316884481) may not be committed, 'instances of its class are non-persistent'
How i can manage a global critical access to the printer device ?
Considerations ?
Thanks,
Dario
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass